Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 81.97 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001342/0.001342, allocations: 166.5 kB / 25.61 MB, free: 8.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9497/0.9497, allocations: 177.1 MB / 206 MB, free: 4.469 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.142e-06/1.142e-06, allocations: 0 / 274.2 MB, free: 4.441 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.112e-05/1.226e-05, allocations: 8.281 kB / 274.2 MB, free: 4.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.002168/0.00218, allocations: 1.991 MB / 276.2 MB, free: 2.438 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00136/0.003541, allocations: 1.292 MB / 277.5 MB, free: 1.141 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.003654, allocations: 7.938 kB / 277.5 MB, free: 1.133 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002489/0.003903, allocations: 72.17 kB / 277.6 MB, free: 1.062 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002648/0.004168, allocations: 141 kB / 277.7 MB, free: 0.9258 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004911/0.004659, allocations: 272.8 kB / 278 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002048/0.004864, allocations: 239.2 kB / 278.2 MB, free: 436 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.988e-05/0.004953, allocations: 34.98 kB / 278.2 MB, free: 400 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001205/0.005074, allocations: 127.6 kB / 278.3 MB, free: 272 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.005183, allocations: 99.69 kB / 278.4 MB, free: 172 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.952e-05/0.005202, allocations: 12 kB / 278.5 MB, free: 160 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001113/0.005314, allocations: 71.94 kB / 278.5 MB, free: 88 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.601e-05/0.00537, allocations: 67.75 kB / 278.6 MB, free: 20 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.129e-05/0.005431, allocations: 59.88 kB / 278.7 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002394/0.00567, allocations: 227 kB / 278.9 MB, free: 15.74 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.362e-06/0.005672, allocations: 4 kB / 278.9 MB, free: 15.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.61e-07/0.005672, allocations: 0 / 278.9 MB, free: 15.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.248e-06/0.005676, allocations: 0 / 278.9 MB, free: 15.73 MB / 266.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.000774/0.00645, allocations: 0.6215 MB / 279.5 MB, free: 15.07 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.679e-05/0.006477, allocations: 8.031 kB / 279.5 MB, free: 15.06 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.426e-05/0.006541, allocations: 40.75 kB / 279.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002277/0.006769, allocations: 256.5 kB / 279.8 MB, free: 14.75 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.006789, allocations: 12.36 kB / 279.8 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.503e-05/0.006804, allocations: 12.38 kB / 279.8 MB, free: 14.73 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002695/0.007074, allocations: 263.8 kB / 280.1 MB, free: 14.44 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.007083, allocations: 7.938 kB / 280.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.969e-06/0.007093, allocations: 4 kB / 280.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.007099, allocations: 4 kB / 280.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.094e-05/0.00715, allocations: 35.89 kB / 280.1 MB, free: 14.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003164/0.007466, allocations: 347.5 kB / 280.5 MB, free: 14.02 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001704/0.007637, allocations: 161.5 kB / 280.6 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.3e-05/0.0077, allocations: 71.11 kB / 280.7 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.647e-05/0.007716, allocations: 4 kB / 280.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.998e-05/0.007796, allocations: 72.97 kB / 280.8 MB, free: 13.65 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.202e-06/0.007797, allocations: 0 / 280.8 MB, free: 13.65 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.0002605/0.008058, allocations: 173.4 kB / 280.9 MB, free: 13.47 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.422e-05/0.008122, allocations: 126.8 kB / 281.1 MB, free: 13.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001752/0.008297, allocations: 334.2 kB / 281.4 MB, free: 12.98 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.008312, allocations: 29.7 kB / 281.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.123e-05/0.008384, allocations: 191.3 kB / 281.6 MB, free: 12.75 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.184e-05/0.008405, allocations: 31.77 kB / 281.6 MB, free: 12.72 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.109e-05/0.008446, allocations: 47.33 kB / 281.7 MB, free: 12.67 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.008558, allocations: 0.5118 MB / 282.2 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.104e-05/0.008579, allocations: 15.98 kB / 282.2 MB, free: 12.13 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.654e-05/0.008636, allocations: 114.3 kB / 282.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.656e-05/0.008702, allocations: 90.08 kB / 282.4 MB, free: 11.87 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.008704, allocations: 256 / 282.4 MB, free: 11.87 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001184/0.008822, allocations: 133.3 kB / 282.5 MB, free: 11.73 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.397e-06/0.008832, allocations: 4 kB / 282.5 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.008836, allocations: 4 kB / 282.5 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.885e-06/0.008844, allocations: 0 / 282.5 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.706e-05/0.008901, allocations: 19.92 kB / 282.6 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.276e-06/0.008904, allocations: 4 kB / 282.6 MB, free: 11.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.125e-05/0.008945, allocations: 12.16 kB / 282.6 MB, free: 11.69 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.008953, allocations: 4 kB / 282.6 MB, free: 11.69 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 7.769e-05/0.00903, allocations: 172.5 kB / 282.8 MB, free: 11.51 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.663e-05/0.009127, allocations: 129.6 kB / 282.9 MB, free: 11.38 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001158/0.009243, allocations: 103.5 kB / 283 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.009246, allocations: 4 kB / 283 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.492e-06/0.009247, allocations: 0 / 283 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.009252, allocations: 3.984 kB / 283 MB, free: 11.26 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000113/0.009365, allocations: 161.1 kB / 283.1 MB, free: 11.08 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.009366, allocations: 4 kB / 283.2 MB, free: 11.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.542e-05/0.009441, allocations: 35.92 kB / 283.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.009444, allocations: 3.938 kB / 283.2 MB, free: 11.04 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.009455, allocations: 7.984 kB / 283.2 MB, free: 11.03 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.32e-07/0.009456, allocations: 0 / 283.2 MB, free: 11.03 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.009457, allocations: 4 kB / 283.2 MB, free: 11.02 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001081/0.009566, allocations: 156 kB / 283.4 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.341e-05/0.009619, allocations: 43.78 kB / 283.4 MB, free: 10.8 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.383e-05/0.009643, allocations: 11.94 kB / 283.4 MB, free: 10.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.835e-05/0.009681, allocations: 4 kB / 283.4 MB, free: 10.78 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.743e-05/0.009709, allocations: 11.98 kB / 283.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.403e-05/0.009723, allocations: 12 kB / 283.4 MB, free: 10.76 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.962e-05/0.009822, allocations: 226.9 kB / 283.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009822, allocations: 0 / 283.7 MB, free: 10.54 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001763/0.009999, allocations: 43.88 kB / 283.7 MB, free: 10.49 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.0007259/0.01072, allocations: 422.1 kB / 284.1 MB, free: 10.21 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000124/0.01085, allocations: 79.5 kB / 284.2 MB, free: 10.13 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.01085, allocations: 0 / 284.2 MB, free: 10.13 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 3.236e-05/0.01088, allocations: 27.61 kB / 284.2 MB, free: 10.1 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002665/0.01115, allocations: 112.4 kB / 284.3 MB, free: 9.988 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004001/0.01155, allocations: 419.3 kB / 284.7 MB, free: 9.543 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.292e-05/0.0116, allocations: 104.2 kB / 284.8 MB, free: 9.422 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.478e-05/0.01165, allocations: 22.33 kB / 284.9 MB, free: 9.398 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.84e-05/0.01175, allocations: 118.2 kB / 285 MB, free: 9.281 MB / 266.7 MB Notification: Performance of SimCode: time 4.71e-07/0.01175, allocations: 0 / 285 MB, free: 9.281 MB / 266.7 MB Notification: Performance of Templates: time 0.005245/0.01699, allocations: 3.92 MB / 288.9 MB, free: 5.414 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.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: 2.7820810629054904]