Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.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.001922/0.001922, 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.001951/0.001951, 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.588/1.588, allocations: 173.3 MB / 200.8 MB, free: 9.32 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.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5034,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5034,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.398e-05/2.545e-05, allocations: 2.312 kB / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.00378/0.003806, allocations: 1.96 MB / 269.3 MB, free: 4.766 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002287/0.006093, allocations: 1.172 MB / 270.4 MB, free: 3.586 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001033/0.006197, allocations: 7.938 kB / 270.5 MB, free: 3.578 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002952/0.006492, allocations: 63.59 kB / 270.5 MB, free: 3.516 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002953/0.006787, allocations: 107.5 kB / 270.6 MB, free: 3.41 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007989/0.007586, allocations: 302.9 kB / 270.9 MB, free: 3.113 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003294/0.007915, allocations: 219.3 kB / 271.1 MB, free: 2.898 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001228/0.008038, allocations: 33.84 kB / 271.2 MB, free: 2.863 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002005/0.008239, allocations: 119.7 kB / 271.3 MB, free: 2.746 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001776/0.008416, allocations: 99.75 kB / 271.4 MB, free: 2.648 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.691e-05/0.008453, allocations: 12 kB / 271.4 MB, free: 2.637 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001912/0.008644, allocations: 75.81 kB / 271.5 MB, free: 2.562 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.00875, allocations: 75.69 kB / 271.5 MB, free: 2.488 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.145e-05/0.008842, allocations: 51.84 kB / 271.6 MB, free: 2.438 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004578/0.0093, allocations: 295 kB / 271.9 MB, free: 2.148 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.009303, allocations: 0 / 271.9 MB, free: 2.148 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.009304, allocations: 0 / 271.9 MB, free: 2.148 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.009309, allocations: 0 / 271.9 MB, free: 2.148 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009745/0.01028, allocations: 0.633 MB / 272.5 MB, free: 1.473 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.01032, allocations: 12.03 kB / 272.5 MB, free: 1.461 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.667e-05/0.01041, allocations: 40.75 kB / 272.6 MB, free: 1.422 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004302/0.01084, allocations: 240.6 kB / 272.8 MB, free: 1.164 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.838e-05/0.01087, allocations: 16.38 kB / 272.8 MB, free: 1.148 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.632e-05/0.0109, allocations: 8.375 kB / 272.8 MB, free: 1.141 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006487/0.01155, allocations: 344.9 kB / 273.2 MB, free: 0.7695 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.01156, allocations: 3.938 kB / 273.2 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.141e-05/0.01158, allocations: 11.98 kB / 273.2 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.01159, allocations: 0 / 273.2 MB, free: 0.7539 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000174/0.01176, allocations: 63.84 kB / 273.2 MB, free: 0.6914 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000654/0.01241, allocations: 419 kB / 273.6 MB, free: 244 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003954/0.01281, allocations: 201.3 kB / 273.8 MB, free: 4 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001891/0.013, allocations: 91.08 kB / 273.9 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.065e-05/0.01303, allocations: 4 kB / 273.9 MB, free: 15.89 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001769/0.01321, allocations: 77 kB / 274 MB, free: 15.8 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.453e-06/0.01321, allocations: 0 / 274 MB, free: 15.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0005836/0.01379, allocations: 229.6 kB / 274.2 MB, free: 15.57 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001351/0.01393, allocations: 160.4 kB / 274.4 MB, free: 15.39 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000453/0.01438, allocations: 382.3 kB / 274.8 MB, free: 14.99 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.308e-05/0.01441, allocations: 33.7 kB / 274.8 MB, free: 14.95 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001634/0.01458, allocations: 191.3 kB / 275 MB, free: 14.76 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.953e-05/0.01462, allocations: 31.78 kB / 275 MB, free: 14.73 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.313e-05/0.0147, allocations: 51.36 kB / 275.1 MB, free: 14.67 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0005241/0.01522, allocations: 0.5235 MB / 275.6 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.374e-05/0.01531, allocations: 27.98 kB / 275.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001837/0.01549, allocations: 156.9 kB / 275.8 MB, free: 13.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001971/0.01569, allocations: 118.3 kB / 275.9 MB, free: 13.77 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.01569, allocations: 0 / 275.9 MB, free: 13.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002913/0.01598, allocations: 157.3 kB / 276 MB, free: 13.61 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.016, allocations: 4 kB / 276 MB, free: 13.61 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.016, allocations: 4 kB / 276 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.01602, allocations: 0 / 276 MB, free: 13.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.809e-05/0.01612, allocations: 15.98 kB / 276.1 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/0.01612, allocations: 8.156 kB / 276.1 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.26e-05/0.01621, allocations: 11.95 kB / 276.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.334e-05/0.01623, allocations: 4 kB / 276.1 MB, free: 13.56 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$CLKPRE.upSample2.b_super,upSample2.b_super,$CLKPRE.upSample1.b_super,upSample1.b_super,$CLKPRE.upSample2.b,upSample2.b,$CLKPRE.upSample1.b,upSample1.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.0001764/0.01641, allocations: 188.4 kB / 276.3 MB, free: 13.37 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002339/0.01664, allocations: 129.5 kB / 276.4 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003126/0.01695, allocations: 131.7 kB / 276.5 MB, free: 13.1 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.01696, allocations: 4 kB / 276.5 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.01696, allocations: 0 / 276.5 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.01697, allocations: 0 / 276.5 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002925/0.01726, allocations: 232.3 kB / 276.8 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.01726, allocations: 4 kB / 276.8 MB, free: 12.83 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001362/0.0174, allocations: 27.98 kB / 276.8 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.55e-06/0.0174, allocations: 4 kB / 276.8 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.948e-05/0.01742, allocations: 7.984 kB / 276.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.342e-06/0.01743, allocations: 4 kB / 276.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.01743, allocations: 3.938 kB / 276.8 MB, free: 12.79 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004631/0.01789, allocations: 259.4 kB / 277.1 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001197/0.01801, allocations: 51.72 kB / 277.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.55e-05/0.01806, allocations: 8 kB / 277.1 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.412e-05/0.01815, allocations: 8 kB / 277.1 MB, free: 12.43 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.375e-05/0.01821, allocations: 11.98 kB / 277.1 MB, free: 12.42 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.668e-05/0.01823, allocations: 11.98 kB / 277.1 MB, free: 12.41 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002681/0.0185, allocations: 247 kB / 277.4 MB, free: 12.17 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0185, allocations: 4 kB / 277.4 MB, free: 12.16 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002838/0.01878, allocations: 43.94 kB / 277.4 MB, free: 12.12 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * 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.002985/0.02177, allocations: 472.7 kB / 277.9 MB, free: 11.84 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003233/0.02209, allocations: 115.6 kB / 278 MB, free: 11.72 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.0221, allocations: 4 kB / 278 MB, free: 11.72 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 9.32e-05/0.02219, allocations: 35.67 kB / 278.1 MB, free: 11.68 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005849/0.02278, allocations: 124.2 kB / 278.2 MB, free: 11.56 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000857/0.02363, allocations: 438.9 kB / 278.6 MB, free: 11.09 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001899/0.02382, allocations: 157.4 kB / 278.8 MB, free: 10.92 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.633e-05/0.02391, allocations: 26.31 kB / 278.8 MB, free: 10.89 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.473e-05/0.02398, allocations: 24.5 kB / 278.8 MB, free: 10.87 MB / 266.7 MB Notification: Performance of SimCode: time 5.71e-07/0.02398, allocations: 0 / 278.8 MB, free: 10.87 MB / 266.7 MB Notification: Performance of Templates: time 0.009177/0.03316, allocations: 3.609 MB / 282.4 MB, free: 7.309 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.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.503575367038138]