Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.0009874/0.0009874, allocations: 80.8 kB / 21.49 MB, free: 2.996 MB / 18.57 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.001166/0.001166, allocations: 170.4 kB / 24.91 MB, free: 8.723 MB / 18.57 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.011/1.011, allocations: 177.1 MB / 205.3 MB, free: 4.492 MB / 186.7 MB " [Timeout remaining time 179] 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.135/0.135, allocations: 32.8 MB / 294.6 MB, free: 15.44 MB / 282.7 MB " [Timeout remaining time 180] 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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 323.2 MB, free: 2.777 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.886e-05/2.042e-05, allocations: 10.25 kB / 323.2 MB, free: 2.766 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002086/0.002106, allocations: 1.707 MB / 325 MB, free: 1.047 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006913/0.002798, allocations: 0.5025 MB / 325.5 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.187e-05/0.00287, allocations: 0 / 325.5 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001062/0.002976, allocations: 7.875 kB / 325.5 MB, free: 0.5312 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.056e-05/0.003016, allocations: 19.86 kB / 325.5 MB, free: 0.5117 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001534/0.00317, allocations: 39.83 kB / 325.5 MB, free: 484 kB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001014/0.003271, allocations: 75.72 kB / 325.6 MB, free: 408 kB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.016e-05/0.003361, allocations: 28.2 kB / 325.6 MB, free: 380 kB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.993e-05/0.003431, allocations: 39.84 kB / 325.7 MB, free: 340 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.209e-05/0.003483, allocations: 23.91 kB / 325.7 MB, free: 316 kB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.843e-05/0.003502, allocations: 4 kB / 325.7 MB, free: 312 kB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.075e-05/0.003512, allocations: 8 kB / 325.7 MB, free: 304 kB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.454e-05/0.003537, allocations: 23.91 kB / 325.7 MB, free: 280 kB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.943e-05/0.003566, allocations: 19.98 kB / 325.7 MB, free: 260 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001036/0.00367, allocations: 59.73 kB / 325.8 MB, free: 200 kB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.893e-06/0.003672, allocations: 0 / 325.8 MB, free: 200 kB / 298.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.003672, allocations: 4 kB / 325.8 MB, free: 196 kB / 298.7 MB Notification: Performance of Transformations before backend: time 3.907e-06/0.003676, allocations: 0 / 325.8 MB, free: 196 kB / 298.7 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.0003321/0.004008, allocations: 288.6 kB / 326.1 MB, free: 15.89 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.917e-05/0.004038, allocations: 11.98 kB / 326.1 MB, free: 15.88 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.835e-05/0.004066, allocations: 16.92 kB / 326.1 MB, free: 15.86 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001216/0.004188, allocations: 133.6 kB / 326.2 MB, free: 15.7 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.143e-05/0.004199, allocations: 4.375 kB / 326.3 MB, free: 15.7 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.614e-05/0.004215, allocations: 16.38 kB / 326.3 MB, free: 15.68 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.67e-05/0.004302, allocations: 70.94 kB / 326.3 MB, free: 15.61 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.951e-06/0.004308, allocations: 192 / 326.3 MB, free: 15.61 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.674e-06/0.004315, allocations: 384 / 326.3 MB, free: 15.61 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.937e-06/0.004324, allocations: 15.91 kB / 326.4 MB, free: 15.59 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.911e-05/0.004353, allocations: 15.94 kB / 326.4 MB, free: 15.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002716/0.004625, allocations: 220 kB / 326.6 MB, free: 15.34 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.256e-05/0.004678, allocations: 26.58 kB / 326.6 MB, free: 15.31 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.482e-05/0.004692, allocations: 20.84 kB / 326.6 MB, free: 15.29 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.982e-06/0.004698, allocations: 4 kB / 326.6 MB, free: 15.28 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.627e-05/0.004765, allocations: 55.39 kB / 326.7 MB, free: 15.21 MB / 314.7 MB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.004766, allocations: 3.938 kB / 326.7 MB, free: 15.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001055/0.004871, allocations: 69.59 kB / 326.8 MB, free: 15.14 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.053e-05/0.004902, allocations: 51.41 kB / 326.8 MB, free: 15.07 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.736e-05/0.004959, allocations: 122.7 kB / 326.9 MB, free: 14.94 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.241e-05/0.004972, allocations: 29.7 kB / 327 MB, free: 14.91 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.511e-05/0.005007, allocations: 96.27 kB / 327.1 MB, free: 14.81 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.985e-05/0.005027, allocations: 19.97 kB / 327.1 MB, free: 14.79 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.163e-05/0.005058, allocations: 29.69 kB / 327.1 MB, free: 14.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.194e-05/0.00513, allocations: 322.8 kB / 327.4 MB, free: 14.43 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.145e-05/0.005142, allocations: 16 kB / 327.4 MB, free: 14.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.321e-05/0.005165, allocations: 26.56 kB / 327.5 MB, free: 14.38 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.878e-05/0.005204, allocations: 42.48 kB / 327.5 MB, free: 14.33 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.005205, allocations: 0 / 327.5 MB, free: 14.33 MB / 314.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 7.547e-05/0.005281, allocations: 61.62 kB / 327.6 MB, free: 14.26 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.005294, allocations: 11.98 kB / 327.6 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.005297, allocations: 0 / 327.6 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.858e-06/0.005307, allocations: 0 / 327.6 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.71e-05/0.005354, allocations: 20 kB / 327.6 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.067e-06/0.005358, allocations: 4 kB / 327.6 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.663e-05/0.005385, allocations: 0 / 327.6 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.868e-06/0.005389, allocations: 4 kB / 327.6 MB, free: 14.22 MB / 314.7 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 5.724e-05/0.005446, allocations: 121.8 kB / 327.7 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.456e-06/0.005454, allocations: 4 kB / 327.7 MB, free: 14.09 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.099e-05/0.005475, allocations: 8.438 kB / 327.7 MB, free: 14.08 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.005479, allocations: 4 kB / 327.7 MB, free: 14.08 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-06/0.005481, allocations: 0 / 327.7 MB, free: 14.08 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.005485, allocations: 3.984 kB / 327.7 MB, free: 14.07 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001676/0.005652, allocations: 226.7 kB / 328 MB, free: 13.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.005653, allocations: 0 / 328 MB, free: 13.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.78e-05/0.005681, allocations: 7.984 kB / 328 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.005683, allocations: 0 / 328 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.041e-06/0.005689, allocations: 0 / 328 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.31e-07/0.00569, allocations: 3.938 kB / 328 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.00569, allocations: 0 / 328 MB, free: 13.82 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001183/0.005808, allocations: 171.8 kB / 328.1 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.488e-06/0.005818, allocations: 11.89 kB / 328.1 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.498e-06/0.005827, allocations: 0 / 328.1 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.98e-05/0.005867, allocations: 8.016 kB / 328.2 MB, free: 13.61 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.401e-05/0.005901, allocations: 11.98 kB / 328.2 MB, free: 13.6 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.308e-06/0.005906, allocations: 0 / 328.2 MB, free: 13.6 MB / 314.7 MB Notification: Performance of sorting global known variables: time 2.011e-05/0.005926, allocations: 24.83 kB / 328.2 MB, free: 13.57 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005926, allocations: 0 / 328.2 MB, free: 13.57 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001279/0.006054, allocations: 12 kB / 328.2 MB, free: 13.56 MB / 314.7 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 5.815e-05/0.006112, allocations: 80.36 kB / 328.3 MB, free: 13.48 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 6.853e-05/0.00618, allocations: 32.78 kB / 328.3 MB, free: 13.44 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.407e-06/0.006184, allocations: 4 kB / 328.3 MB, free: 13.44 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.672e-05/0.00621, allocations: 16.92 kB / 328.3 MB, free: 13.42 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001457/0.006356, allocations: 28.86 kB / 328.4 MB, free: 13.39 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002649/0.006621, allocations: 200.5 kB / 328.6 MB, free: 13.17 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.474e-05/0.006656, allocations: 63.34 kB / 328.6 MB, free: 13.09 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.418e-05/0.00668, allocations: 7.984 kB / 328.6 MB, free: 13.08 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.118e-05/0.006731, allocations: 59.38 kB / 328.7 MB, free: 13.02 MB / 314.7 MB Notification: Performance of SimCode: time 4.51e-07/0.006732, allocations: 0 / 328.7 MB, free: 13.02 MB / 314.7 MB Notification: Performance of Templates: time 0.00228/0.009012, allocations: 0.9388 MB / 329.6 MB, free: 12.1 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9526444682851434]