Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.001443/0.001443, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001527/0.001527, allocations: 214.3 kB / 23.73 MB, free: 4.16 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.546/1.546, allocations: 230.6 MB / 257.5 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2476/0.2476, allocations: 44.94 MB / 358.8 MB, free: 6.055 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002361/0.002361, allocations: 67.89 kB / 0.4935 GB, free: 10.05 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3444/0.3467, allocations: 65.47 MB / 0.5574 GB, free: 7.484 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002308/0.349, allocations: 0.8014 MB / 0.5582 GB, free: 6.684 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002502/0.3493, allocations: 47.81 kB / 0.5583 GB, free: 6.637 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.616e-05/0.3494, allocations: 4 kB / 0.5583 GB, free: 6.633 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001371/0.3495, allocations: 3.938 kB / 0.5583 GB, free: 6.629 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.847e-05/0.3495, allocations: 3.938 kB / 0.5583 GB, free: 6.625 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001373/0.3497, allocations: 19.98 kB / 0.5583 GB, free: 6.605 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001403/0.3498, allocations: 47.84 kB / 0.5583 GB, free: 6.559 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.3499, allocations: 14.66 kB / 0.5584 GB, free: 6.547 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.801e-05/0.35, allocations: 8 kB / 0.5584 GB, free: 6.539 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.334e-05/0.35, allocations: 19.86 kB / 0.5584 GB, free: 6.52 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.05e-05/0.3501, allocations: 0 / 0.5584 GB, free: 6.52 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.567e-05/0.3501, allocations: 4 kB / 0.5584 GB, free: 6.516 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.333e-05/0.3501, allocations: 7.984 kB / 0.5584 GB, free: 6.508 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.621e-05/0.3501, allocations: 15.88 kB / 0.5584 GB, free: 6.492 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001274/0.3503, allocations: 31.89 kB / 0.5584 GB, free: 6.461 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3503, allocations: 4 kB / 0.5584 GB, free: 6.457 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3503, allocations: 0 / 0.5584 GB, free: 6.457 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.3503, allocations: 4 kB / 0.5585 GB, free: 6.453 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005403/0.3508, allocations: 286.7 kB / 0.5587 GB, free: 6.141 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.3509, allocations: 8.031 kB / 0.5587 GB, free: 6.133 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.953e-05/0.3509, allocations: 8.891 kB / 0.5587 GB, free: 6.125 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002411/0.3511, allocations: 118.5 kB / 0.5589 GB, free: 5.984 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.42e-05/0.3512, allocations: 4.375 kB / 0.5589 GB, free: 5.98 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.63e-05/0.3512, allocations: 4.375 kB / 0.5589 GB, free: 5.977 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001387/0.3513, allocations: 54.23 kB / 0.5589 GB, free: 5.918 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.3513, allocations: 192 / 0.5589 GB, free: 5.918 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.3513, allocations: 7.938 kB / 0.5589 GB, free: 5.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.3513, allocations: 0 / 0.5589 GB, free: 5.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.352e-05/0.3514, allocations: 19.88 kB / 0.5589 GB, free: 5.891 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005102/0.3519, allocations: 224.5 kB / 0.5592 GB, free: 5.641 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.282e-05/0.352, allocations: 26.56 kB / 0.5592 GB, free: 5.605 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.295e-05/0.352, allocations: 12.86 kB / 0.5592 GB, free: 5.59 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.103e-05/0.352, allocations: 0 / 0.5592 GB, free: 5.59 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.172e-05/0.3521, allocations: 51.41 kB / 0.5592 GB, free: 5.527 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 3.546e-06/0.3521, allocations: 3.984 kB / 0.5592 GB, free: 5.523 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001562/0.3523, allocations: 53.64 kB / 0.5593 GB, free: 5.465 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.491e-05/0.3523, allocations: 51.41 kB / 0.5593 GB, free: 5.402 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.3524, allocations: 117.8 kB / 0.5595 GB, free: 5.277 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.973e-05/0.3525, allocations: 29.64 kB / 0.5595 GB, free: 5.242 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.24e-05/0.3525, allocations: 96.03 kB / 0.5596 GB, free: 5.145 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.296e-05/0.3525, allocations: 3.953 kB / 0.5596 GB, free: 5.141 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.01e-05/0.3526, allocations: 21.7 kB / 0.5596 GB, free: 5.113 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.3527, allocations: 314.8 kB / 0.5599 GB, free: 4.797 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.126e-05/0.3528, allocations: 8 kB / 0.5599 GB, free: 4.789 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.4e-05/0.3528, allocations: 21.7 kB / 0.5599 GB, free: 4.762 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.45e-05/0.3528, allocations: 29.72 kB / 0.56 GB, free: 4.727 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3528, allocations: 0 / 0.56 GB, free: 4.727 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.009e-05/0.3529, allocations: 49.62 kB / 0.56 GB, free: 4.672 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.3529, allocations: 8 kB / 0.56 GB, free: 4.664 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.3529, allocations: 0 / 0.56 GB, free: 4.664 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.353, allocations: 0 / 0.56 GB, free: 4.664 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.558e-05/0.353, allocations: 4 kB / 0.56 GB, free: 4.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.353, allocations: 0 / 0.56 GB, free: 4.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.031e-05/0.353, allocations: 8 kB / 0.56 GB, free: 4.652 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.648e-06/0.353, allocations: 0 / 0.56 GB, free: 4.652 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.561e-05/0.3531, allocations: 125.8 kB / 0.5601 GB, free: 4.52 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.066e-05/0.3531, allocations: 3.953 kB / 0.5601 GB, free: 4.516 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.295e-05/0.3532, allocations: 15.98 kB / 0.5602 GB, free: 4.492 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.163e-06/0.3532, allocations: 0 / 0.5602 GB, free: 4.492 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.3532, allocations: 0 / 0.5602 GB, free: 4.492 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.3532, allocations: 0 / 0.5602 GB, free: 4.492 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002818/0.3535, allocations: 242.3 kB / 0.5604 GB, free: 4.219 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.3535, allocations: 0 / 0.5604 GB, free: 4.219 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.761e-05/0.3535, allocations: 4 kB / 0.5604 GB, free: 4.215 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.3535, allocations: 3.938 kB / 0.5604 GB, free: 4.211 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.3535, allocations: 7.938 kB / 0.5604 GB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-06/0.3535, allocations: 4 kB / 0.5604 GB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.3535, allocations: 4 kB / 0.5604 GB, free: 4.195 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001808/0.3537, allocations: 151.4 kB / 0.5606 GB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.533e-06/0.3537, allocations: 432 / 0.5606 GB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.249e-05/0.3537, allocations: 0 / 0.5606 GB, free: 4.031 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.535e-05/0.3538, allocations: 8.016 kB / 0.5606 GB, free: 4.023 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.269e-05/0.3538, allocations: 0 / 0.5606 GB, free: 4.023 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/0.3538, allocations: 3.938 kB / 0.5606 GB, free: 4.02 MB / 398.1 MB Notification: Performance of sorting global known variables: time 7.388e-05/0.3539, allocations: 91.27 kB / 0.5607 GB, free: 3.93 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3539, allocations: 0 / 0.5607 GB, free: 3.93 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002176/0.3541, allocations: 8 kB / 0.5607 GB, free: 3.922 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 9.266e-05/0.3542, allocations: 99.23 kB / 0.5608 GB, free: 3.816 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001014/0.3543, allocations: 19.94 kB / 0.5608 GB, free: 3.797 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3543, allocations: 0 / 0.5608 GB, free: 3.797 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 2.227e-05/0.3543, allocations: 15.92 kB / 0.5608 GB, free: 3.781 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002485/0.3546, allocations: 4 kB / 0.5608 GB, free: 3.777 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003309/0.3549, allocations: 137.6 kB / 0.5609 GB, free: 3.617 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.765e-05/0.355, allocations: 63.34 kB / 0.561 GB, free: 3.535 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.957e-05/0.355, allocations: 12.25 kB / 0.561 GB, free: 3.523 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.567e-05/0.355, allocations: 11.42 kB / 0.561 GB, free: 3.512 MB / 398.1 MB Notification: Performance of SimCode: time 3.11e-07/0.355, allocations: 0 / 0.561 GB, free: 3.512 MB / 398.1 MB Notification: Performance of Templates: time 0.002954/0.358, allocations: 0.4968 MB / 0.5615 GB, free: 3.023 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.304980989545584]