Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.0008291/0.0008291, allocations: 84.44 kB / 20.69 MB, free: 3.871 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.0008458/0.0008458, allocations: 173.9 kB / 23.96 MB, free: 0.5977 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.7769/0.7769, allocations: 158.6 MB / 185.7 MB, free: 3.039 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1293/0.1293, allocations: 32.38 MB / 270.4 MB, free: 15.04 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 408.1 MB, free: 1.738 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.17e-05/2.342e-05, allocations: 6.078 kB / 408.1 MB, free: 1.734 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001862/0.001885, allocations: 1.6 MB / 409.7 MB, free: 128 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006266/0.002512, allocations: 0.4996 MB / 410.2 MB, free: 15.62 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.258e-05/0.002584, allocations: 0 / 410.2 MB, free: 15.62 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001039/0.002688, allocations: 7.875 kB / 410.2 MB, free: 15.61 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 3.843e-05/0.002727, allocations: 15.86 kB / 410.2 MB, free: 15.59 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001596/0.002886, allocations: 51.77 kB / 410.3 MB, free: 15.54 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001039/0.00299, allocations: 71.78 kB / 410.3 MB, free: 15.47 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.003095, allocations: 28.2 kB / 410.4 MB, free: 15.45 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.325e-05/0.003149, allocations: 43.89 kB / 410.4 MB, free: 15.4 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.338e-05/0.003202, allocations: 19.92 kB / 410.4 MB, free: 15.38 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 2.107e-05/0.003223, allocations: 7.984 kB / 410.4 MB, free: 15.38 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.023e-05/0.003233, allocations: 8 kB / 410.4 MB, free: 15.37 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 2.195e-05/0.003255, allocations: 19.92 kB / 410.5 MB, free: 15.35 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 3.017e-05/0.003286, allocations: 27.86 kB / 410.5 MB, free: 15.32 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001139/0.003399, allocations: 71.77 kB / 410.6 MB, free: 15.25 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.753e-06/0.003401, allocations: 0 / 410.6 MB, free: 15.25 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.003402, allocations: 4 kB / 410.6 MB, free: 15.25 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.003406, allocations: 0 / 410.6 MB, free: 15.25 MB / 394.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.0004388/0.003845, allocations: 326.8 kB / 410.9 MB, free: 14.89 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.003882, allocations: 12.02 kB / 410.9 MB, free: 14.88 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.412e-05/0.003916, allocations: 12.84 kB / 410.9 MB, free: 14.87 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001677/0.004084, allocations: 133.6 kB / 411 MB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.004096, allocations: 8.375 kB / 411 MB, free: 14.71 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.056e-05/0.004117, allocations: 12.25 kB / 411.1 MB, free: 14.7 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001168/0.004233, allocations: 82.22 kB / 411.1 MB, free: 14.61 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.004241, allocations: 192 / 411.1 MB, free: 14.61 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.004251, allocations: 4.375 kB / 411.1 MB, free: 14.61 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.004258, allocations: 7.938 kB / 411.1 MB, free: 14.6 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.646e-05/0.004314, allocations: 27.98 kB / 411.2 MB, free: 14.57 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003652/0.004679, allocations: 280.3 kB / 411.4 MB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.75e-05/0.004767, allocations: 50.5 kB / 411.5 MB, free: 14.21 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.296e-05/0.00479, allocations: 12.89 kB / 411.5 MB, free: 14.19 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.137e-06/0.004799, allocations: 4 kB / 411.5 MB, free: 14.19 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.928e-05/0.004898, allocations: 71.39 kB / 411.6 MB, free: 14.11 MB / 394.7 MB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.004899, allocations: 4 kB / 411.6 MB, free: 14.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001764/0.005076, allocations: 81.66 kB / 411.7 MB, free: 14.02 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/0.005114, allocations: 59.34 kB / 411.7 MB, free: 13.95 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.135e-05/0.005185, allocations: 121.8 kB / 411.8 MB, free: 13.82 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.0052, allocations: 33.69 kB / 411.9 MB, free: 13.78 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.098e-05/0.005241, allocations: 96.33 kB / 412 MB, free: 13.68 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.998e-05/0.005261, allocations: 23.92 kB / 412 MB, free: 13.66 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.056e-05/0.005292, allocations: 21.72 kB / 412 MB, free: 13.63 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.169e-05/0.005374, allocations: 326.8 kB / 412.3 MB, free: 13.3 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.739e-05/0.005401, allocations: 20 kB / 412.4 MB, free: 13.28 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.351e-05/0.005435, allocations: 34.56 kB / 412.4 MB, free: 13.24 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.599e-05/0.00549, allocations: 50.52 kB / 412.4 MB, free: 13.18 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.005492, allocations: 0 / 412.4 MB, free: 13.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 8.738e-05/0.00558, allocations: 93.86 kB / 412.5 MB, free: 13.08 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/0.005592, allocations: 8 kB / 412.5 MB, free: 13.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.005596, allocations: 80 / 412.5 MB, free: 13.07 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.015e-05/0.005606, allocations: 0 / 412.5 MB, free: 13.07 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.969e-05/0.005656, allocations: 12.06 kB / 412.5 MB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.005661, allocations: 3.984 kB / 412.6 MB, free: 13.06 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.514e-05/0.005696, allocations: 7.984 kB / 412.6 MB, free: 13.05 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.213e-06/0.005703, allocations: 15.88 kB / 412.6 MB, free: 13.04 MB / 394.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.078e-05/0.005764, allocations: 117.8 kB / 412.7 MB, free: 12.91 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.316e-06/0.005772, allocations: 11.94 kB / 412.7 MB, free: 12.9 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.257e-05/0.005795, allocations: 12.44 kB / 412.7 MB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.005797, allocations: 0 / 412.7 MB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.0058, allocations: 192 / 412.7 MB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.005803, allocations: 0 / 412.7 MB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002021/0.006005, allocations: 290.1 kB / 413 MB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.006006, allocations: 0 / 413 MB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.157e-05/0.006038, allocations: 7.984 kB / 413 MB, free: 12.56 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.00604, allocations: 0 / 413 MB, free: 12.56 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.186e-06/0.006048, allocations: 4 kB / 413 MB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.006049, allocations: 0 / 413 MB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.006051, allocations: 3.938 kB / 413 MB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001679/0.006219, allocations: 187.5 kB / 413.2 MB, free: 12.35 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.263e-05/0.006232, allocations: 7.984 kB / 413.2 MB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.162e-05/0.006244, allocations: 0 / 413.2 MB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.031e-05/0.006294, allocations: 11.98 kB / 413.2 MB, free: 12.33 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.693e-05/0.006331, allocations: 15.98 kB / 413.2 MB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.791e-06/0.006337, allocations: 8 kB / 413.2 MB, free: 12.31 MB / 394.7 MB Notification: Performance of sorting global known variables: time 4.238e-05/0.006379, allocations: 95.64 kB / 413.3 MB, free: 12.21 MB / 394.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006379, allocations: 0 / 413.3 MB, free: 12.21 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0001427/0.006522, allocations: 19.94 kB / 413.4 MB, free: 12.2 MB / 394.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 6.789e-05/0.00659, allocations: 95.52 kB / 413.4 MB, free: 12.09 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.465e-05/0.006684, allocations: 51.92 kB / 413.5 MB, free: 12.04 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-06/0.006685, allocations: 0 / 413.5 MB, free: 12.04 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.147e-05/0.006717, allocations: 19.98 kB / 413.5 MB, free: 12.02 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001952/0.006912, allocations: 20.11 kB / 413.5 MB, free: 12 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003501/0.007262, allocations: 238.7 kB / 413.8 MB, free: 11.73 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.284e-05/0.007315, allocations: 79.33 kB / 413.8 MB, free: 11.64 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.049e-05/0.007346, allocations: 16.44 kB / 413.9 MB, free: 11.62 MB / 394.7 MB Notification: Performance of SimCode: time 3.71e-07/0.007346, allocations: 0 / 413.9 MB, free: 11.62 MB / 394.7 MB Notification: Performance of Templates: time 0.00171/0.009056, allocations: 1.145 MB / 415 MB, free: 10.48 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.426313895732164]