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.0009548/0.0009548, allocations: 80.8 kB / 21.5 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.001008/0.001008, allocations: 170.3 kB / 24.91 MB, free: 9.195 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 0.9472/0.9472, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] 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.2442/0.2442, allocations: 34.26 MB / 296.1 MB, free: 0.7383 MB / 266.7 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 2.154e-06/2.154e-06, allocations: 4 kB / 325.2 MB, free: 7.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.188e-05/1.404e-05, allocations: 3.516 kB / 325.2 MB, free: 7.727 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001809/0.001823, allocations: 1.658 MB / 326.9 MB, free: 6.059 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008949/0.002718, allocations: 0.4946 MB / 327.4 MB, free: 5.559 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.103e-05/0.002809, allocations: 4 kB / 327.4 MB, free: 5.555 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001139/0.002923, allocations: 15.8 kB / 327.4 MB, free: 5.539 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.733e-05/0.00297, allocations: 15.86 kB / 327.4 MB, free: 5.523 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000157/0.003127, allocations: 35.84 kB / 327.5 MB, free: 5.488 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001085/0.003236, allocations: 83.75 kB / 327.5 MB, free: 5.406 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.00334, allocations: 20.22 kB / 327.6 MB, free: 5.383 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.533e-05/0.003406, allocations: 47.89 kB / 327.6 MB, free: 5.336 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.011e-05/0.003466, allocations: 15.91 kB / 327.6 MB, free: 5.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.267e-05/0.003488, allocations: 8 kB / 327.6 MB, free: 5.312 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.027e-05/0.003499, allocations: 4 kB / 327.6 MB, free: 5.309 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.385e-05/0.003523, allocations: 23.91 kB / 327.7 MB, free: 5.285 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.092e-05/0.003553, allocations: 20.44 kB / 327.7 MB, free: 5.266 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001176/0.003671, allocations: 67.67 kB / 327.7 MB, free: 5.199 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.003675, allocations: 3.984 kB / 327.7 MB, free: 5.195 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.003676, allocations: 0 / 327.7 MB, free: 5.195 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.587e-06/0.00368, allocations: 0 / 327.7 MB, free: 5.195 MB / 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.0003636/0.004044, allocations: 282 kB / 328 MB, free: 4.898 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.77e-05/0.004071, allocations: 12.03 kB / 328 MB, free: 4.887 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.974e-05/0.004101, allocations: 16.92 kB / 328 MB, free: 4.871 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001269/0.004228, allocations: 133.6 kB / 328.2 MB, free: 4.715 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.547e-05/0.004243, allocations: 8.375 kB / 328.2 MB, free: 4.707 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.736e-05/0.004261, allocations: 8.375 kB / 328.2 MB, free: 4.699 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.191e-05/0.004353, allocations: 79.62 kB / 328.3 MB, free: 4.613 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.801e-06/0.004359, allocations: 192 / 328.3 MB, free: 4.613 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-06/0.004367, allocations: 4.375 kB / 328.3 MB, free: 4.609 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.004372, allocations: 3.938 kB / 328.3 MB, free: 4.605 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.832e-05/0.004401, allocations: 22.31 kB / 328.3 MB, free: 4.586 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002764/0.004677, allocations: 212 kB / 328.5 MB, free: 4.363 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.942e-05/0.004736, allocations: 38.5 kB / 328.5 MB, free: 4.316 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.42e-05/0.004751, allocations: 12.84 kB / 328.6 MB, free: 4.301 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.532e-06/0.004757, allocations: 4 kB / 328.6 MB, free: 4.297 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.021e-05/0.004827, allocations: 59.38 kB / 328.6 MB, free: 4.227 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 9.92e-07/0.004828, allocations: 0 / 328.6 MB, free: 4.227 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001024/0.004931, allocations: 57.69 kB / 328.7 MB, free: 4.164 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.229e-05/0.004963, allocations: 55.34 kB / 328.7 MB, free: 4.098 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.868e-05/0.005022, allocations: 130.8 kB / 328.9 MB, free: 3.961 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.307e-05/0.005035, allocations: 29.7 kB / 328.9 MB, free: 3.926 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.661e-05/0.005071, allocations: 108.3 kB / 329 MB, free: 3.816 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.774e-05/0.005089, allocations: 15.89 kB / 329 MB, free: 3.801 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.086e-05/0.00512, allocations: 29.69 kB / 329 MB, free: 3.766 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.598e-05/0.005196, allocations: 326.8 kB / 329.4 MB, free: 3.438 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.394e-05/0.00521, allocations: 7.984 kB / 329.4 MB, free: 3.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.369e-05/0.005234, allocations: 26.58 kB / 329.4 MB, free: 3.395 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.853e-05/0.005272, allocations: 38.48 kB / 329.4 MB, free: 3.348 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.005274, allocations: 4 kB / 329.4 MB, free: 3.344 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 7.345e-05/0.005347, allocations: 61.61 kB / 329.5 MB, free: 3.277 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.032e-05/0.005358, allocations: 4 kB / 329.5 MB, free: 3.273 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.005362, allocations: 0 / 329.5 MB, free: 3.273 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.005375, allocations: 12.05 kB / 329.5 MB, free: 3.262 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.356e-05/0.005428, allocations: 15.98 kB / 329.5 MB, free: 3.246 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.836e-06/0.005431, allocations: 0 / 329.5 MB, free: 3.246 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.023e-05/0.005461, allocations: 4 kB / 329.5 MB, free: 3.242 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.098e-06/0.005465, allocations: 3.938 kB / 329.5 MB, free: 3.238 MB / 298.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 6.29e-05/0.005528, allocations: 124.3 kB / 329.7 MB, free: 3.109 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.1e-05/0.005539, allocations: 7.984 kB / 329.7 MB, free: 3.102 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.386e-05/0.005563, allocations: 12.44 kB / 329.7 MB, free: 3.09 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.005565, allocations: 0 / 329.7 MB, free: 3.09 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-06/0.005567, allocations: 3.938 kB / 329.7 MB, free: 3.086 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.00557, allocations: 4 kB / 329.7 MB, free: 3.082 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001864/0.005756, allocations: 231 kB / 329.9 MB, free: 2.832 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.005758, allocations: 0 / 329.9 MB, free: 2.832 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.973e-05/0.005788, allocations: 4 kB / 329.9 MB, free: 2.828 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.005789, allocations: 0 / 329.9 MB, free: 2.828 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.061e-06/0.005795, allocations: 0 / 329.9 MB, free: 2.828 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.005797, allocations: 3.984 kB / 329.9 MB, free: 2.824 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.005798, allocations: 0 / 329.9 MB, free: 2.824 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001088/0.005907, allocations: 167.5 kB / 330.1 MB, free: 2.645 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.087e-05/0.005918, allocations: 11.95 kB / 330.1 MB, free: 2.633 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.029e-05/0.005928, allocations: 3.938 kB / 330.1 MB, free: 2.629 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.81e-05/0.005967, allocations: 12.02 kB / 330.1 MB, free: 2.617 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.678e-05/0.005993, allocations: 7.984 kB / 330.1 MB, free: 2.609 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.739e-06/0.005998, allocations: 4 kB / 330.1 MB, free: 2.605 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.429e-05/0.006012, allocations: 12.86 kB / 330.1 MB, free: 2.59 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006012, allocations: 0 / 330.1 MB, free: 2.59 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001332/0.006146, allocations: 19.98 kB / 330.1 MB, free: 2.57 MB / 298.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 6.849e-05/0.006214, allocations: 76.36 kB / 330.2 MB, free: 2.488 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 6.411e-05/0.006278, allocations: 36.77 kB / 330.3 MB, free: 2.449 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.006281, allocations: 4 kB / 330.3 MB, free: 2.445 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.473e-05/0.006306, allocations: 16.98 kB / 330.3 MB, free: 2.426 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001488/0.006455, allocations: 19.98 kB / 330.3 MB, free: 2.406 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002679/0.006723, allocations: 193.1 kB / 330.5 MB, free: 2.191 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.393e-05/0.006757, allocations: 63.34 kB / 330.5 MB, free: 2.109 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.503e-05/0.006782, allocations: 11.92 kB / 330.6 MB, free: 2.098 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.055e-05/0.006832, allocations: 59.38 kB / 330.6 MB, free: 2.039 MB / 298.7 MB Notification: Performance of SimCode: time 8.01e-07/0.006833, allocations: 0 / 330.6 MB, free: 2.039 MB / 298.7 MB Notification: Performance of Templates: time 0.002377/0.00921, allocations: 0.9372 MB / 331.6 MB, free: 1.117 MB / 298.7 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=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.770398168824613]