Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.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.001624/0.001624, allocations: 116 kB / 18.45 MB, free: 4.562 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.001922/0.001922, allocations: 213.6 kB / 21.42 MB, free: 1.605 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.565/1.565, allocations: 230.6 MB / 254.8 MB, free: 15.1 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.252/0.252, allocations: 46.92 MB / 357.8 MB, free: 10.33 MB / 286.1 MB " [Timeout remaining time 180] 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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002172/0.002172, allocations: 63.91 kB / 0.4921 GB, free: 7.484 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.1437, allocations: 66 MB / 0.5565 GB, free: 5.359 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.00353/0.1473, allocations: 1.623 MB / 0.5581 GB, free: 3.723 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00112/0.1484, allocations: 0.5159 MB / 0.5586 GB, free: 3.203 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.1485, allocations: 11.88 kB / 0.5586 GB, free: 3.191 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001352/0.1486, allocations: 15.86 kB / 0.5586 GB, free: 3.176 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.168e-05/0.1487, allocations: 7.875 kB / 0.5586 GB, free: 3.168 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002086/0.1489, allocations: 35.89 kB / 0.5587 GB, free: 3.133 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001672/0.1491, allocations: 79.77 kB / 0.5587 GB, free: 3.055 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.1492, allocations: 28.22 kB / 0.5588 GB, free: 3.023 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.525e-05/0.1493, allocations: 23.92 kB / 0.5588 GB, free: 3 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.257e-05/0.1493, allocations: 43.77 kB / 0.5588 GB, free: 2.957 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.364e-05/0.1494, allocations: 8 kB / 0.5588 GB, free: 2.949 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.634e-05/0.1494, allocations: 4 kB / 0.5588 GB, free: 2.945 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.625e-05/0.1494, allocations: 19.92 kB / 0.5589 GB, free: 2.926 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.48e-05/0.1495, allocations: 31.81 kB / 0.5589 GB, free: 2.895 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001867/0.1497, allocations: 71.59 kB / 0.559 GB, free: 2.824 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1497, allocations: 0 / 0.559 GB, free: 2.824 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1497, allocations: 0 / 0.559 GB, free: 2.824 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.1497, allocations: 4 kB / 0.559 GB, free: 2.82 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006829/0.1504, allocations: 399.1 kB / 0.5593 GB, free: 2.383 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.1504, allocations: 8.031 kB / 0.5594 GB, free: 2.375 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.725e-05/0.1504, allocations: 12.89 kB / 0.5594 GB, free: 2.363 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000331/0.1508, allocations: 200.1 kB / 0.5596 GB, free: 2.129 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/0.1508, allocations: 4.375 kB / 0.5596 GB, free: 2.125 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.196e-05/0.1508, allocations: 8.375 kB / 0.5596 GB, free: 2.117 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001862/0.151, allocations: 79.11 kB / 0.5596 GB, free: 2.035 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.151, allocations: 3.984 kB / 0.5597 GB, free: 2.031 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.151, allocations: 4 kB / 0.5597 GB, free: 2.027 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.151, allocations: 4 kB / 0.5597 GB, free: 2.023 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.705e-05/0.1511, allocations: 31.98 kB / 0.5597 GB, free: 1.992 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000638/0.1518, allocations: 352.5 kB / 0.56 GB, free: 1.598 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001123/0.1519, allocations: 38.58 kB / 0.5601 GB, free: 1.551 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.894e-05/0.1519, allocations: 24.86 kB / 0.5601 GB, free: 1.523 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.016e-05/0.1519, allocations: 4 kB / 0.5601 GB, free: 1.52 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001245/0.152, allocations: 67.39 kB / 0.5602 GB, free: 1.441 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.152, allocations: 0 / 0.5602 GB, free: 1.441 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002485/0.1523, allocations: 89.56 kB / 0.5602 GB, free: 1.348 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.755e-05/0.1523, allocations: 55.34 kB / 0.5603 GB, free: 1.281 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001287/0.1525, allocations: 139.5 kB / 0.5604 GB, free: 1.137 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.415e-05/0.1525, allocations: 33.7 kB / 0.5605 GB, free: 1.098 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.579e-05/0.1526, allocations: 100.1 kB / 0.5606 GB, free: 0.9961 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.556e-05/0.1526, allocations: 15.97 kB / 0.5606 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.798e-05/0.1526, allocations: 25.72 kB / 0.5606 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.1528, allocations: 322.8 kB / 0.5609 GB, free: 0.625 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.94e-05/0.1529, allocations: 15.94 kB / 0.5609 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.391e-05/0.1529, allocations: 46.5 kB / 0.561 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.843e-05/0.153, allocations: 58.81 kB / 0.561 GB, free: 500 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.153, allocations: 0 / 0.561 GB, free: 500 kB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002014/0.1532, allocations: 101.5 kB / 0.5611 GB, free: 392 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/0.1532, allocations: 4 kB / 0.5611 GB, free: 388 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.1532, allocations: 4 kB / 0.5611 GB, free: 384 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.81e-05/0.1533, allocations: 3.938 kB / 0.5611 GB, free: 380 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.769e-05/0.1533, allocations: 8 kB / 0.5611 GB, free: 372 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.119e-06/0.1533, allocations: 4.062 kB / 0.5611 GB, free: 368 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.445e-05/0.1534, allocations: 7.984 kB / 0.5611 GB, free: 360 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.175e-06/0.1534, allocations: 4 kB / 0.5611 GB, free: 356 kB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,fallingEdge.not_u,$PRE.fallingEdge.not_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.0001099/0.1535, allocations: 124 kB / 0.5613 GB, free: 224 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.735e-05/0.1535, allocations: 7.953 kB / 0.5613 GB, free: 216 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.959e-05/0.1536, allocations: 16.66 kB / 0.5613 GB, free: 196 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.1536, allocations: 3.984 kB / 0.5613 GB, free: 192 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1536, allocations: 0 / 0.5613 GB, free: 192 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1536, allocations: 0 / 0.5613 GB, free: 192 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004101/0.154, allocations: 354.5 kB / 0.5616 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.154, allocations: 0 / 0.5616 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.13e-05/0.1541, allocations: 7.938 kB / 0.5616 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1541, allocations: 0 / 0.5616 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.378e-06/0.1541, allocations: 0 / 0.5616 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.1541, allocations: 0 / 0.5616 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1541, allocations: 0 / 0.5616 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002524/0.1543, allocations: 195.4 kB / 0.5618 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.134e-05/0.1544, allocations: 81.06 kB / 0.5619 GB, free: 15.47 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.12e-05/0.1544, allocations: 4.031 kB / 0.5619 GB, free: 15.47 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.216e-05/0.1545, allocations: 7.984 kB / 0.5619 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.695e-05/0.1546, allocations: 7.984 kB / 0.5619 GB, free: 15.45 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/0.1546, allocations: 4 kB / 0.5619 GB, free: 15.45 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.518e-05/0.1546, allocations: 105.5 kB / 0.562 GB, free: 15.35 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1546, allocations: 0 / 0.562 GB, free: 15.35 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002376/0.1549, allocations: 27.81 kB / 0.5621 GB, free: 15.32 MB / 430.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,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_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.0001224/0.155, allocations: 99.3 kB / 0.5621 GB, free: 15.21 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001513/0.1552, allocations: 43.98 kB / 0.5622 GB, free: 15.17 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1552, allocations: 3.938 kB / 0.5622 GB, free: 15.17 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 5.129e-05/0.1552, allocations: 16.19 kB / 0.5622 GB, free: 15.15 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003198/0.1555, allocations: 23.86 kB / 0.5622 GB, free: 15.13 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005641/0.1561, allocations: 228.2 kB / 0.5624 GB, free: 14.87 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003557/0.1564, allocations: 0.6964 MB / 0.5631 GB, free: 14.15 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.768e-05/0.1565, allocations: 15.44 kB / 0.5631 GB, free: 14.14 MB / 430.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1565, allocations: 0 / 0.5631 GB, free: 14.14 MB / 430.1 MB Notification: Performance of Templates: time 0.003052/0.1595, allocations: 1.164 MB / 0.5643 GB, free: 12.97 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.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: 7.756864335999126]