Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001315/0.001314, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001409/0.001409, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2455/0.2455, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 71.88 kB / 481.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4157/0.4172, allocations: 62.43 MB / 0.531 GB, free: 13.59 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002814/0.42, allocations: 1.649 MB / 0.5326 GB, free: 12.3 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001058/0.4211, allocations: 0.5829 MB / 0.5332 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.998e-05/0.4212, allocations: 1.125 kB / 0.5332 GB, free: 11.84 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.4213, allocations: 9.219 kB / 0.5332 GB, free: 11.83 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.331e-05/0.4214, allocations: 21.02 kB / 0.5332 GB, free: 11.81 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000346/0.4218, allocations: 87.83 kB / 0.5333 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001671/0.422, allocations: 114 kB / 0.5334 GB, free: 11.68 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.4221, allocations: 29.56 kB / 0.5334 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.828e-05/0.4222, allocations: 47.88 kB / 0.5335 GB, free: 11.63 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.035e-05/0.4223, allocations: 39.75 kB / 0.5335 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.421e-05/0.4223, allocations: 8.062 kB / 0.5335 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.892e-05/0.4223, allocations: 9.156 kB / 0.5335 GB, free: 11.6 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.394e-05/0.4224, allocations: 22.98 kB / 0.5335 GB, free: 11.58 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.027e-05/0.4224, allocations: 35.77 kB / 0.5336 GB, free: 11.55 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001454/0.4226, allocations: 99.58 kB / 0.5337 GB, free: 11.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.4226, allocations: 0 / 0.5337 GB, free: 11.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.4226, allocations: 1.031 kB / 0.5337 GB, free: 11.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.4226, allocations: 0 / 0.5337 GB, free: 11.48 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006448/0.4232, allocations: 414.9 kB / 0.5341 GB, free: 11.07 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.4233, allocations: 12.23 kB / 0.5341 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.239e-05/0.4233, allocations: 14.34 kB / 0.5341 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002768/0.4236, allocations: 197.9 kB / 0.5343 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.273e-05/0.4237, allocations: 8.5 kB / 0.5343 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.031e-05/0.4237, allocations: 5.875 kB / 0.5343 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002696/0.424, allocations: 112.4 kB / 0.5344 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.424, allocations: 0 / 0.5344 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.613e-05/0.424, allocations: 9.359 kB / 0.5344 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.424, allocations: 1.375 kB / 0.5344 GB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001517/0.4242, allocations: 46.22 kB / 0.5344 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006538/0.4248, allocations: 391.6 kB / 0.5348 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003305/0.4252, allocations: 104.1 kB / 0.5349 GB, free: 10.3 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.4253, allocations: 34.77 kB / 0.535 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.4253, allocations: 1.375 kB / 0.535 GB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002507/0.4256, allocations: 100.3 kB / 0.535 GB, free: 10.21 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.4256, allocations: 0 / 0.535 GB, free: 10.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004428/0.426, allocations: 143.1 kB / 0.5352 GB, free: 10.13 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.892e-05/0.4261, allocations: 56.47 kB / 0.5352 GB, free: 10.06 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001373/0.4262, allocations: 154.4 kB / 0.5354 GB, free: 9.934 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/0.4262, allocations: 26.86 kB / 0.5354 GB, free: 9.902 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.918e-05/0.4263, allocations: 104.2 kB / 0.5355 GB, free: 9.801 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.34e-05/0.4263, allocations: 19.16 kB / 0.5355 GB, free: 9.785 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.358e-05/0.4264, allocations: 33.14 kB / 0.5356 GB, free: 9.754 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.4265, allocations: 317.3 kB / 0.5359 GB, free: 9.438 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/0.4266, allocations: 45.09 kB / 0.5359 GB, free: 9.414 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001208/0.4268, allocations: 53.91 kB / 0.536 GB, free: 9.379 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002088/0.427, allocations: 76.44 kB / 0.536 GB, free: 9.336 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.427, allocations: 3.938 kB / 0.536 GB, free: 9.332 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002962/0.4273, allocations: 125.9 kB / 0.5362 GB, free: 9.258 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.4273, allocations: 9.5 kB / 0.5362 GB, free: 9.254 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.219e-06/0.4273, allocations: 4 kB / 0.5362 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.4274, allocations: 1.125 kB / 0.5362 GB, free: 9.25 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001015/0.4275, allocations: 16.42 kB / 0.5362 GB, free: 9.246 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.201e-06/0.4275, allocations: 1.125 kB / 0.5362 GB, free: 9.246 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001006/0.4276, allocations: 16.83 kB / 0.5362 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.4276, allocations: 2.188 kB / 0.5362 GB, free: 9.238 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.12e-05/0.4277, allocations: 127.6 kB / 0.5363 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.942e-05/0.4277, allocations: 12.5 kB / 0.5363 GB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.705e-05/0.4278, allocations: 15.08 kB / 0.5364 GB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.4278, allocations: 1.156 kB / 0.5364 GB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.656e-06/0.4278, allocations: 0 / 0.5364 GB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.808e-06/0.4278, allocations: 1.25 kB / 0.5364 GB, free: 9.086 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005058/0.4283, allocations: 393.5 kB / 0.5367 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.4283, allocations: 0 / 0.5367 GB, free: 8.711 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.445e-05/0.4284, allocations: 13.02 kB / 0.5367 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.4284, allocations: 1.156 kB / 0.5367 GB, free: 8.707 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.22e-05/0.4284, allocations: 4 kB / 0.5367 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.4284, allocations: 1.094 kB / 0.5367 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.4284, allocations: 0 / 0.5367 GB, free: 8.703 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004514/0.4289, allocations: 258 kB / 0.537 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.109e-05/0.4289, allocations: 87.14 kB / 0.5371 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.85e-05/0.429, allocations: 1.156 kB / 0.5371 GB, free: 8.406 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.4291, allocations: 19.67 kB / 0.5371 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.106e-05/0.4292, allocations: 17.62 kB / 0.5371 GB, free: 8.387 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.103e-06/0.4292, allocations: 2.75 kB / 0.5371 GB, free: 8.387 MB / 398.1 MB Notification: Performance of sorting global known variables: time 8.136e-05/0.4293, allocations: 110 kB / 0.5372 GB, free: 8.297 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.432e-06/0.4293, allocations: 0 / 0.5372 GB, free: 8.297 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002276/0.4295, allocations: 20.98 kB / 0.5372 GB, free: 8.289 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.391e-05/0.4296, allocations: 95.66 kB / 0.5373 GB, free: 8.199 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002881/0.4299, allocations: 87.98 kB / 0.5374 GB, free: 8.164 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.4299, allocations: 2.031 kB / 0.5374 GB, free: 8.164 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001334/0.4301, allocations: 46.19 kB / 0.5375 GB, free: 8.145 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002908/0.4304, allocations: 22.16 kB / 0.5375 GB, free: 8.133 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000885/0.4313, allocations: 272 kB / 0.5377 GB, free: 7.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002581/0.4315, allocations: 0.7069 MB / 0.5384 GB, free: 7.215 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.385e-05/0.4316, allocations: 9.766 kB / 0.5384 GB, free: 7.211 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.532e-05/0.4316, allocations: 12.59 kB / 0.5385 GB, free: 7.207 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4316, allocations: 0 / 0.5385 GB, free: 7.207 MB / 398.1 MB Notification: Performance of Templates: time 0.003775/0.4354, allocations: 1.243 MB / 0.5397 GB, free: 6.582 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches