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.001641/0.001641, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.001833/0.001833, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 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 1.618/1.618, allocations: 177.1 MB / 204.6 MB, free: 5.586 MB / 186.7 MB " [Timeout remaining time 178] 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.3538/0.3538, allocations: 32.8 MB / 293.9 MB, free: 1.219 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.292e-06/1.292e-06, allocations: 0 / 375.2 MB, free: 4.992 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.703e-05/2.832e-05, allocations: 6.312 kB / 375.3 MB, free: 4.984 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003169/0.003197, allocations: 1.615 MB / 376.9 MB, free: 3.355 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.004311, allocations: 494.7 kB / 377.3 MB, free: 2.867 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.892e-05/0.0044, allocations: 4 kB / 377.4 MB, free: 2.863 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001399/0.00454, allocations: 11.86 kB / 377.4 MB, free: 2.852 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.47e-05/0.004594, allocations: 7.875 kB / 377.4 MB, free: 2.844 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002163/0.004811, allocations: 43.83 kB / 377.4 MB, free: 2.801 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001764/0.004987, allocations: 83.67 kB / 377.5 MB, free: 2.719 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000117/0.005104, allocations: 20.22 kB / 377.5 MB, free: 2.699 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.693e-05/0.005201, allocations: 47.83 kB / 377.6 MB, free: 2.652 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.667e-05/0.005278, allocations: 23.91 kB / 377.6 MB, free: 2.629 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.654e-05/0.005304, allocations: 8 kB / 377.6 MB, free: 2.621 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.363e-05/0.005318, allocations: 4 kB / 377.6 MB, free: 2.617 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.396e-05/0.005352, allocations: 19.91 kB / 377.6 MB, free: 2.598 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.305e-05/0.005405, allocations: 19.94 kB / 377.6 MB, free: 2.578 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001698/0.005575, allocations: 75.75 kB / 377.7 MB, free: 2.504 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.005581, allocations: 4 kB / 377.7 MB, free: 2.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.005582, allocations: 0 / 377.7 MB, free: 2.5 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.005586, allocations: 0 / 377.7 MB, free: 2.5 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.00076/0.006346, allocations: 330.8 kB / 378 MB, free: 2.145 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.006383, allocations: 8.031 kB / 378 MB, free: 2.137 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.773e-05/0.006451, allocations: 16.89 kB / 378.1 MB, free: 2.121 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002823/0.006733, allocations: 137.6 kB / 378.2 MB, free: 1.961 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.256e-05/0.006756, allocations: 12.38 kB / 378.2 MB, free: 1.949 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.163e-05/0.006788, allocations: 8.375 kB / 378.2 MB, free: 1.941 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001829/0.006971, allocations: 70.23 kB / 378.3 MB, free: 1.867 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.00698, allocations: 192 / 378.3 MB, free: 1.867 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.066e-05/0.007001, allocations: 8.375 kB / 378.3 MB, free: 1.859 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-06/0.007011, allocations: 7.938 kB / 378.3 MB, free: 1.852 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.194e-05/0.007103, allocations: 39.91 kB / 378.3 MB, free: 1.812 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005901/0.007693, allocations: 280.2 kB / 378.6 MB, free: 1.508 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001329/0.007826, allocations: 42.61 kB / 378.7 MB, free: 1.457 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.159e-05/0.007867, allocations: 16.89 kB / 378.7 MB, free: 1.438 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.327e-05/0.00788, allocations: 0 / 378.7 MB, free: 1.438 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001414/0.008022, allocations: 67.39 kB / 378.7 MB, free: 1.359 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.008023, allocations: 0 / 378.7 MB, free: 1.359 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002562/0.008279, allocations: 93.58 kB / 378.8 MB, free: 1.262 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.703e-05/0.008336, allocations: 55.39 kB / 378.9 MB, free: 1.195 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.008466, allocations: 121.8 kB / 379 MB, free: 1.066 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.818e-05/0.008494, allocations: 33.7 kB / 379 MB, free: 1.027 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.464e-05/0.008579, allocations: 104.3 kB / 379.1 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.422e-05/0.008603, allocations: 11.91 kB / 379.1 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.461e-05/0.008657, allocations: 29.7 kB / 379.2 MB, free: 0.875 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001965/0.008854, allocations: 322.8 kB / 379.5 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.511e-05/0.008899, allocations: 16 kB / 379.5 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.31e-05/0.008962, allocations: 38.5 kB / 379.5 MB, free: 500 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.021e-05/0.009052, allocations: 50.58 kB / 379.6 MB, free: 440 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.009054, allocations: 3.938 kB / 379.6 MB, free: 436 kB / 346.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001624/0.009217, allocations: 89.89 kB / 379.7 MB, free: 340 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.009233, allocations: 4 kB / 379.7 MB, free: 336 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.009238, allocations: 0 / 379.7 MB, free: 336 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/0.009259, allocations: 4 kB / 379.7 MB, free: 332 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-05/0.00933, allocations: 11.92 kB / 379.7 MB, free: 320 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.121e-05/0.009341, allocations: 8.062 kB / 379.7 MB, free: 312 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.732e-05/0.009409, allocations: 12.06 kB / 379.7 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.207e-06/0.009418, allocations: 3.938 kB / 379.7 MB, free: 296 kB / 346.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 0.0001109/0.009529, allocations: 121.8 kB / 379.8 MB, free: 164 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.241e-05/0.009551, allocations: 11.95 kB / 379.9 MB, free: 152 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.575e-05/0.009597, allocations: 8.438 kB / 379.9 MB, free: 140 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.009601, allocations: 4 kB / 379.9 MB, free: 136 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.009604, allocations: 0 / 379.9 MB, free: 136 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.009608, allocations: 0 / 379.9 MB, free: 136 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000381/0.009989, allocations: 290 kB / 380.2 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.848e-06/0.009992, allocations: 3.984 kB / 380.2 MB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.859e-05/0.01004, allocations: 12 kB / 380.2 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.01004, allocations: 0 / 380.2 MB, free: 15.8 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.34e-05/0.01006, allocations: 3.984 kB / 380.2 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.01006, allocations: 4 kB / 380.2 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.675e-06/0.01007, allocations: 7.938 kB / 380.2 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002559/0.01032, allocations: 191.4 kB / 380.4 MB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.323e-05/0.01034, allocations: 3.984 kB / 380.4 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.888e-05/0.01036, allocations: 4.031 kB / 380.4 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.815e-05/0.01044, allocations: 0 / 380.4 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.826e-05/0.01051, allocations: 15.92 kB / 380.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.046e-05/0.01052, allocations: 7.984 kB / 380.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.78e-05/0.01059, allocations: 91.78 kB / 380.5 MB, free: 15.46 MB / 362.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01059, allocations: 0 / 380.5 MB, free: 15.46 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002457/0.01084, allocations: 23.89 kB / 380.5 MB, free: 15.43 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 0.0001109/0.01095, allocations: 95.56 kB / 380.6 MB, free: 15.33 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001365/0.01108, allocations: 47.92 kB / 380.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.01108, allocations: 0 / 380.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.357e-05/0.01114, allocations: 19.94 kB / 380.7 MB, free: 15.27 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003186/0.01146, allocations: 19.92 kB / 380.7 MB, free: 15.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005053/0.01196, allocations: 204.6 kB / 380.9 MB, free: 15.02 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.31e-05/0.01206, allocations: 87.31 kB / 381 MB, free: 14.91 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.35e-05/0.01209, allocations: 4 kB / 381 MB, free: 14.91 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.79e-05/0.01213, allocations: 12.5 kB / 381 MB, free: 14.9 MB / 362.7 MB Notification: Performance of SimCode: time 3.81e-07/0.01213, allocations: 0 / 381 MB, free: 14.9 MB / 362.7 MB Notification: Performance of Templates: time 0.003978/0.0161, allocations: 0.933 MB / 381.9 MB, free: 13.98 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=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.791866004932672]