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.001521/0.001521, allocations: 82.27 kB / 20.68 MB, free: 1.039 MB / 14.72 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.001647/0.001647, allocations: 163.1 kB / 23.95 MB, free: 4.168 MB / 14.72 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.387/1.387, allocations: 177.1 MB / 204.3 MB, free: 9.168 MB / 190.1 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.1946/0.1946, allocations: 32.81 MB / 293.5 MB, free: 20 kB / 270.1 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.443e-06/1.443e-06, allocations: 0 / 440.1 MB, free: 8.16 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.864e-05/2.008e-05, allocations: 6.219 kB / 440.1 MB, free: 8.152 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002631/0.002651, allocations: 1.596 MB / 441.7 MB, free: 6.547 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009506/0.003602, allocations: 498.6 kB / 442.2 MB, free: 6.055 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.786e-05/0.00369, allocations: 4 kB / 442.2 MB, free: 6.051 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001092/0.003799, allocations: 11.86 kB / 442.2 MB, free: 6.039 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.946e-05/0.003849, allocations: 11.88 kB / 442.2 MB, free: 6.027 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001832/0.004032, allocations: 43.81 kB / 442.2 MB, free: 5.984 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001434/0.004175, allocations: 83.7 kB / 442.3 MB, free: 5.902 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001043/0.004279, allocations: 24.22 kB / 442.3 MB, free: 5.879 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.178e-05/0.004361, allocations: 35.91 kB / 442.4 MB, free: 5.844 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.225e-05/0.004424, allocations: 27.89 kB / 442.4 MB, free: 5.816 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.087e-05/0.004454, allocations: 8 kB / 442.4 MB, free: 5.809 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.448e-05/0.004469, allocations: 4 kB / 442.4 MB, free: 5.805 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.673e-05/0.004496, allocations: 19.92 kB / 442.4 MB, free: 5.785 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.068e-05/0.004536, allocations: 23.91 kB / 442.5 MB, free: 5.762 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001429/0.004679, allocations: 75.72 kB / 442.5 MB, free: 5.688 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.693e-06/0.004681, allocations: 0 / 442.5 MB, free: 5.688 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.91e-07/0.004681, allocations: 0 / 442.5 MB, free: 5.688 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.696e-06/0.00469, allocations: 0 / 442.5 MB, free: 5.688 MB / 366.1 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.0005634/0.005254, allocations: 330.8 kB / 442.9 MB, free: 5.332 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.072e-05/0.005284, allocations: 8.031 kB / 442.9 MB, free: 5.324 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.389e-05/0.005328, allocations: 16.89 kB / 442.9 MB, free: 5.309 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002099/0.005538, allocations: 133.6 kB / 443 MB, free: 5.152 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.00555, allocations: 4.375 kB / 443 MB, free: 5.148 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.706e-05/0.005577, allocations: 12.38 kB / 443 MB, free: 5.137 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001523/0.005729, allocations: 73.75 kB / 443.1 MB, free: 5.062 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.005738, allocations: 192 / 443.1 MB, free: 5.062 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.005751, allocations: 4.375 kB / 443.1 MB, free: 5.059 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.005757, allocations: 11.94 kB / 443.1 MB, free: 5.047 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.418e-05/0.005841, allocations: 39.97 kB / 443.2 MB, free: 5.008 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004996/0.00634, allocations: 272.2 kB / 443.4 MB, free: 4.711 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001182/0.006459, allocations: 50.55 kB / 443.5 MB, free: 4.652 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.278e-05/0.006491, allocations: 16.89 kB / 443.5 MB, free: 4.633 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.294e-06/0.006499, allocations: 0 / 443.5 MB, free: 4.633 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001314/0.00663, allocations: 75.36 kB / 443.6 MB, free: 4.547 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.006631, allocations: 0 / 443.6 MB, free: 4.547 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002163/0.006848, allocations: 85.58 kB / 443.6 MB, free: 4.457 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.94e-05/0.006887, allocations: 55.39 kB / 443.7 MB, free: 4.391 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.006993, allocations: 125.7 kB / 443.8 MB, free: 4.258 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.007023, allocations: 33.7 kB / 443.8 MB, free: 4.219 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.656e-05/0.007089, allocations: 104.3 kB / 444 MB, free: 4.113 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.495e-05/0.007114, allocations: 19.97 kB / 444 MB, free: 4.094 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.894e-05/0.007163, allocations: 29.7 kB / 444 MB, free: 4.059 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.007308, allocations: 326.7 kB / 444.3 MB, free: 3.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.881e-05/0.007347, allocations: 12 kB / 444.3 MB, free: 3.719 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.273e-05/0.0074, allocations: 38.56 kB / 444.4 MB, free: 3.672 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.484e-05/0.007485, allocations: 54.52 kB / 444.4 MB, free: 3.609 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.007486, allocations: 0 / 444.4 MB, free: 3.609 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001425/0.007629, allocations: 81.58 kB / 444.5 MB, free: 3.523 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/0.007641, allocations: 8 kB / 444.5 MB, free: 3.516 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.696e-06/0.007644, allocations: 0 / 444.5 MB, free: 3.516 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.007656, allocations: 0 / 444.5 MB, free: 3.516 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.598e-05/0.007722, allocations: 15.98 kB / 444.5 MB, free: 3.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.937e-06/0.007726, allocations: 0 / 444.5 MB, free: 3.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.401e-05/0.00779, allocations: 8.016 kB / 444.5 MB, free: 3.492 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.328e-06/0.007799, allocations: 11.94 kB / 444.5 MB, free: 3.48 MB / 366.1 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 9.665e-05/0.007896, allocations: 126.4 kB / 444.7 MB, free: 3.348 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.408e-05/0.00791, allocations: 4 kB / 444.7 MB, free: 3.344 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.294e-05/0.007943, allocations: 12.44 kB / 444.7 MB, free: 3.332 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.007945, allocations: 0 / 444.7 MB, free: 3.332 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/0.007947, allocations: 0 / 444.7 MB, free: 3.332 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.00795, allocations: 0 / 444.7 MB, free: 3.332 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003285/0.008279, allocations: 290.1 kB / 445 MB, free: 3.012 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.00828, allocations: 0 / 445 MB, free: 3.012 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.722e-05/0.008327, allocations: 4 kB / 445 MB, free: 3.008 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.008329, allocations: 4 kB / 445 MB, free: 3.004 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/0.008346, allocations: 11.98 kB / 445 MB, free: 2.992 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.008347, allocations: 0 / 445 MB, free: 2.992 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.00835, allocations: 3.938 kB / 445 MB, free: 2.988 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002383/0.008588, allocations: 184 kB / 445.2 MB, free: 2.793 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.296e-05/0.008601, allocations: 3.953 kB / 445.2 MB, free: 2.789 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.384e-05/0.008625, allocations: 11.94 kB / 445.2 MB, free: 2.777 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.529e-05/0.008711, allocations: 4 kB / 445.2 MB, free: 2.773 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.164e-05/0.008752, allocations: 11.92 kB / 445.2 MB, free: 2.762 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.149e-05/0.008764, allocations: 15.92 kB / 445.2 MB, free: 2.746 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.994e-05/0.008824, allocations: 91.34 kB / 445.3 MB, free: 2.656 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.008824, allocations: 0 / 445.3 MB, free: 2.656 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002274/0.009051, allocations: 15.94 kB / 445.3 MB, free: 2.641 MB / 366.1 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 0.000102/0.009153, allocations: 99.23 kB / 445.4 MB, free: 2.535 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001301/0.009283, allocations: 52.16 kB / 445.5 MB, free: 2.484 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.009285, allocations: 0 / 445.5 MB, free: 2.484 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.681e-05/0.009331, allocations: 19.94 kB / 445.5 MB, free: 2.465 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.009619, allocations: 15.98 kB / 445.5 MB, free: 2.449 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004773/0.0101, allocations: 205.2 kB / 445.7 MB, free: 2.219 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.073e-05/0.01017, allocations: 75.33 kB / 445.8 MB, free: 2.125 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.776e-05/0.01021, allocations: 7.984 kB / 445.8 MB, free: 2.117 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.322e-05/0.01024, allocations: 12.5 kB / 445.8 MB, free: 2.105 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.01024, allocations: 0 / 445.8 MB, free: 2.105 MB / 366.1 MB Notification: Performance of Templates: time 0.003554/0.01379, allocations: 0.9204 MB / 446.7 MB, free: 1.203 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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.3937927931547165]