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.0008375/0.0008375, allocations: 80.31 kB / 22.21 MB, free: 2.289 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.001055/0.001055, allocations: 168.4 kB / 25.61 MB, free: 8.902 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.9552/0.9552, allocations: 177.1 MB / 206.1 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.1352/0.1352, allocations: 32.8 MB / 295.4 MB, free: 15.38 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.463e-06/1.463e-06, allocations: 0 / 377.3 MB, free: 25.6 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.126e-05/1.272e-05, allocations: 4.828 kB / 377.3 MB, free: 25.59 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001484/0.001497, allocations: 1.646 MB / 378.9 MB, free: 23.94 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005307/0.002028, allocations: 0.4908 MB / 379.4 MB, free: 23.44 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.564e-05/0.002093, allocations: 0 / 379.4 MB, free: 23.44 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 9.836e-05/0.002192, allocations: 15.8 kB / 379.4 MB, free: 23.43 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 3.498e-05/0.002227, allocations: 15.86 kB / 379.4 MB, free: 23.41 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001261/0.002353, allocations: 35.84 kB / 379.5 MB, free: 23.38 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 8.683e-05/0.002439, allocations: 79.75 kB / 379.5 MB, free: 23.3 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.913e-05/0.002519, allocations: 20.22 kB / 379.6 MB, free: 23.28 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.908e-05/0.002568, allocations: 47.83 kB / 379.6 MB, free: 23.23 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.609e-05/0.002614, allocations: 27.91 kB / 379.6 MB, free: 23.2 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.401e-05/0.002628, allocations: 4 kB / 379.6 MB, free: 23.2 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.027e-06/0.002637, allocations: 8 kB / 379.6 MB, free: 23.19 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.904e-05/0.002656, allocations: 15.92 kB / 379.7 MB, free: 23.18 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 2.263e-05/0.002678, allocations: 27.92 kB / 379.7 MB, free: 23.15 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 8.129e-05/0.00276, allocations: 47.81 kB / 379.7 MB, free: 23.1 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.583e-06/0.002761, allocations: 0 / 379.7 MB, free: 23.1 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.6e-07/0.002762, allocations: 0 / 379.7 MB, free: 23.1 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.336e-06/0.002765, allocations: 0 / 379.7 MB, free: 23.1 MB / 314.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.0002988/0.003064, allocations: 435.9 kB / 380.2 MB, free: 22.64 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.632e-05/0.00309, allocations: 15.98 kB / 380.2 MB, free: 22.62 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.752e-05/0.003118, allocations: 16.89 kB / 380.2 MB, free: 22.61 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.705e-05/0.003215, allocations: 144.4 kB / 380.3 MB, free: 22.44 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.003227, allocations: 384 / 380.3 MB, free: 22.44 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.428e-05/0.003241, allocations: 12.38 kB / 380.3 MB, free: 22.43 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.744e-05/0.003309, allocations: 70.94 kB / 380.4 MB, free: 22.35 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.582e-06/0.003315, allocations: 192 / 380.4 MB, free: 22.35 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.623e-06/0.003322, allocations: 384 / 380.4 MB, free: 22.35 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.003327, allocations: 11.88 kB / 380.4 MB, free: 22.34 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.636e-05/0.003354, allocations: 23.92 kB / 380.4 MB, free: 22.31 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002426/0.003596, allocations: 304.1 kB / 380.7 MB, free: 21.99 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.114e-05/0.003647, allocations: 42.98 kB / 380.8 MB, free: 21.93 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.275e-05/0.00366, allocations: 19.72 kB / 380.8 MB, free: 21.91 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.432e-06/0.003667, allocations: 8.031 kB / 380.8 MB, free: 21.9 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.818e-05/0.003725, allocations: 69.02 kB / 380.9 MB, free: 21.82 MB / 314.7 MB Notification: Performance of pre-optimization done (n=7): time 8.82e-07/0.003726, allocations: 0 / 380.9 MB, free: 21.82 MB / 314.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001096/0.003835, allocations: 73.58 kB / 381 MB, free: 21.74 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.217e-05/0.003857, allocations: 51.41 kB / 381 MB, free: 21.68 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.235e-05/0.0039, allocations: 189.7 kB / 381.2 MB, free: 21.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.412e-06/0.003906, allocations: 25.7 kB / 381.2 MB, free: 21.45 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.736e-05/0.003934, allocations: 155 kB / 381.4 MB, free: 21.29 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.538e-05/0.003949, allocations: 19.97 kB / 381.4 MB, free: 21.27 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.6e-05/0.003975, allocations: 31.36 kB / 381.4 MB, free: 21.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.388e-05/0.004009, allocations: 0.4922 MB / 381.9 MB, free: 20.73 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.04e-05/0.004019, allocations: 7.984 kB / 381.9 MB, free: 20.72 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.985e-05/0.004039, allocations: 39.03 kB / 382 MB, free: 20.67 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.032e-05/0.004069, allocations: 51 kB / 382 MB, free: 20.61 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.004071, allocations: 4 kB / 382 MB, free: 20.61 MB / 314.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 5.587e-05/0.004127, allocations: 77.86 kB / 382.1 MB, free: 20.52 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.216e-06/0.004135, allocations: 4 kB / 382.1 MB, free: 20.52 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/0.004138, allocations: 4 kB / 382.1 MB, free: 20.52 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.955e-06/0.004146, allocations: 0 / 382.1 MB, free: 20.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.031e-05/0.004187, allocations: 15.92 kB / 382.1 MB, free: 20.5 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.404e-06/0.004189, allocations: 0 / 382.1 MB, free: 20.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.667e-05/0.004216, allocations: 8 kB / 382.1 MB, free: 20.49 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.488e-06/0.00422, allocations: 4 kB / 382.1 MB, free: 20.49 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,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 3.909e-05/0.004259, allocations: 168.6 kB / 382.3 MB, free: 20.31 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.415e-06/0.004268, allocations: 7.953 kB / 382.3 MB, free: 20.3 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.657e-05/0.004284, allocations: 8.438 kB / 382.3 MB, free: 20.3 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.004286, allocations: 7.922 kB / 382.3 MB, free: 20.29 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.004288, allocations: 4 kB / 382.3 MB, free: 20.29 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.004291, allocations: 0 / 382.3 MB, free: 20.29 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001313/0.004422, allocations: 305.9 kB / 382.6 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.01e-07/0.004423, allocations: 0 / 382.6 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.249e-05/0.004445, allocations: 4 kB / 382.6 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.62e-07/0.004446, allocations: 0 / 382.6 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.773e-06/0.004453, allocations: 8 kB / 382.6 MB, free: 19.94 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.004454, allocations: 7.984 kB / 382.6 MB, free: 19.93 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.004455, allocations: 0 / 382.6 MB, free: 19.93 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.54e-05/0.00454, allocations: 223.8 kB / 382.8 MB, free: 19.7 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.332e-06/0.004546, allocations: 7.922 kB / 382.9 MB, free: 19.69 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.043e-05/0.004557, allocations: 8 kB / 382.9 MB, free: 19.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.605e-05/0.004593, allocations: 0 / 382.9 MB, free: 19.68 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.538e-05/0.004618, allocations: 7.984 kB / 382.9 MB, free: 19.67 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.347e-06/0.004622, allocations: 0 / 382.9 MB, free: 19.67 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.782e-05/0.00464, allocations: 131.2 kB / 383 MB, free: 19.54 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.00464, allocations: 0 / 383 MB, free: 19.54 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001492/0.004789, allocations: 27.92 kB / 383 MB, free: 19.52 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,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 4.711e-05/0.004836, allocations: 99.23 kB / 383.1 MB, free: 19.41 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 6.557e-05/0.004901, allocations: 43.59 kB / 383.2 MB, free: 19.36 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.32e-07/0.004902, allocations: 0 / 383.2 MB, free: 19.36 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 2.377e-05/0.004926, allocations: 23.62 kB / 383.2 MB, free: 19.34 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001804/0.005107, allocations: 21.88 kB / 383.2 MB, free: 19.32 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002163/0.005323, allocations: 204 kB / 383.4 MB, free: 19.09 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.863e-05/0.005342, allocations: 59.34 kB / 383.5 MB, free: 19.01 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 2.139e-05/0.005363, allocations: 12.11 kB / 383.5 MB, free: 19 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.919e-05/0.005402, allocations: 78.2 kB / 383.6 MB, free: 18.92 MB / 314.7 MB Notification: Performance of SimCode: time 4.2e-07/0.005403, allocations: 0 / 383.6 MB, free: 18.92 MB / 314.7 MB Notification: Performance of Templates: time 0.002087/0.00749, allocations: 1.02 MB / 384.6 MB, free: 17.92 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 -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: 3.1444982369430363]