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.001111/0.001111, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001601/0.002712, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007272/0.0007272, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009302/0.001657, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.021/1.021, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09008/1.111, allocations: 53.64 MB / 243.3 MB, free: 15.59 MB / 250.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.2486/0.2486, allocations: 34.26 MB / 278.2 MB, free: 15.29 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02198/0.2705, allocations: 13.09 MB / 291.3 MB, free: 7.375 MB / 282.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 1.403e-06/1.403e-06, allocations: 0 / 292.6 MB, free: 6.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.104e-05/1.244e-05, allocations: 7.734 kB / 292.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001817/0.00183, allocations: 1.711 MB / 294.3 MB, free: 4.594 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005888/0.002419, allocations: 0.5024 MB / 294.8 MB, free: 4.086 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.156e-05/0.00248, allocations: 4 kB / 294.8 MB, free: 4.082 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.521e-05/0.002535, allocations: 11.86 kB / 294.9 MB, free: 4.07 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 3.556e-05/0.002571, allocations: 15.88 kB / 294.9 MB, free: 4.055 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.81e-05/0.002669, allocations: 35.89 kB / 294.9 MB, free: 4.02 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001035/0.002772, allocations: 79.72 kB / 295 MB, free: 3.941 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.71e-05/0.00286, allocations: 24.7 kB / 295 MB, free: 3.914 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.637e-05/0.002936, allocations: 55.78 kB / 295.1 MB, free: 3.859 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.472e-05/0.002991, allocations: 23.89 kB / 295.1 MB, free: 3.836 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.071e-05/0.003011, allocations: 8 kB / 295.1 MB, free: 3.828 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.199e-05/0.003023, allocations: 8 kB / 295.1 MB, free: 3.82 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.735e-05/0.003041, allocations: 11.94 kB / 295.1 MB, free: 3.809 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.867e-05/0.003069, allocations: 15.94 kB / 295.1 MB, free: 3.793 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001002/0.00317, allocations: 55.83 kB / 295.2 MB, free: 3.738 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.438e-05/0.003184, allocations: 0 / 295.2 MB, free: 3.738 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.31e-07/0.003185, allocations: 0 / 295.2 MB, free: 3.738 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.003197, allocations: 0 / 295.2 MB, free: 3.738 MB / 282.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.0004321/0.003629, allocations: 309.4 kB / 295.5 MB, free: 3.414 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.003662, allocations: 8.031 kB / 295.5 MB, free: 3.406 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.157e-05/0.003694, allocations: 8.938 kB / 295.5 MB, free: 3.398 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001401/0.003834, allocations: 129.7 kB / 295.6 MB, free: 3.246 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.603e-05/0.00385, allocations: 8.375 kB / 295.6 MB, free: 3.238 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.693e-05/0.003867, allocations: 12.38 kB / 295.6 MB, free: 3.227 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.823e-05/0.003955, allocations: 74.86 kB / 295.7 MB, free: 3.145 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.583e-06/0.003962, allocations: 4.125 kB / 295.7 MB, free: 3.141 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.955e-06/0.00397, allocations: 8.312 kB / 295.7 MB, free: 3.133 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-06/0.003977, allocations: 7.938 kB / 295.7 MB, free: 3.125 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.416e-05/0.004011, allocations: 17.25 kB / 295.8 MB, free: 3.109 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002889/0.0043, allocations: 212 kB / 296 MB, free: 2.887 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.427e-05/0.004364, allocations: 34.56 kB / 296 MB, free: 2.844 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.344e-05/0.004378, allocations: 8.859 kB / 296 MB, free: 2.832 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.702e-06/0.004384, allocations: 4 kB / 296 MB, free: 2.828 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.443e-05/0.004469, allocations: 63.38 kB / 296.1 MB, free: 2.754 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 1.002e-06/0.00447, allocations: 0 / 296.1 MB, free: 2.754 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001015/0.004571, allocations: 61.61 kB / 296.1 MB, free: 2.688 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.252e-05/0.004604, allocations: 55.39 kB / 296.2 MB, free: 2.621 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.479e-05/0.004659, allocations: 125 kB / 296.3 MB, free: 2.488 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.151e-05/0.00467, allocations: 25.7 kB / 296.3 MB, free: 2.457 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.26e-05/0.004703, allocations: 100.3 kB / 296.4 MB, free: 2.355 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.04e-05/0.004723, allocations: 23.92 kB / 296.5 MB, free: 2.332 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.245e-05/0.004756, allocations: 29.69 kB / 296.5 MB, free: 2.297 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.993e-05/0.004826, allocations: 330.8 kB / 296.8 MB, free: 1.965 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.04e-05/0.004836, allocations: 4 kB / 296.8 MB, free: 1.961 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.173e-05/0.004858, allocations: 30.52 kB / 296.8 MB, free: 1.922 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.173e-05/0.004899, allocations: 50.83 kB / 296.9 MB, free: 1.863 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.004901, allocations: 0 / 296.9 MB, free: 1.863 MB / 282.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 5.583e-05/0.004957, allocations: 57.62 kB / 296.9 MB, free: 1.801 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.00497, allocations: 8 kB / 297 MB, free: 1.793 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/0.004974, allocations: 4 kB / 297 MB, free: 1.789 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.063e-06/0.004982, allocations: 4.062 kB / 297 MB, free: 1.785 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.096e-05/0.005033, allocations: 23.91 kB / 297 MB, free: 1.762 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.025e-06/0.005036, allocations: 0 / 297 MB, free: 1.762 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.817e-05/0.005064, allocations: 8 kB / 297 MB, free: 1.754 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.396e-06/0.005067, allocations: 0 / 297 MB, free: 1.754 MB / 282.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.385e-05/0.005121, allocations: 113.8 kB / 297.1 MB, free: 1.633 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.917e-06/0.00513, allocations: 15.92 kB / 297.1 MB, free: 1.617 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.185e-05/0.005152, allocations: 12.44 kB / 297.1 MB, free: 1.605 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.005153, allocations: 0 / 297.1 MB, free: 1.605 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.005154, allocations: 0 / 297.1 MB, free: 1.605 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.005157, allocations: 4 kB / 297.1 MB, free: 1.602 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001687/0.005326, allocations: 222.6 kB / 297.3 MB, free: 1.359 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.005327, allocations: 0 / 297.3 MB, free: 1.359 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.837e-05/0.005356, allocations: 4 kB / 297.4 MB, free: 1.355 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.11e-05/0.005367, allocations: 11.94 kB / 297.4 MB, free: 1.344 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.005368, allocations: 0 / 297.4 MB, free: 1.344 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.883e-06/0.005375, allocations: 4 kB / 297.4 MB, free: 1.34 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.005375, allocations: 0 / 297.4 MB, free: 1.34 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.005376, allocations: 0 / 297.4 MB, free: 1.34 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001032/0.005479, allocations: 163.4 kB / 297.5 MB, free: 1.164 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.084e-05/0.00549, allocations: 4 kB / 297.5 MB, free: 1.16 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.746e-05/0.005528, allocations: 12.02 kB / 297.5 MB, free: 1.148 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.989e-05/0.005557, allocations: 7.984 kB / 297.6 MB, free: 1.141 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-06/0.005561, allocations: 0 / 297.6 MB, free: 1.141 MB / 282.7 MB Notification: Performance of sorting global known variables: time 1.631e-05/0.005577, allocations: 20.84 kB / 297.6 MB, free: 1.117 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005577, allocations: 0 / 297.6 MB, free: 1.117 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001237/0.005701, allocations: 15.94 kB / 297.6 MB, free: 1.102 MB / 282.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.801e-05/0.005769, allocations: 85 kB / 297.7 MB, free: 1.012 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 7.214e-05/0.005841, allocations: 36.78 kB / 297.7 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.005844, allocations: 0 / 297.7 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.106e-05/0.005875, allocations: 24.92 kB / 297.7 MB, free: 0.9453 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001498/0.006025, allocations: 20.75 kB / 297.8 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003865/0.006412, allocations: 201 kB / 297.9 MB, free: 0.7031 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.228e-05/0.006444, allocations: 63.34 kB / 298 MB, free: 0.6211 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 2.32e-05/0.006467, allocations: 4 kB / 298 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.842e-05/0.006516, allocations: 59.31 kB / 298.1 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of SimCode: time 4.31e-07/0.006516, allocations: 0 / 298.1 MB, free: 0.5586 MB / 282.7 MB Notification: Performance of Templates: time 0.002316/0.008832, allocations: 0.9711 MB / 299 MB, free: 15.61 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 -ignoreHideResult -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.8582368921488523]