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.002128/0.002128, allocations: 114.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.002669/0.002669, allocations: 206 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.51/1.51, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2567/0.2567, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 75.88 kB / 481.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4405/0.442, allocations: 62.44 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.00329/0.4454, allocations: 1.642 MB / 0.5326 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001168/0.4466, allocations: 0.5867 MB / 0.5332 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.815e-05/0.4467, allocations: 1.094 kB / 0.5332 GB, free: 11.87 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001401/0.4468, allocations: 8.938 kB / 0.5332 GB, free: 11.86 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.532e-05/0.4469, allocations: 16.89 kB / 0.5332 GB, free: 11.85 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004024/0.4473, allocations: 80.83 kB / 0.5333 GB, free: 11.79 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001919/0.4475, allocations: 117.4 kB / 0.5334 GB, free: 11.72 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000166/0.4477, allocations: 40.33 kB / 0.5334 GB, free: 11.69 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.329e-05/0.4478, allocations: 40.41 kB / 0.5334 GB, free: 11.67 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001049/0.4479, allocations: 36.03 kB / 0.5335 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.643e-05/0.4479, allocations: 8.25 kB / 0.5335 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.955e-05/0.448, allocations: 12.19 kB / 0.5335 GB, free: 11.64 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 4.372e-05/0.448, allocations: 22.67 kB / 0.5335 GB, free: 11.62 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.811e-05/0.4481, allocations: 36.05 kB / 0.5336 GB, free: 11.59 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000188/0.4483, allocations: 96.69 kB / 0.5337 GB, free: 11.52 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.4483, allocations: 1.375 kB / 0.5337 GB, free: 11.52 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4483, allocations: 4 kB / 0.5337 GB, free: 11.52 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.324e-06/0.4483, allocations: 0 / 0.5337 GB, free: 11.52 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.0008785/0.4492, allocations: 416.2 kB / 0.5341 GB, free: 11.1 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.66e-05/0.4493, allocations: 13.61 kB / 0.5341 GB, free: 11.1 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.447e-05/0.4494, allocations: 10.39 kB / 0.5341 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003962/0.4498, allocations: 202 kB / 0.5343 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.918e-05/0.4498, allocations: 7.125 kB / 0.5343 GB, free: 10.87 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.492e-05/0.4499, allocations: 9.812 kB / 0.5343 GB, free: 10.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003441/0.4502, allocations: 110.2 kB / 0.5344 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/0.4502, allocations: 0 / 0.5344 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.869e-05/0.4502, allocations: 5.375 kB / 0.5344 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.4503, allocations: 1.375 kB / 0.5344 GB, free: 10.79 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001836/0.4505, allocations: 54.22 kB / 0.5344 GB, free: 10.76 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008528/0.4513, allocations: 383.7 kB / 0.5348 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003658/0.4517, allocations: 104.1 kB / 0.5349 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001259/0.4518, allocations: 40.67 kB / 0.535 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.38e-05/0.4518, allocations: 0 / 0.535 GB, free: 10.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002805/0.4521, allocations: 100.2 kB / 0.535 GB, free: 10.24 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.683e-06/0.4521, allocations: 0 / 0.535 GB, free: 10.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005694/0.4527, allocations: 139.2 kB / 0.5352 GB, free: 10.16 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.672e-05/0.4528, allocations: 60.31 kB / 0.5352 GB, free: 10.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000171/0.453, allocations: 150.8 kB / 0.5354 GB, free: 9.969 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.676e-05/0.453, allocations: 26.98 kB / 0.5354 GB, free: 9.938 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.144e-05/0.4531, allocations: 103.9 kB / 0.5355 GB, free: 9.836 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.489e-05/0.4531, allocations: 26.53 kB / 0.5355 GB, free: 9.812 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.16e-05/0.4532, allocations: 29.17 kB / 0.5356 GB, free: 9.785 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.4534, allocations: 322.2 kB / 0.5359 GB, free: 9.465 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.4535, allocations: 36.75 kB / 0.5359 GB, free: 9.449 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00015/0.4537, allocations: 53.44 kB / 0.536 GB, free: 9.414 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002403/0.4539, allocations: 77.31 kB / 0.536 GB, free: 9.371 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.454, allocations: 3.938 kB / 0.536 GB, free: 9.367 MB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003283/0.4543, allocations: 125.6 kB / 0.5362 GB, free: 9.293 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.929e-05/0.4543, allocations: 11.5 kB / 0.5362 GB, free: 9.289 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.458e-06/0.4543, allocations: 1.219 kB / 0.5362 GB, free: 9.289 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.167e-05/0.4544, allocations: 1.312 kB / 0.5362 GB, free: 9.289 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001262/0.4545, allocations: 15.7 kB / 0.5362 GB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.358e-06/0.4545, allocations: 0 / 0.5362 GB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001001/0.4546, allocations: 22.34 kB / 0.5362 GB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.34e-05/0.4546, allocations: 6.359 kB / 0.5362 GB, free: 9.27 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 0.000131/0.4548, allocations: 122.3 kB / 0.5363 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.528e-05/0.4548, allocations: 20.44 kB / 0.5363 GB, free: 9.129 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.355e-05/0.4549, allocations: 16.17 kB / 0.5364 GB, free: 9.113 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.927e-06/0.4549, allocations: 5.031 kB / 0.5364 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.4549, allocations: 0 / 0.5364 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.4549, allocations: 0 / 0.5364 GB, free: 9.109 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006309/0.4555, allocations: 395 kB / 0.5367 GB, free: 8.734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.4556, allocations: 0 / 0.5367 GB, free: 8.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.439e-05/0.4557, allocations: 16.92 kB / 0.5368 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.4557, allocations: 0 / 0.5368 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/0.4557, allocations: 1.094 kB / 0.5368 GB, free: 8.727 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.26e-06/0.4557, allocations: 9.219 kB / 0.5368 GB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.4557, allocations: 0 / 0.5368 GB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005008/0.4562, allocations: 249.5 kB / 0.537 GB, free: 8.531 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.832e-05/0.4563, allocations: 88.52 kB / 0.5371 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.198e-05/0.4563, allocations: 1.469 kB / 0.5371 GB, free: 8.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001335/0.4564, allocations: 14.55 kB / 0.5371 GB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.117e-05/0.4565, allocations: 17.28 kB / 0.5371 GB, free: 8.414 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.184e-06/0.4565, allocations: 2.781 kB / 0.5371 GB, free: 8.414 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001056/0.4566, allocations: 109.5 kB / 0.5372 GB, free: 8.324 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4566, allocations: 96 / 0.5372 GB, free: 8.324 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002307/0.4569, allocations: 21.55 kB / 0.5372 GB, free: 8.316 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 0.0001333/0.457, allocations: 104.3 kB / 0.5373 GB, free: 8.219 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003084/0.4573, allocations: 83.39 kB / 0.5374 GB, free: 8.188 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.4574, allocations: 1.406 kB / 0.5374 GB, free: 8.188 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001449/0.4575, allocations: 49.88 kB / 0.5375 GB, free: 8.164 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003127/0.4578, allocations: 17.48 kB / 0.5375 GB, free: 8.156 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009607/0.4588, allocations: 269 kB / 0.5377 GB, free: 7.953 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.4591, allocations: 0.6984 MB / 0.5384 GB, free: 7.246 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.927e-05/0.4592, allocations: 9.797 kB / 0.5384 GB, free: 7.242 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.884e-05/0.4592, allocations: 17.88 kB / 0.5385 GB, free: 7.234 MB / 398.1 MB Notification: Performance of SimCode: time 1.91e-07/0.4592, allocations: 0 / 0.5385 GB, free: 7.234 MB / 398.1 MB Notification: Performance of Templates: time 0.004202/0.4634, allocations: 1.242 MB / 0.5397 GB, free: 6.609 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