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.001325/0.001325, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.001215/0.001215, allocations: 141.9 kB / 24.97 MB, free: 8.359 MB / 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.025/1.025, allocations: 173.4 MB / 201.5 MB, free: 9.34 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.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.743e-06/1.743e-06, allocations: 0 / 268.1 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.355e-05/2.53e-05, allocations: 6.25 kB / 268.1 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.002613/0.002638, allocations: 1.994 MB / 270.1 MB, free: 4.727 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001457/0.004095, allocations: 1.164 MB / 271.2 MB, free: 3.555 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001474/0.004243, allocations: 7.938 kB / 271.2 MB, free: 3.547 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003114/0.004554, allocations: 71.64 kB / 271.3 MB, free: 3.477 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002616/0.004816, allocations: 99.47 kB / 271.4 MB, free: 3.379 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006317/0.005447, allocations: 302.8 kB / 271.7 MB, free: 3.082 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002503/0.005698, allocations: 227.3 kB / 271.9 MB, free: 2.859 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.005814, allocations: 29.81 kB / 272 MB, free: 2.828 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001425/0.005956, allocations: 127.7 kB / 272.1 MB, free: 2.703 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001275/0.006084, allocations: 91.77 kB / 272.2 MB, free: 2.613 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.56e-05/0.006109, allocations: 12 kB / 272.2 MB, free: 2.602 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001383/0.006248, allocations: 75.81 kB / 272.3 MB, free: 2.527 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.913e-05/0.006317, allocations: 71.75 kB / 272.3 MB, free: 2.457 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.272e-05/0.006379, allocations: 55.78 kB / 272.4 MB, free: 2.402 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002731/0.006653, allocations: 219.2 kB / 272.6 MB, free: 2.188 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.006655, allocations: 0 / 272.6 MB, free: 2.188 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.41e-07/0.006656, allocations: 4 kB / 272.6 MB, free: 2.184 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.006661, allocations: 3.938 kB / 272.6 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006341/0.007295, allocations: 0.61 MB / 273.2 MB, free: 1.527 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.007328, allocations: 8.031 kB / 273.2 MB, free: 1.52 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.152e-05/0.007399, allocations: 40.75 kB / 273.3 MB, free: 1.48 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002805/0.00768, allocations: 256.5 kB / 273.5 MB, free: 1.207 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.276e-05/0.007703, allocations: 8.375 kB / 273.5 MB, free: 1.199 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.196e-05/0.007725, allocations: 20.38 kB / 273.5 MB, free: 1.18 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004118/0.008136, allocations: 310.4 kB / 273.8 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.008147, allocations: 7.938 kB / 273.8 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.54e-05/0.008163, allocations: 8 kB / 273.9 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.008171, allocations: 0 / 273.9 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.544e-05/0.008256, allocations: 47.83 kB / 273.9 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000654/0.00891, allocations: 387 kB / 274.3 MB, free: 360 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002058/0.009116, allocations: 165.4 kB / 274.4 MB, free: 156 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.695e-05/0.009193, allocations: 74.97 kB / 274.5 MB, free: 68 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.009212, allocations: 8 kB / 274.5 MB, free: 60 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001119/0.009324, allocations: 73.03 kB / 274.6 MB, free: 15.97 MB / 266.7 MB Notification: Performance of pre-optimization done (n=22): time 1.263e-06/0.009325, allocations: 0 / 274.6 MB, free: 15.97 MB / 266.7 MB Notification: Performance of matching and sorting (n=22): time 0.000312/0.009637, allocations: 201.8 kB / 274.8 MB, free: 15.77 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.324e-05/0.00971, allocations: 152.4 kB / 274.9 MB, free: 15.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002134/0.009924, allocations: 330.3 kB / 275.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.727e-05/0.009941, allocations: 33.7 kB / 275.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.884e-05/0.01002, allocations: 187.3 kB / 275.5 MB, free: 15.02 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.367e-05/0.01004, allocations: 23.8 kB / 275.5 MB, free: 15 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.362e-05/0.01009, allocations: 47.3 kB / 275.5 MB, free: 14.94 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.0102, allocations: 0.5157 MB / 276.1 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.461e-05/0.01024, allocations: 15.98 kB / 276.1 MB, free: 14.4 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.54e-05/0.01031, allocations: 140.9 kB / 276.2 MB, free: 14.21 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.387e-05/0.0104, allocations: 101.9 kB / 276.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.0104, allocations: 0 / 276.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001424/0.01054, allocations: 133.4 kB / 276.4 MB, free: 13.95 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.279e-05/0.01055, allocations: 8 kB / 276.5 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.01056, allocations: 0 / 276.5 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.01057, allocations: 7.984 kB / 276.5 MB, free: 13.94 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.812e-05/0.01065, allocations: 12 kB / 276.5 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.01065, allocations: 0 / 276.5 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.603e-05/0.0107, allocations: 15.88 kB / 276.5 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-06/0.01071, allocations: 8 kB / 276.5 MB, free: 13.9 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 8.754e-05/0.0108, allocations: 184.5 kB / 276.7 MB, free: 13.71 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001184/0.01091, allocations: 125.5 kB / 276.8 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001394/0.01105, allocations: 119.7 kB / 276.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.467e-06/0.01106, allocations: 4 kB / 276.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.01106, allocations: 0 / 276.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.01106, allocations: 0 / 276.9 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001366/0.0112, allocations: 196.5 kB / 277.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.0112, allocations: 0 / 277.1 MB, free: 13.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.751e-05/0.01128, allocations: 31.98 kB / 277.1 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.01128, allocations: 0 / 277.1 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.0113, allocations: 16.11 kB / 277.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.0113, allocations: 3.938 kB / 277.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.0113, allocations: 0 / 277.2 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002049/0.0115, allocations: 242.4 kB / 277.4 MB, free: 12.91 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.355e-05/0.01157, allocations: 51.72 kB / 277.4 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.668e-05/0.01159, allocations: 4 kB / 277.5 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.423e-05/0.01164, allocations: 8 kB / 277.5 MB, free: 12.85 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.423e-05/0.01168, allocations: 11.98 kB / 277.5 MB, free: 12.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.793e-05/0.0117, allocations: 11.98 kB / 277.5 MB, free: 12.82 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001251/0.01183, allocations: 227 kB / 277.7 MB, free: 12.6 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01183, allocations: 4 kB / 277.7 MB, free: 12.6 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001933/0.01202, allocations: 43.94 kB / 277.8 MB, free: 12.55 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.0008262/0.01285, allocations: 415.1 kB / 278.2 MB, free: 12.29 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001732/0.01302, allocations: 95.44 kB / 278.3 MB, free: 12.19 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.01302, allocations: 0 / 278.3 MB, free: 12.19 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.044e-05/0.01306, allocations: 31.67 kB / 278.3 MB, free: 12.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003139/0.01337, allocations: 120 kB / 278.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00046/0.01383, allocations: 411.2 kB / 278.8 MB, free: 11.6 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.596e-05/0.01389, allocations: 108.3 kB / 278.9 MB, free: 11.47 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.145e-05/0.01394, allocations: 22.33 kB / 278.9 MB, free: 11.45 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.702e-05/0.01399, allocations: 32.48 kB / 279 MB, free: 11.42 MB / 266.7 MB Notification: Performance of SimCode: time 4.2e-07/0.01399, allocations: 0 / 279 MB, free: 11.42 MB / 266.7 MB Notification: Performance of Templates: time 0.005673/0.01966, allocations: 3.626 MB / 282.6 MB, free: 7.848 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","",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.964888930087909]