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.001843/0.001843, allocations: 113.2 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.002189/0.002189, allocations: 207.8 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.664/1.664, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2766/0.2766, allocations: 46.1 MB / 344.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001909/0.001909, allocations: 75.88 kB / 481.3 MB, free: 4.117 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.564/0.5659, allocations: 62.43 MB / 0.531 GB, free: 13.64 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003048/0.569, allocations: 1.643 MB / 0.5326 GB, free: 12.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.5701, allocations: 0.5874 MB / 0.5332 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.5703, allocations: 1.375 kB / 0.5332 GB, free: 11.89 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001142/0.5704, allocations: 11.86 kB / 0.5332 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.61e-05/0.5705, allocations: 9.25 kB / 0.5332 GB, free: 11.88 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000354/0.5708, allocations: 92.38 kB / 0.5333 GB, free: 11.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001736/0.571, allocations: 109.1 kB / 0.5334 GB, free: 11.74 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.5712, allocations: 32.34 kB / 0.5334 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.366e-05/0.5713, allocations: 45.72 kB / 0.5334 GB, free: 11.7 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.569e-05/0.5713, allocations: 44.02 kB / 0.5335 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.677e-05/0.5714, allocations: 8.25 kB / 0.5335 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.926e-05/0.5714, allocations: 12.19 kB / 0.5335 GB, free: 11.66 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.858e-05/0.5714, allocations: 18.67 kB / 0.5335 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.81e-05/0.5715, allocations: 44.03 kB / 0.5336 GB, free: 11.61 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001823/0.5717, allocations: 88.72 kB / 0.5336 GB, free: 11.54 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.5717, allocations: 0 / 0.5336 GB, free: 11.54 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.5717, allocations: 0 / 0.5336 GB, free: 11.54 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.942e-06/0.5717, allocations: 5.375 kB / 0.5337 GB, free: 11.54 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.0006421/0.5724, allocations: 416.2 kB / 0.5341 GB, free: 11.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.5724, allocations: 9.625 kB / 0.5341 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.908e-05/0.5725, allocations: 10.39 kB / 0.5341 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002627/0.5727, allocations: 208.5 kB / 0.5343 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.5728, allocations: 8.5 kB / 0.5343 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.316e-05/0.5728, allocations: 9.875 kB / 0.5343 GB, free: 10.88 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002681/0.5731, allocations: 109.4 kB / 0.5344 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.5731, allocations: 0 / 0.5344 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.5731, allocations: 1.406 kB / 0.5344 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.5731, allocations: 1.188 kB / 0.5344 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001622/0.5733, allocations: 58.08 kB / 0.5344 GB, free: 10.78 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006659/0.5739, allocations: 388.9 kB / 0.5348 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003227/0.5743, allocations: 99.42 kB / 0.5349 GB, free: 10.36 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001085/0.5744, allocations: 35.81 kB / 0.5349 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.421e-05/0.5744, allocations: 4 kB / 0.535 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002331/0.5747, allocations: 104.4 kB / 0.5351 GB, free: 10.25 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.443e-06/0.5747, allocations: 0 / 0.5351 GB, free: 10.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.000426/0.5751, allocations: 139 kB / 0.5352 GB, free: 10.18 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.269e-05/0.5752, allocations: 57.56 kB / 0.5352 GB, free: 10.11 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.5753, allocations: 151.7 kB / 0.5354 GB, free: 9.988 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.5753, allocations: 30.8 kB / 0.5354 GB, free: 9.953 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.053e-05/0.5754, allocations: 100.7 kB / 0.5355 GB, free: 9.855 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.636e-05/0.5754, allocations: 22.12 kB / 0.5355 GB, free: 9.836 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.394e-05/0.5755, allocations: 33.69 kB / 0.5356 GB, free: 9.805 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.5756, allocations: 321.2 kB / 0.5359 GB, free: 9.484 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/0.5758, allocations: 32.88 kB / 0.5359 GB, free: 9.473 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000118/0.5759, allocations: 58.12 kB / 0.536 GB, free: 9.434 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002048/0.5761, allocations: 76.94 kB / 0.536 GB, free: 9.391 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.5761, allocations: 0 / 0.536 GB, free: 9.391 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002714/0.5764, allocations: 121 kB / 0.5361 GB, free: 9.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.5764, allocations: 17.52 kB / 0.5362 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.5764, allocations: 0 / 0.5362 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.5765, allocations: 1.031 kB / 0.5362 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.749e-05/0.5766, allocations: 12.72 kB / 0.5362 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.876e-06/0.5766, allocations: 3.984 kB / 0.5362 GB, free: 9.305 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.436e-05/0.5767, allocations: 26.56 kB / 0.5362 GB, free: 9.289 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-06/0.5767, allocations: 2.281 kB / 0.5362 GB, free: 9.289 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.476e-05/0.5768, allocations: 119.1 kB / 0.5363 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.278e-05/0.5768, allocations: 20.31 kB / 0.5363 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.139e-05/0.5769, allocations: 15.28 kB / 0.5364 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.5769, allocations: 1.281 kB / 0.5364 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.5769, allocations: 0 / 0.5364 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.5769, allocations: 3.984 kB / 0.5364 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004956/0.5774, allocations: 398.8 kB / 0.5367 GB, free: 8.754 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.5774, allocations: 0 / 0.5367 GB, free: 8.754 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.541e-05/0.5775, allocations: 12.95 kB / 0.5368 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.5775, allocations: 0 / 0.5368 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.5775, allocations: 1.312 kB / 0.5368 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.5775, allocations: 1.406 kB / 0.5368 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.5775, allocations: 4 kB / 0.5368 GB, free: 8.746 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005084/0.578, allocations: 245.4 kB / 0.537 GB, free: 8.562 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.121e-05/0.5781, allocations: 95.28 kB / 0.5371 GB, free: 8.453 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.017e-05/0.5781, allocations: 5.094 kB / 0.5371 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00013/0.5783, allocations: 15.95 kB / 0.5371 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.485e-05/0.5783, allocations: 17.38 kB / 0.5371 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.167e-06/0.5783, allocations: 5.953 kB / 0.5371 GB, free: 8.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.531e-05/0.5784, allocations: 106.5 kB / 0.5372 GB, free: 8.344 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.583e-06/0.5784, allocations: 96 / 0.5372 GB, free: 8.344 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002311/0.5787, allocations: 25.84 kB / 0.5373 GB, free: 8.332 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.928e-05/0.5788, allocations: 99.14 kB / 0.5373 GB, free: 8.238 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003394/0.5791, allocations: 88.17 kB / 0.5374 GB, free: 8.203 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.5791, allocations: 0 / 0.5374 GB, free: 8.203 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001467/0.5793, allocations: 47.94 kB / 0.5375 GB, free: 8.184 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.5796, allocations: 16.03 kB / 0.5375 GB, free: 8.176 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009463/0.5805, allocations: 272.7 kB / 0.5378 GB, free: 7.969 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002957/0.5809, allocations: 0.6997 MB / 0.5384 GB, free: 7.262 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.003e-05/0.5809, allocations: 5.562 kB / 0.5384 GB, free: 7.262 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.942e-05/0.581, allocations: 16.47 kB / 0.5385 GB, free: 7.254 MB / 398.1 MB Notification: Performance of SimCode: time 2.5e-07/0.581, allocations: 5.062 kB / 0.5385 GB, free: 7.25 MB / 398.1 MB Notification: Performance of Templates: time 0.004107/0.5851, allocations: 1.239 MB / 0.5397 GB, free: 6.633 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