Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001621/0.001621, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003029/0.003029, allocations: 207.5 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.674/1.674, allocations: 230.6 MB / 257.5 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2824/0.2824, allocations: 46.94 MB / 360.9 MB, free: 4.027 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002039/0.002039, allocations: 71.89 kB / 0.4966 GB, free: 7.219 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4737/0.4758, allocations: 66.04 MB / 0.5611 GB, free: 4.191 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003129/0.4789, allocations: 1.621 MB / 0.5626 GB, free: 2.559 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001134/0.48, allocations: 0.5542 MB / 0.5632 GB, free: 2 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.933e-05/0.4801, allocations: 11.94 kB / 0.5632 GB, free: 1.988 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001253/0.4803, allocations: 11.86 kB / 0.5632 GB, free: 1.977 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.74e-05/0.4803, allocations: 11.86 kB / 0.5632 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003924/0.4807, allocations: 103.2 kB / 0.5633 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000184/0.4809, allocations: 107.8 kB / 0.5634 GB, free: 1.762 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001364/0.481, allocations: 30.64 kB / 0.5635 GB, free: 1.734 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.36e-05/0.4811, allocations: 43.84 kB / 0.5635 GB, free: 1.691 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.658e-05/0.4812, allocations: 43.77 kB / 0.5635 GB, free: 1.648 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.72e-05/0.4812, allocations: 12 kB / 0.5635 GB, free: 1.637 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.535e-05/0.4812, allocations: 12 kB / 0.5636 GB, free: 1.625 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.731e-05/0.4813, allocations: 15.92 kB / 0.5636 GB, free: 1.609 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.381e-05/0.4813, allocations: 35.8 kB / 0.5636 GB, free: 1.574 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001536/0.4815, allocations: 87.36 kB / 0.5637 GB, free: 1.492 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.4815, allocations: 0 / 0.5637 GB, free: 1.492 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.4815, allocations: 0 / 0.5637 GB, free: 1.492 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.4815, allocations: 0 / 0.5637 GB, free: 1.492 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.0006946/0.4822, allocations: 350.8 kB / 0.564 GB, free: 1.117 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.4822, allocations: 16.02 kB / 0.564 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.249e-05/0.4822, allocations: 12.89 kB / 0.5641 GB, free: 1.09 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002695/0.4825, allocations: 142.3 kB / 0.5642 GB, free: 0.9258 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.121e-05/0.4825, allocations: 8.375 kB / 0.5642 GB, free: 0.918 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.982e-05/0.4826, allocations: 8.375 kB / 0.5642 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000296/0.4829, allocations: 108.8 kB / 0.5643 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.4829, allocations: 4 kB / 0.5643 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.4829, allocations: 0 / 0.5643 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.4829, allocations: 4 kB / 0.5643 GB, free: 0.793 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001738/0.4831, allocations: 55.89 kB / 0.5644 GB, free: 0.7383 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006876/0.4838, allocations: 308.3 kB / 0.5647 GB, free: 416 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003505/0.4841, allocations: 102.5 kB / 0.5648 GB, free: 304 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001167/0.4842, allocations: 32.91 kB / 0.5648 GB, free: 268 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.383e-05/0.4842, allocations: 8 kB / 0.5648 GB, free: 260 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002622/0.4845, allocations: 99.31 kB / 0.5649 GB, free: 148 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.4845, allocations: 0 / 0.5649 GB, free: 148 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004955/0.485, allocations: 141.5 kB / 0.565 GB, free: 0 / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.076e-05/0.4851, allocations: 55.41 kB / 0.5651 GB, free: 15.93 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001393/0.4852, allocations: 134 kB / 0.5652 GB, free: 15.79 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.4852, allocations: 25.7 kB / 0.5652 GB, free: 15.76 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.895e-05/0.4853, allocations: 108.3 kB / 0.5653 GB, free: 15.64 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.704e-05/0.4853, allocations: 19.94 kB / 0.5654 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.229e-05/0.4854, allocations: 33.64 kB / 0.5654 GB, free: 15.59 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.4855, allocations: 318.8 kB / 0.5657 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001295/0.4857, allocations: 35.97 kB / 0.5657 GB, free: 15.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001397/0.4858, allocations: 53.62 kB / 0.5658 GB, free: 15.17 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002209/0.486, allocations: 73.62 kB / 0.5659 GB, free: 15.09 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.486, allocations: 4 kB / 0.5659 GB, free: 15.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003051/0.4863, allocations: 121.5 kB / 0.566 GB, free: 14.96 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.4863, allocations: 4 kB / 0.566 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.4864, allocations: 0 / 0.566 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.4864, allocations: 4 kB / 0.566 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.4865, allocations: 20.02 kB / 0.566 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.4865, allocations: 8.188 kB / 0.566 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.53e-05/0.4866, allocations: 19.98 kB / 0.566 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.02e-05/0.4866, allocations: 4 kB / 0.566 GB, free: 14.91 MB / 414.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,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,change.u,$PRE.change.u,$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.0001074/0.4867, allocations: 113.8 kB / 0.5661 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.909e-05/0.4867, allocations: 7.953 kB / 0.5661 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.621e-05/0.4868, allocations: 16.72 kB / 0.5662 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-06/0.4868, allocations: 3.984 kB / 0.5662 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.4868, allocations: 7.922 kB / 0.5662 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.4868, allocations: 4 kB / 0.5662 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005207/0.4873, allocations: 330.1 kB / 0.5665 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.4873, allocations: 0 / 0.5665 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001108/0.4874, allocations: 11.98 kB / 0.5665 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.4874, allocations: 0 / 0.5665 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.4874, allocations: 7.938 kB / 0.5665 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.4874, allocations: 4 kB / 0.5665 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.4874, allocations: 288 / 0.5665 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004872/0.4879, allocations: 239.4 kB / 0.5667 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.704e-05/0.4879, allocations: 11.92 kB / 0.5668 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.118e-05/0.488, allocations: 11.94 kB / 0.5668 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001411/0.4881, allocations: 23.97 kB / 0.5668 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.987e-05/0.4882, allocations: 7.984 kB / 0.5668 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-06/0.4882, allocations: 7.938 kB / 0.5668 GB, free: 14.04 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.716e-05/0.4882, allocations: 102.2 kB / 0.5669 GB, free: 13.95 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4882, allocations: 0 / 0.5669 GB, free: 13.95 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002449/0.4885, allocations: 27.92 kB / 0.5669 GB, free: 13.92 MB / 414.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,change.u,booleanPulse.pulseStart) * 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.0001009/0.4886, allocations: 91.25 kB / 0.567 GB, free: 13.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003034/0.4889, allocations: 79.89 kB / 0.5671 GB, free: 13.74 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.4889, allocations: 0 / 0.5671 GB, free: 13.74 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001406/0.489, allocations: 47.95 kB / 0.5671 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000322/0.4894, allocations: 22.7 kB / 0.5672 GB, free: 13.68 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009605/0.4903, allocations: 262.5 kB / 0.5674 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.873e-05/0.4904, allocations: 85.31 kB / 0.5675 GB, free: 13.29 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.052e-05/0.4904, allocations: 8.609 kB / 0.5675 GB, free: 13.28 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.896e-05/0.4905, allocations: 15.44 kB / 0.5675 GB, free: 13.27 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.4905, allocations: 0 / 0.5675 GB, free: 13.27 MB / 414.1 MB Notification: Performance of Templates: time 0.004623/0.4951, allocations: 1.303 MB / 0.5688 GB, free: 11.98 MB / 414.1 MB " [Timeout remaining time 659] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.518247278872877]