Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009788/0.0009788, allocations: 80.72 kB / 22.21 MB, free: 2.293 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000985/0.000985, allocations: 140.4 kB / 25.59 MB, free: 8.906 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9462/0.9462, allocations: 173.4 MB / 202.3 MB, free: 8.293 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5013,variableFilter="time|sample1.y|shiftSample1.y|hold1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 269.2 MB, free: 9.855 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.208e-05/2.353e-05, allocations: 2.312 kB / 269.2 MB, free: 9.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold): time 0.006312/0.006335, allocations: 1.924 MB / 271.1 MB, free: 7.93 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004633/0.01097, allocations: 1.038 MB / 272.2 MB, free: 6.887 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001449/0.01111, allocations: 1.469 kB / 272.2 MB, free: 6.887 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006142/0.01173, allocations: 151.4 kB / 272.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003209/0.01205, allocations: 120.1 kB / 272.4 MB, free: 6.621 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005389/0.01259, allocations: 209.7 kB / 272.6 MB, free: 6.418 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002391/0.01283, allocations: 195.3 kB / 272.8 MB, free: 6.227 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.923e-05/0.01293, allocations: 25.8 kB / 272.9 MB, free: 6.199 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001298/0.01306, allocations: 100.7 kB / 273 MB, free: 6.102 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.01316, allocations: 63.8 kB / 273 MB, free: 6.039 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.158e-05/0.01318, allocations: 12 kB / 273 MB, free: 6.027 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001193/0.0133, allocations: 65 kB / 273.1 MB, free: 5.965 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.143e-05/0.01336, allocations: 47.86 kB / 273.1 MB, free: 5.918 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008014/0.01416, allocations: 39.84 kB / 273.2 MB, free: 5.879 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005055/0.01467, allocations: 164.3 kB / 273.3 MB, free: 5.719 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.01467, allocations: 4 kB / 273.3 MB, free: 5.715 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.01467, allocations: 0 / 273.3 MB, free: 5.715 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.01467, allocations: 0.75 kB / 273.3 MB, free: 5.715 MB / 250.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.000543/0.01522, allocations: 0.5408 MB / 273.9 MB, free: 5.133 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.027e-05/0.01525, allocations: 8.031 kB / 273.9 MB, free: 5.125 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.711e-05/0.0153, allocations: 37.23 kB / 273.9 MB, free: 5.09 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002436/0.01555, allocations: 220.4 kB / 274.1 MB, free: 4.848 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.662e-05/0.01557, allocations: 4.375 kB / 274.1 MB, free: 4.844 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.326e-05/0.01558, allocations: 8.375 kB / 274.2 MB, free: 4.836 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002085/0.01579, allocations: 152.2 kB / 274.3 MB, free: 4.656 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.0158, allocations: 7.875 kB / 274.3 MB, free: 4.648 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.336e-06/0.0158, allocations: 0 / 274.3 MB, free: 4.648 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.01581, allocations: 4 kB / 274.3 MB, free: 4.645 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.124e-05/0.01585, allocations: 23.92 kB / 274.3 MB, free: 4.621 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003726/0.01622, allocations: 442.6 kB / 274.8 MB, free: 4.148 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001534/0.01638, allocations: 140.4 kB / 274.9 MB, free: 3.961 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.043e-05/0.01643, allocations: 54.67 kB / 275 MB, free: 3.891 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.54e-05/0.01644, allocations: 4 kB / 275 MB, free: 3.887 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001184/0.01656, allocations: 100.3 kB / 275.1 MB, free: 3.766 MB / 250.7 MB Notification: Performance of pre-optimization done (n=11): time 1.082e-06/0.01656, allocations: 0 / 275.1 MB, free: 3.766 MB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002295/0.01679, allocations: 121.5 kB / 275.2 MB, free: 3.641 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.18e-05/0.01685, allocations: 136.5 kB / 275.3 MB, free: 3.477 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000162/0.01702, allocations: 280.2 kB / 275.6 MB, free: 3.184 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.01703, allocations: 25.7 kB / 275.6 MB, free: 3.152 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.677e-05/0.0171, allocations: 175 kB / 275.8 MB, free: 2.973 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.188e-05/0.01712, allocations: 24.2 kB / 275.8 MB, free: 2.949 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.673e-05/0.01716, allocations: 43.34 kB / 275.9 MB, free: 2.898 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.01727, allocations: 0.4962 MB / 276.3 MB, free: 2.391 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.201e-05/0.01729, allocations: 4 kB / 276.4 MB, free: 2.387 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.165e-05/0.01733, allocations: 72.44 kB / 276.4 MB, free: 2.293 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.717e-05/0.01738, allocations: 58.91 kB / 276.5 MB, free: 2.223 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.01738, allocations: 0 / 276.5 MB, free: 2.223 MB / 250.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 9.504e-05/0.01748, allocations: 89.42 kB / 276.6 MB, free: 2.129 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.043e-05/0.01749, allocations: 4 kB / 276.6 MB, free: 2.125 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.858e-06/0.01749, allocations: 4.094 kB / 276.6 MB, free: 2.121 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.334e-06/0.0175, allocations: 0 / 276.6 MB, free: 2.121 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.03e-05/0.01755, allocations: 19.92 kB / 276.6 MB, free: 2.102 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.245e-06/0.01755, allocations: 0 / 276.6 MB, free: 2.102 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.801e-05/0.01759, allocations: 8.312 kB / 276.6 MB, free: 2.094 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.461e-06/0.0176, allocations: 4 kB / 276.6 MB, free: 2.09 MB / 250.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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,hold1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 7.66e-05/0.01767, allocations: 166.5 kB / 276.8 MB, free: 1.918 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.314e-05/0.01773, allocations: 73.42 kB / 276.8 MB, free: 1.84 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001089/0.01783, allocations: 95.48 kB / 276.9 MB, free: 1.738 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.01784, allocations: 4 kB / 276.9 MB, free: 1.734 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.543e-06/0.01784, allocations: 0 / 276.9 MB, free: 1.734 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.01784, allocations: 4 kB / 276.9 MB, free: 1.73 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001125/0.01795, allocations: 141.2 kB / 277.1 MB, free: 1.566 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.01796, allocations: 0 / 277.1 MB, free: 1.566 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.046e-05/0.01798, allocations: 15.92 kB / 277.1 MB, free: 1.551 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.01798, allocations: 3.938 kB / 277.1 MB, free: 1.547 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.211e-06/0.01799, allocations: 0 / 277.1 MB, free: 1.547 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.01799, allocations: 4 kB / 277.1 MB, free: 1.543 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.01799, allocations: 0 / 277.1 MB, free: 1.543 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001081/0.0181, allocations: 167.3 kB / 277.3 MB, free: 1.344 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.307e-05/0.01814, allocations: 35.81 kB / 277.3 MB, free: 1.309 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.747e-05/0.01816, allocations: 3.938 kB / 277.3 MB, free: 1.305 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.298e-05/0.01819, allocations: 11.98 kB / 277.3 MB, free: 1.293 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.031e-05/0.01822, allocations: 7.984 kB / 277.3 MB, free: 1.285 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/0.01823, allocations: 4 kB / 277.3 MB, free: 1.281 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.429e-05/0.01831, allocations: 193.1 kB / 277.5 MB, free: 1.094 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01831, allocations: 0 / 277.5 MB, free: 1.094 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001665/0.01848, allocations: 27.94 kB / 277.5 MB, free: 1.066 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold1.y,hold1.u,shiftSample1.y,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0007906/0.01927, allocations: 395.6 kB / 277.9 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001023/0.01937, allocations: 47.61 kB / 278 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.01938, allocations: 4.125 kB / 278 MB, free: 0.7617 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.485e-05/0.01941, allocations: 31.61 kB / 278 MB, free: 0.7266 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000248/0.01966, allocations: 71.69 kB / 278.1 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000354/0.02001, allocations: 321.1 kB / 278.4 MB, free: 316 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.343e-05/0.02006, allocations: 83.89 kB / 278.5 MB, free: 212 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.337e-05/0.0201, allocations: 21.88 kB / 278.5 MB, free: 188 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.97e-05/0.02019, allocations: 106.2 kB / 278.6 MB, free: 80 kB / 250.7 MB Notification: Performance of SimCode: time 7.72e-07/0.02019, allocations: 0 / 278.6 MB, free: 80 kB / 250.7 MB Notification: Performance of Templates: time 0.004858/0.02505, allocations: 2.945 MB / 281.5 MB, free: 13.19 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/Hold/Hold.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.0233489088714123]