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.00128/0.00128, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.000976/0.000976, allocations: 145.1 kB / 24.54 MB, free: 36 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.047/1.047, allocations: 173.4 MB / 201.1 MB, free: 9.336 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 1.453e-06/1.453e-06, allocations: 0 / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.348e-05/2.494e-05, allocations: 6.25 kB / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Hold): time 0.006172/0.006197, allocations: 1.94 MB / 269.9 MB, free: 4.484 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0048/0.011, allocations: 1.137 MB / 271.1 MB, free: 3.34 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.01114, allocations: 3.938 kB / 271.1 MB, free: 3.336 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003658/0.0115, allocations: 67.66 kB / 271.1 MB, free: 3.27 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003217/0.01182, allocations: 95.47 kB / 271.2 MB, free: 3.176 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007127/0.01254, allocations: 271 kB / 271.5 MB, free: 2.91 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000248/0.01278, allocations: 179.5 kB / 271.7 MB, free: 2.734 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.01289, allocations: 25.8 kB / 271.7 MB, free: 2.707 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001412/0.01303, allocations: 103.7 kB / 271.8 MB, free: 2.605 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001128/0.01315, allocations: 71.8 kB / 271.9 MB, free: 2.535 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.351e-05/0.01317, allocations: 8 kB / 271.9 MB, free: 2.527 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003235/0.0164, allocations: 67.88 kB / 271.9 MB, free: 2.461 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.494e-05/0.0165, allocations: 63.77 kB / 272 MB, free: 2.398 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.266e-05/0.01657, allocations: 43.84 kB / 272 MB, free: 2.355 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003463/0.01692, allocations: 183.3 kB / 272.2 MB, free: 2.176 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.01692, allocations: 0 / 272.2 MB, free: 2.176 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.01692, allocations: 0 / 272.2 MB, free: 2.176 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.01693, allocations: 0 / 272.2 MB, free: 2.176 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.0007072/0.01764, allocations: 0.5711 MB / 272.8 MB, free: 1.562 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.01767, allocations: 8.031 kB / 272.8 MB, free: 1.555 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.575e-05/0.01775, allocations: 32.8 kB / 272.8 MB, free: 1.523 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003017/0.01805, allocations: 219.6 kB / 273.1 MB, free: 1.281 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.523e-05/0.01808, allocations: 8.375 kB / 273.1 MB, free: 1.273 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.703e-05/0.01809, allocations: 8.312 kB / 273.1 MB, free: 1.266 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003447/0.01844, allocations: 176.8 kB / 273.2 MB, free: 1.059 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.01845, allocations: 3.938 kB / 273.2 MB, free: 1.055 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.32e-05/0.01846, allocations: 4 kB / 273.3 MB, free: 1.051 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.01847, allocations: 0 / 273.3 MB, free: 1.051 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.76e-05/0.01855, allocations: 31.92 kB / 273.3 MB, free: 1.02 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005136/0.01906, allocations: 494 kB / 273.8 MB, free: 500 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/0.02015, allocations: 152.3 kB / 273.9 MB, free: 296 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.261e-05/0.02024, allocations: 54.73 kB / 274 MB, free: 224 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.687e-05/0.02027, allocations: 8 kB / 274 MB, free: 216 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001617/0.02043, allocations: 92.36 kB / 274.1 MB, free: 100 kB / 250.7 MB Notification: Performance of pre-optimization done (n=11): time 1.793e-06/0.02043, allocations: 0 / 274.1 MB, free: 100 kB / 250.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003696/0.0208, allocations: 145.3 kB / 274.2 MB, free: 15.95 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.637e-05/0.02088, allocations: 136.5 kB / 274.3 MB, free: 15.79 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003151/0.02119, allocations: 324.2 kB / 274.7 MB, free: 15.45 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.02121, allocations: 29.7 kB / 274.7 MB, free: 15.41 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.312e-05/0.0213, allocations: 175.1 kB / 274.9 MB, free: 15.23 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.468e-05/0.02132, allocations: 20.23 kB / 274.9 MB, free: 15.21 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.895e-05/0.02136, allocations: 35.36 kB / 274.9 MB, free: 15.17 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000144/0.0215, allocations: 0.5079 MB / 275.4 MB, free: 14.65 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.119e-05/0.02153, allocations: 12 kB / 275.4 MB, free: 14.64 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.65e-05/0.02159, allocations: 76.38 kB / 275.5 MB, free: 14.54 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.029e-05/0.02166, allocations: 59.23 kB / 275.6 MB, free: 14.47 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.02166, allocations: 0 / 275.6 MB, free: 14.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001268/0.02179, allocations: 97.48 kB / 275.7 MB, free: 14.37 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/0.0218, allocations: 8.094 kB / 275.7 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.02181, allocations: 3.938 kB / 275.7 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.02182, allocations: 4 kB / 275.7 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.614e-05/0.02191, allocations: 15.98 kB / 275.7 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.071e-06/0.02192, allocations: 0 / 275.7 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.273e-05/0.02196, allocations: 7.938 kB / 275.7 MB, free: 14.33 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.765e-06/0.02197, allocations: 4 kB / 275.7 MB, free: 14.33 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.0001075/0.02207, allocations: 176.4 kB / 275.9 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.099e-05/0.02214, allocations: 73.48 kB / 275.9 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001592/0.02229, allocations: 99.5 kB / 276 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.0223, allocations: 7.938 kB / 276 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.0223, allocations: 0 / 276 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.02231, allocations: 0 / 276 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001626/0.02247, allocations: 196.5 kB / 276.2 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.02247, allocations: 4 kB / 276.2 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.004e-05/0.02252, allocations: 15.98 kB / 276.3 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.67e-06/0.02253, allocations: 0 / 276.3 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.434e-05/0.02254, allocations: 8 kB / 276.3 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.02255, allocations: 0 / 276.3 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.02255, allocations: 4 kB / 276.3 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001733/0.02272, allocations: 191.2 kB / 276.5 MB, free: 13.47 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.167e-05/0.02278, allocations: 39.77 kB / 276.5 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.602e-05/0.0228, allocations: 11.98 kB / 276.5 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.33e-05/0.02283, allocations: 64 / 276.5 MB, free: 13.42 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.334e-05/0.0229, allocations: 15.98 kB / 276.5 MB, free: 13.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.93e-05/0.02292, allocations: 8 kB / 276.5 MB, free: 13.4 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001399/0.02306, allocations: 221.1 kB / 276.7 MB, free: 13.18 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02306, allocations: 0 / 276.7 MB, free: 13.18 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000182/0.02324, allocations: 31.94 kB / 276.8 MB, free: 13.15 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.0008899/0.02413, allocations: 413.3 kB / 277.2 MB, free: 12.89 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000142/0.02427, allocations: 63.59 kB / 277.2 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.02427, allocations: 0 / 277.2 MB, free: 12.82 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.323e-05/0.02432, allocations: 31.67 kB / 277.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002886/0.02461, allocations: 72.48 kB / 277.3 MB, free: 12.72 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004762/0.02508, allocations: 344.3 kB / 277.7 MB, free: 12.34 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.752e-05/0.02514, allocations: 83.97 kB / 277.8 MB, free: 12.24 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.365e-05/0.02519, allocations: 25.84 kB / 277.8 MB, free: 12.21 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.533e-05/0.02524, allocations: 24.5 kB / 277.8 MB, free: 12.19 MB / 266.7 MB Notification: Performance of SimCode: time 7.11e-07/0.02524, allocations: 0 / 277.8 MB, free: 12.19 MB / 266.7 MB Notification: Performance of Templates: time 0.005269/0.03051, allocations: 3.214 MB / 281 MB, free: 9.02 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.006922382861376]