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.0009713/0.0009713, allocations: 77.97 kB / 21.42 MB, free: 3.074 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.0009975/0.0009975, allocations: 166.5 kB / 24.82 MB, free: 9.27 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.9062/0.9062, 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.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.2825/0.2825, allocations: 32.8 MB / 294.6 MB, free: 1.238 MB / 266.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.533e-06/1.533e-06, allocations: 0 / 376.5 MB, free: 4.418 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.267e-05/2.421e-05, allocations: 2.312 kB / 376.5 MB, free: 4.414 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001891/0.001915, allocations: 1.665 MB / 378.1 MB, free: 2.738 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00067/0.002585, allocations: 0.4907 MB / 378.6 MB, free: 2.242 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.108e-05/0.002656, allocations: 0 / 378.6 MB, free: 2.242 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001108/0.002767, allocations: 19.86 kB / 378.6 MB, free: 2.223 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 3.891e-05/0.002806, allocations: 11.88 kB / 378.6 MB, free: 2.211 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001431/0.002949, allocations: 39.83 kB / 378.7 MB, free: 2.172 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001042/0.003053, allocations: 79.77 kB / 378.8 MB, free: 2.094 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.938e-05/0.003142, allocations: 24.2 kB / 378.8 MB, free: 2.07 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.687e-05/0.003199, allocations: 35.91 kB / 378.8 MB, free: 2.035 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.293e-05/0.003252, allocations: 23.91 kB / 378.8 MB, free: 2.012 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.81e-05/0.00327, allocations: 4 kB / 378.8 MB, free: 2.008 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.11e-05/0.003281, allocations: 8 kB / 378.9 MB, free: 2 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.29e-05/0.003304, allocations: 23.91 kB / 378.9 MB, free: 1.977 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.356e-05/0.003328, allocations: 15.94 kB / 378.9 MB, free: 1.961 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 9.952e-05/0.003427, allocations: 63.67 kB / 379 MB, free: 1.898 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.184e-06/0.003429, allocations: 4 kB / 379 MB, free: 1.895 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.003431, allocations: 11.92 kB / 379 MB, free: 1.883 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.976e-06/0.003434, allocations: 0 / 379 MB, free: 1.883 MB / 346.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.0003588/0.003793, allocations: 420 kB / 379.4 MB, free: 1.434 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.114e-05/0.003824, allocations: 12.03 kB / 379.4 MB, free: 1.422 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.036e-05/0.003855, allocations: 16.89 kB / 379.4 MB, free: 1.406 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.003973, allocations: 140.4 kB / 379.5 MB, free: 1.242 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.242e-05/0.003985, allocations: 4.375 kB / 379.6 MB, free: 1.238 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.593e-05/0.004001, allocations: 8.375 kB / 379.6 MB, free: 1.23 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.932e-05/0.00408, allocations: 70.94 kB / 379.6 MB, free: 1.152 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.202e-06/0.004086, allocations: 192 / 379.6 MB, free: 1.152 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.428e-06/0.004096, allocations: 12.36 kB / 379.6 MB, free: 1.141 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.004101, allocations: 3.938 kB / 379.6 MB, free: 1.137 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.904e-05/0.00413, allocations: 19.97 kB / 379.7 MB, free: 1.117 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000288/0.004418, allocations: 308.1 kB / 380 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.026e-05/0.004478, allocations: 47.08 kB / 380 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.507e-05/0.004493, allocations: 19.66 kB / 380 MB, free: 0.707 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.523e-06/0.0045, allocations: 4 kB / 380 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.769e-05/0.004567, allocations: 61.05 kB / 380.1 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 8.32e-07/0.004568, allocations: 0 / 380.1 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001201/0.004688, allocations: 69.62 kB / 380.2 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.692e-05/0.004715, allocations: 63.33 kB / 380.2 MB, free: 492 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.792e-05/0.004783, allocations: 177.9 kB / 380.4 MB, free: 296 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.087e-05/0.004794, allocations: 25.7 kB / 380.4 MB, free: 264 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.867e-05/0.004843, allocations: 159.1 kB / 380.6 MB, free: 100 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.743e-05/0.00486, allocations: 15.88 kB / 380.6 MB, free: 84 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.477e-05/0.004895, allocations: 31.36 kB / 380.6 MB, free: 44 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.005007, allocations: 0.4961 MB / 381.1 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.355e-05/0.00502, allocations: 8 kB / 381.1 MB, free: 15.53 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.649e-05/0.005047, allocations: 42.98 kB / 381.2 MB, free: 15.47 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.944e-05/0.005086, allocations: 46.98 kB / 381.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.005088, allocations: 0 / 381.2 MB, free: 15.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 7.065e-05/0.005158, allocations: 73.89 kB / 381.3 MB, free: 15.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.005169, allocations: 8 kB / 381.3 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.005174, allocations: 3.984 kB / 381.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.205e-06/0.005182, allocations: 0 / 381.3 MB, free: 15.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.404e-05/0.005226, allocations: 12.06 kB / 381.3 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.046e-06/0.00523, allocations: 4.078 kB / 381.3 MB, free: 15.31 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.603e-05/0.005256, allocations: 4 kB / 381.3 MB, free: 15.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.208e-06/0.00526, allocations: 7.984 kB / 381.3 MB, free: 15.3 MB / 362.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,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,fallingEdge.not_u,$PRE.fallingEdge.not_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 6.352e-05/0.005323, allocations: 168.4 kB / 381.5 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.839e-06/0.005333, allocations: 11.95 kB / 381.5 MB, free: 15.11 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.34e-05/0.005357, allocations: 12.44 kB / 381.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.005358, allocations: 0 / 381.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.373e-06/0.005359, allocations: 0 / 381.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.005363, allocations: 0 / 381.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001908/0.005554, allocations: 321.8 kB / 381.8 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.005555, allocations: 4 kB / 381.8 MB, free: 14.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.644e-05/0.005582, allocations: 7.984 kB / 381.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.005583, allocations: 0 / 381.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.651e-06/0.005589, allocations: 0 / 381.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.00559, allocations: 0 / 381.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.00559, allocations: 0 / 381.8 MB, free: 14.73 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000121/0.005711, allocations: 223.8 kB / 382.1 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.025e-06/0.005719, allocations: 7.953 kB / 382.1 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.628e-06/0.005729, allocations: 0 / 382.1 MB, free: 14.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.752e-05/0.005767, allocations: 8 kB / 382.1 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.763e-05/0.005794, allocations: 11.95 kB / 382.1 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.501e-06/0.0058, allocations: 7.984 kB / 382.1 MB, free: 14.46 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.941e-05/0.005839, allocations: 139.1 kB / 382.2 MB, free: 14.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005839, allocations: 0 / 382.2 MB, free: 14.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001429/0.005982, allocations: 19.94 kB / 382.3 MB, free: 14.3 MB / 362.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,fallingEdge.not_u,booleanPulse.pulseStart) * 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.897e-05/0.006041, allocations: 95.23 kB / 382.3 MB, free: 14.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 7.015e-05/0.006111, allocations: 39.61 kB / 382.4 MB, free: 14.16 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.006112, allocations: 0 / 382.4 MB, free: 14.16 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.85e-05/0.006141, allocations: 27.66 kB / 382.4 MB, free: 14.13 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000188/0.006329, allocations: 31.14 kB / 382.4 MB, free: 14.11 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002644/0.006593, allocations: 190.2 kB / 382.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.348e-05/0.006627, allocations: 63.34 kB / 382.7 MB, free: 13.81 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.457e-05/0.006651, allocations: 4 kB / 382.7 MB, free: 13.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.381e-05/0.006705, allocations: 82.19 kB / 382.8 MB, free: 13.72 MB / 362.7 MB Notification: Performance of SimCode: time 5.51e-07/0.006706, allocations: 3.938 kB / 382.8 MB, free: 13.72 MB / 362.7 MB Notification: Performance of Templates: time 0.002253/0.008959, allocations: 1.002 MB / 383.8 MB, free: 12.73 MB / 362.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 -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.761511948890984]