Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.001861/0.001861, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.001922/0.001922, allocations: 153.1 kB / 24.27 MB, free: 168 kB / 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 1.577/1.577, allocations: 173.3 MB / 200.8 MB, free: 9.328 MB / 186.7 MB " [Timeout remaining time 178] 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.IntegerSignals.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.IntegerSignals.Hold") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.Hold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 267.3 MB, free: 6.754 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.441e-05/2.581e-05, allocations: 2.312 kB / 267.3 MB, free: 6.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.003959/0.003985, allocations: 1.905 MB / 269.2 MB, free: 4.828 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002278/0.006264, allocations: 1.122 MB / 270.3 MB, free: 3.699 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.006379, allocations: 11.88 kB / 270.3 MB, free: 3.688 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003441/0.006723, allocations: 63.61 kB / 270.4 MB, free: 3.625 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003127/0.007036, allocations: 99.52 kB / 270.5 MB, free: 3.527 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007687/0.007805, allocations: 263 kB / 270.8 MB, free: 3.27 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002993/0.008104, allocations: 183.4 kB / 270.9 MB, free: 3.09 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.008212, allocations: 25.78 kB / 271 MB, free: 3.062 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001801/0.008392, allocations: 103.7 kB / 271.1 MB, free: 2.961 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001328/0.008525, allocations: 63.84 kB / 271.1 MB, free: 2.898 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.23e-05/0.008557, allocations: 12 kB / 271.1 MB, free: 2.887 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001896/0.008747, allocations: 75.77 kB / 271.2 MB, free: 2.812 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.008847, allocations: 55.83 kB / 271.3 MB, free: 2.758 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.853e-05/0.008926, allocations: 39.8 kB / 271.3 MB, free: 2.719 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004021/0.009328, allocations: 243.2 kB / 271.6 MB, free: 2.48 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.009331, allocations: 0 / 271.6 MB, free: 2.48 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.009333, allocations: 3.938 kB / 271.6 MB, free: 2.477 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.009337, allocations: 0 / 271.6 MB, free: 2.477 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.0008845/0.01022, allocations: 0.5825 MB / 272.1 MB, free: 1.852 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/0.01026, allocations: 12.03 kB / 272.1 MB, free: 1.84 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.614e-05/0.01035, allocations: 32.8 kB / 272.2 MB, free: 1.809 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004209/0.01077, allocations: 235.5 kB / 272.4 MB, free: 1.551 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.01079, allocations: 8.375 kB / 272.4 MB, free: 1.543 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.928e-05/0.0108, allocations: 8.375 kB / 272.4 MB, free: 1.535 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000647/0.01145, allocations: 209 kB / 272.6 MB, free: 1.293 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.01146, allocations: 3.938 kB / 272.6 MB, free: 1.289 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.01148, allocations: 4 kB / 272.6 MB, free: 1.285 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.01148, allocations: 0 / 272.6 MB, free: 1.285 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001298/0.01161, allocations: 43.91 kB / 272.7 MB, free: 1.242 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007215/0.01234, allocations: 0.5097 MB / 273.2 MB, free: 0.6836 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003355/0.01267, allocations: 176.4 kB / 273.4 MB, free: 472 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.01279, allocations: 66.67 kB / 273.4 MB, free: 388 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.43e-05/0.01282, allocations: 0 / 273.4 MB, free: 388 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002021/0.01302, allocations: 104.4 kB / 273.5 MB, free: 260 kB / 250.7 MB Notification: Performance of pre-optimization done (n=11): time 1.072e-06/0.01302, allocations: 0 / 273.5 MB, free: 260 kB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.0004537/0.01347, allocations: 169.7 kB / 273.7 MB, free: 84 kB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001623/0.01364, allocations: 162.2 kB / 273.9 MB, free: 15.89 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004412/0.01408, allocations: 372.2 kB / 274.2 MB, free: 15.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.011e-05/0.01411, allocations: 29.7 kB / 274.2 MB, free: 15.47 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001665/0.01427, allocations: 191.2 kB / 274.4 MB, free: 15.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.514e-05/0.01431, allocations: 23.84 kB / 274.5 MB, free: 15.25 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.061e-05/0.01438, allocations: 35.38 kB / 274.5 MB, free: 15.21 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003138/0.01469, allocations: 0.5157 MB / 275 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.825e-05/0.01476, allocations: 19.98 kB / 275 MB, free: 14.66 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001409/0.0149, allocations: 121.8 kB / 275.1 MB, free: 14.51 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001553/0.01506, allocations: 75 kB / 275.2 MB, free: 14.42 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-06/0.01506, allocations: 0 / 275.2 MB, free: 14.42 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002431/0.0153, allocations: 113.5 kB / 275.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.01532, allocations: 8 kB / 275.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.01533, allocations: 0 / 275.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.01534, allocations: 0 / 275.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.01545, allocations: 20.23 kB / 275.4 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/0.01545, allocations: 0 / 275.4 MB, free: 14.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.747e-05/0.01553, allocations: 8 kB / 275.4 MB, free: 14.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.124e-05/0.01554, allocations: 8.062 kB / 275.4 MB, free: 14.26 MB / 266.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 0.000162/0.0157, allocations: 176.5 kB / 275.5 MB, free: 14.08 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001262/0.01583, allocations: 81.48 kB / 275.6 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002782/0.01611, allocations: 107.4 kB / 275.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.01611, allocations: 4 kB / 275.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.01612, allocations: 0 / 275.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.01612, allocations: 0 / 275.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002921/0.01641, allocations: 228.5 kB / 276 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.01642, allocations: 0 / 276 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.648e-05/0.0165, allocations: 23.98 kB / 276 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.75e-06/0.01651, allocations: 4 kB / 276 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.01652, allocations: 0 / 276 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.573e-06/0.01653, allocations: 4 kB / 276 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.01653, allocations: 0 / 276 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003554/0.01688, allocations: 211.1 kB / 276.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.01699, allocations: 39.83 kB / 276.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.383e-05/0.01702, allocations: 4 kB / 276.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.032e-05/0.01709, allocations: 8 kB / 276.2 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.4e-05/0.01714, allocations: 7.984 kB / 276.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-05/0.01716, allocations: 8 kB / 276.3 MB, free: 13.28 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002687/0.01743, allocations: 241.1 kB / 276.5 MB, free: 13.04 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.01743, allocations: 4 kB / 276.5 MB, free: 13.04 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002782/0.01771, allocations: 31.94 kB / 276.5 MB, free: 13.01 MB / 266.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.002945/0.02066, allocations: 454.6 kB / 277 MB, free: 12.74 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002486/0.02091, allocations: 75.58 kB / 277 MB, free: 12.66 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.02091, allocations: 4 kB / 277.1 MB, free: 12.66 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001068/0.02101, allocations: 47.72 kB / 277.1 MB, free: 12.61 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000455/0.02147, allocations: 76.58 kB / 277.2 MB, free: 12.54 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006778/0.02215, allocations: 368.3 kB / 277.5 MB, free: 12.14 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001651/0.02231, allocations: 131.9 kB / 277.7 MB, free: 11.99 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.499e-05/0.02239, allocations: 21.86 kB / 277.7 MB, free: 11.97 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.468e-05/0.02245, allocations: 24.48 kB / 277.7 MB, free: 11.95 MB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.02245, allocations: 4 kB / 277.7 MB, free: 11.94 MB / 266.7 MB Notification: Performance of Templates: time 0.008031/0.03048, allocations: 3.059 MB / 280.8 MB, free: 8.93 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Hold/Hold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold.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.594451233977452]