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.000985/0.000985, allocations: 76.08 kB / 21.18 MB, free: 3.387 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.0008588/0.0008588, allocations: 141.1 kB / 24.54 MB, free: 32 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 0.9483/0.9483, allocations: 173.4 MB / 201.1 MB, free: 9.344 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.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 2.375e-06/2.375e-06, allocations: 0 / 268 MB, free: 6.457 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.87e-05/4.108e-05, allocations: 10.19 kB / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.004351/0.004392, allocations: 1.934 MB / 269.9 MB, free: 4.496 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002346/0.006739, allocations: 1.129 MB / 271.1 MB, free: 3.359 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001958/0.006934, allocations: 7.938 kB / 271.1 MB, free: 3.352 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004674/0.007402, allocations: 71.59 kB / 271.1 MB, free: 3.281 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003947/0.007797, allocations: 99.47 kB / 271.2 MB, free: 3.184 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006765/0.008473, allocations: 263 kB / 271.5 MB, free: 2.926 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002575/0.008731, allocations: 183.4 kB / 271.7 MB, free: 2.746 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001178/0.008848, allocations: 25.8 kB / 271.7 MB, free: 2.719 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001298/0.008978, allocations: 95.78 kB / 271.8 MB, free: 2.625 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001081/0.009086, allocations: 79.72 kB / 271.9 MB, free: 2.547 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.354e-05/0.00911, allocations: 8 kB / 271.9 MB, free: 2.539 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001507/0.009261, allocations: 71.88 kB / 271.9 MB, free: 2.469 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.679e-05/0.009337, allocations: 51.78 kB / 272 MB, free: 2.418 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.257e-05/0.0094, allocations: 43.84 kB / 272 MB, free: 2.375 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003061/0.009706, allocations: 199.2 kB / 272.2 MB, free: 2.18 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.009711, allocations: 0 / 272.2 MB, free: 2.18 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.009713, allocations: 0 / 272.2 MB, free: 2.18 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.972e-06/0.009719, allocations: 0 / 272.2 MB, free: 2.18 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.0006676/0.01039, allocations: 0.5634 MB / 272.8 MB, free: 1.574 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.01042, allocations: 8.031 kB / 272.8 MB, free: 1.566 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.105e-05/0.0105, allocations: 36.73 kB / 272.8 MB, free: 1.531 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002873/0.01078, allocations: 219.5 kB / 273 MB, free: 1.289 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.155e-05/0.0108, allocations: 8.375 kB / 273.1 MB, free: 1.281 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.736e-05/0.01082, allocations: 8.375 kB / 273.1 MB, free: 1.273 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003064/0.01113, allocations: 210.2 kB / 273.3 MB, free: 1.023 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.01114, allocations: 7.938 kB / 273.3 MB, free: 1.016 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.01115, allocations: 4 kB / 273.3 MB, free: 1.012 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.01116, allocations: 0 / 273.3 MB, free: 1.012 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.774e-05/0.01122, allocations: 27.91 kB / 273.3 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004823/0.0117, allocations: 497.9 kB / 273.8 MB, free: 460 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001744/0.01187, allocations: 152.3 kB / 273.9 MB, free: 256 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.59e-05/0.01193, allocations: 58.73 kB / 274 MB, free: 180 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.587e-05/0.01196, allocations: 4 kB / 274 MB, free: 176 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001323/0.01209, allocations: 96.34 kB / 274.1 MB, free: 56 kB / 250.7 MB Notification: Performance of pre-optimization done (n=11): time 1.102e-06/0.01209, allocations: 0 / 274.1 MB, free: 56 kB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002882/0.01238, allocations: 141.4 kB / 274.2 MB, free: 15.91 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.376e-05/0.01245, allocations: 170.6 kB / 274.4 MB, free: 15.71 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002129/0.01266, allocations: 316.3 kB / 274.7 MB, free: 15.38 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.01268, allocations: 29.7 kB / 274.7 MB, free: 15.34 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.91e-05/0.01276, allocations: 175.1 kB / 274.9 MB, free: 15.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.342e-05/0.01278, allocations: 19.86 kB / 274.9 MB, free: 15.14 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.207e-05/0.01283, allocations: 39.36 kB / 275 MB, free: 15.1 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.01295, allocations: 0.5079 MB / 275.5 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.713e-05/0.01297, allocations: 4 kB / 275.5 MB, free: 14.57 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.053e-05/0.01303, allocations: 113.8 kB / 275.6 MB, free: 14.43 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.718e-05/0.0131, allocations: 67.27 kB / 275.7 MB, free: 14.35 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.0131, allocations: 0 / 275.7 MB, free: 14.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000113/0.01322, allocations: 93.48 kB / 275.8 MB, free: 14.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.01323, allocations: 7.938 kB / 275.8 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.01323, allocations: 0 / 275.8 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.01325, allocations: 4 kB / 275.8 MB, free: 14.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.487e-05/0.01334, allocations: 19.92 kB / 275.8 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.01334, allocations: 0 / 275.8 MB, free: 14.22 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.491e-05/0.01339, allocations: 11.94 kB / 275.8 MB, free: 14.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/0.01339, allocations: 4.062 kB / 275.8 MB, free: 14.21 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 8.526e-05/0.01348, allocations: 172.5 kB / 276 MB, free: 14.03 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.48e-05/0.01354, allocations: 69.5 kB / 276 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001433/0.01369, allocations: 99.42 kB / 276.1 MB, free: 13.85 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.01369, allocations: 4 kB / 276.1 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.01369, allocations: 0 / 276.1 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.0137, allocations: 3.984 kB / 276.1 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001516/0.01385, allocations: 200.4 kB / 276.3 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.01385, allocations: 4 kB / 276.3 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.853e-05/0.0139, allocations: 20.05 kB / 276.4 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.01391, allocations: 3.984 kB / 276.4 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-06/0.01391, allocations: 4 kB / 276.4 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.01392, allocations: 0 / 276.4 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.01392, allocations: 4 kB / 276.4 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001569/0.01407, allocations: 191.1 kB / 276.6 MB, free: 13.35 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.28e-05/0.01413, allocations: 35.84 kB / 276.6 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.422e-05/0.01415, allocations: 7.984 kB / 276.6 MB, free: 13.31 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.591e-05/0.01421, allocations: 12.06 kB / 276.6 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.868e-05/0.01425, allocations: 7.984 kB / 276.6 MB, free: 13.29 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.505e-05/0.01427, allocations: 8 kB / 276.6 MB, free: 13.28 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001333/0.0144, allocations: 221.1 kB / 276.8 MB, free: 13.07 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0144, allocations: 0 / 276.8 MB, free: 13.07 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001912/0.01459, allocations: 35.94 kB / 276.9 MB, free: 13.03 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.0009064/0.0155, allocations: 418.6 kB / 277.3 MB, free: 12.76 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001644/0.01567, allocations: 59.59 kB / 277.3 MB, free: 12.7 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.01567, allocations: 0 / 277.3 MB, free: 12.7 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.77e-05/0.01571, allocations: 27.67 kB / 277.4 MB, free: 12.67 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003058/0.01602, allocations: 72.3 kB / 277.4 MB, free: 12.6 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005066/0.01653, allocations: 352.7 kB / 277.8 MB, free: 12.21 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.882e-05/0.01659, allocations: 87.97 kB / 277.9 MB, free: 12.11 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.166e-05/0.01665, allocations: 17.48 kB / 277.9 MB, free: 12.09 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.645e-05/0.01669, allocations: 28.48 kB / 277.9 MB, free: 12.07 MB / 266.7 MB Notification: Performance of SimCode: time 8.41e-07/0.0167, allocations: 0 / 277.9 MB, free: 12.07 MB / 266.7 MB Notification: Performance of Templates: time 0.005432/0.02213, allocations: 3.075 MB / 281 MB, free: 9.039 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","",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.0849666269496083]