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.0007927/0.0007927, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001382/0.002174, 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.0009011/0.0009011, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00106/0.001961, 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.05/1.05, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1074/1.157, allocations: 53.65 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.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.319/0.319, allocations: 32.8 MB / 276.8 MB, free: 15.87 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.03309/0.3521, allocations: 12.53 MB / 289.3 MB, free: 8.672 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.933e-06/1.933e-06, allocations: 0 / 290.6 MB, free: 7.652 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.797e-05/3.991e-05, allocations: 4.312 kB / 290.6 MB, free: 7.648 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.004124/0.004164, allocations: 1.708 MB / 292.3 MB, free: 6.27 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001177/0.005341, allocations: 0.5103 MB / 292.8 MB, free: 5.875 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000118/0.005459, allocations: 1.312 kB / 292.8 MB, free: 5.875 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.898e-05/0.005558, allocations: 11.81 kB / 292.8 MB, free: 5.863 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 6.803e-05/0.005626, allocations: 17.11 kB / 292.8 MB, free: 5.848 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002091/0.005835, allocations: 36.02 kB / 292.9 MB, free: 5.82 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001884/0.006024, allocations: 80.25 kB / 293 MB, free: 5.773 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000143/0.006167, allocations: 19.16 kB / 293 MB, free: 5.762 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001561/0.006323, allocations: 55.83 kB / 293 MB, free: 5.727 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.006423, allocations: 22 kB / 293.1 MB, free: 5.711 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.783e-05/0.006461, allocations: 5.812 kB / 293.1 MB, free: 5.711 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.905e-05/0.00648, allocations: 5.656 kB / 293.1 MB, free: 5.711 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 3.381e-05/0.006514, allocations: 14.28 kB / 293.1 MB, free: 5.707 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.363e-05/0.006567, allocations: 17.94 kB / 293.1 MB, free: 5.703 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002167/0.006784, allocations: 53.95 kB / 293.1 MB, free: 5.672 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-05/0.006818, allocations: 3.938 kB / 293.2 MB, free: 5.668 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.474e-06/0.00682, allocations: 4 kB / 293.2 MB, free: 5.664 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.335e-05/0.006844, allocations: 0 / 293.2 MB, free: 5.664 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.0008153/0.007659, allocations: 309.1 kB / 293.5 MB, free: 5.383 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.536e-05/0.007714, allocations: 9.562 kB / 293.5 MB, free: 5.383 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.222e-05/0.007776, allocations: 8.344 kB / 293.5 MB, free: 5.383 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002537/0.00803, allocations: 133.2 kB / 293.6 MB, free: 5.242 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.153e-05/0.008062, allocations: 1.438 kB / 293.6 MB, free: 5.242 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.457e-05/0.008096, allocations: 12.5 kB / 293.6 MB, free: 5.234 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001649/0.008261, allocations: 74.86 kB / 293.7 MB, free: 5.152 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.008274, allocations: 4.188 kB / 293.7 MB, free: 5.148 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.008287, allocations: 4.375 kB / 293.7 MB, free: 5.145 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.284e-05/0.0083, allocations: 7.938 kB / 293.7 MB, free: 5.137 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.054e-05/0.008361, allocations: 18.23 kB / 293.7 MB, free: 5.121 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005357/0.008896, allocations: 212 kB / 293.9 MB, free: 4.898 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001075/0.009004, allocations: 30.56 kB / 294 MB, free: 4.859 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.454e-05/0.009029, allocations: 20.8 kB / 294 MB, free: 4.836 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.064e-05/0.009039, allocations: 0 / 294 MB, free: 4.836 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001599/0.009199, allocations: 63.36 kB / 294 MB, free: 4.762 MB / 282.7 MB Notification: Performance of pre-optimization done (n=7): time 1.994e-06/0.009201, allocations: 4 kB / 294.1 MB, free: 4.758 MB / 282.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001922/0.009393, allocations: 53.69 kB / 294.1 MB, free: 4.699 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.006e-05/0.009463, allocations: 59.34 kB / 294.2 MB, free: 4.629 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001048/0.009568, allocations: 126.7 kB / 294.3 MB, free: 4.492 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.283e-05/0.009591, allocations: 25.7 kB / 294.3 MB, free: 4.461 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.379e-05/0.009655, allocations: 104.2 kB / 294.4 MB, free: 4.355 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.448e-05/0.009689, allocations: 15.98 kB / 294.4 MB, free: 4.34 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.391e-05/0.009743, allocations: 29.69 kB / 294.5 MB, free: 4.305 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001629/0.009906, allocations: 322.8 kB / 294.8 MB, free: 3.98 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.552e-05/0.009931, allocations: 11.92 kB / 294.8 MB, free: 3.969 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.513e-05/0.009977, allocations: 34.56 kB / 294.8 MB, free: 3.926 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.962e-05/0.01005, allocations: 42.5 kB / 294.9 MB, free: 3.875 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.411e-06/0.01005, allocations: 3.984 kB / 294.9 MB, free: 3.871 MB / 282.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001239/0.01018, allocations: 61.61 kB / 294.9 MB, free: 3.805 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/0.0102, allocations: 8 kB / 294.9 MB, free: 3.797 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.0102, allocations: 0 / 294.9 MB, free: 3.797 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.01022, allocations: 0 / 294.9 MB, free: 3.797 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.924e-05/0.01032, allocations: 11.98 kB / 294.9 MB, free: 3.785 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.01032, allocations: 4.062 kB / 294.9 MB, free: 3.781 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.537e-05/0.01039, allocations: 12 kB / 295 MB, free: 3.77 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.612e-06/0.0104, allocations: 400 / 295 MB, free: 3.77 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 0.0001041/0.0105, allocations: 123.4 kB / 295.1 MB, free: 3.641 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.247e-05/0.01052, allocations: 7.984 kB / 295.1 MB, free: 3.633 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.929e-05/0.01056, allocations: 12.44 kB / 295.1 MB, free: 3.621 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.01057, allocations: 3.984 kB / 295.1 MB, free: 3.617 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.324e-06/0.01057, allocations: 0 / 295.1 MB, free: 3.617 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.399e-06/0.01057, allocations: 0 / 295.1 MB, free: 3.617 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000395/0.01097, allocations: 234.6 kB / 295.3 MB, free: 3.363 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.01097, allocations: 0 / 295.3 MB, free: 3.363 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.739e-05/0.01104, allocations: 8 kB / 295.3 MB, free: 3.355 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.604e-05/0.01105, allocations: 11.94 kB / 295.4 MB, free: 3.344 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.01106, allocations: 0 / 295.4 MB, free: 3.344 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.01107, allocations: 0 / 295.4 MB, free: 3.344 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.01107, allocations: 0 / 295.4 MB, free: 3.344 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.01108, allocations: 0 / 295.4 MB, free: 3.344 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002049/0.01128, allocations: 163.5 kB / 295.5 MB, free: 3.168 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.281e-05/0.0113, allocations: 0 / 295.5 MB, free: 3.168 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.389e-05/0.01139, allocations: 7.984 kB / 295.5 MB, free: 3.16 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.142e-05/0.01144, allocations: 7.922 kB / 295.5 MB, free: 3.152 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.01145, allocations: 12.03 kB / 295.5 MB, free: 3.141 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.241e-05/0.01148, allocations: 21.98 kB / 295.6 MB, free: 3.117 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01148, allocations: 0 / 295.6 MB, free: 3.117 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002156/0.0117, allocations: 15.94 kB / 295.6 MB, free: 3.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 0.0001287/0.01183, allocations: 81.02 kB / 295.7 MB, free: 3.016 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001219/0.01195, allocations: 40.77 kB / 295.7 MB, free: 2.973 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/0.01196, allocations: 0 / 295.7 MB, free: 2.973 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.243e-05/0.012, allocations: 16.86 kB / 295.7 MB, free: 2.953 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002822/0.01228, allocations: 21.52 kB / 295.7 MB, free: 2.934 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000771/0.01305, allocations: 205.1 kB / 295.9 MB, free: 2.707 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.96e-05/0.01311, allocations: 63.34 kB / 296 MB, free: 2.625 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 4.974e-05/0.01316, allocations: 7.984 kB / 296 MB, free: 2.617 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001854/0.01335, allocations: 55.38 kB / 296.1 MB, free: 2.562 MB / 282.7 MB Notification: Performance of SimCode: time 1.383e-06/0.01335, allocations: 0 / 296.1 MB, free: 2.562 MB / 282.7 MB Notification: Performance of Templates: time 0.003899/0.01725, allocations: 0.966 MB / 297 MB, free: 1.617 MB / 282.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 -ignoreHideResult -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: 2.937967806123197]