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.001746/0.001746, allocations: 107.6 kB / 21.19 MB, free: 0.6484 MB / 14.72 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.002126/0.002126, allocations: 215.5 kB / 24.48 MB, free: 3.957 MB / 14.72 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 1.475/1.475, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001525/0.001525, allocations: 47.92 kB / 379 MB, free: 2.477 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.2429, allocations: 53.37 MB / 432.3 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003776/0.2467, allocations: 1.938 MB / 434.3 MB, free: 4.773 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002339/0.249, allocations: 1.288 MB / 435.6 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001554/0.2492, allocations: 7.938 kB / 435.6 MB, free: 3.473 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003163/0.2495, allocations: 71.59 kB / 435.6 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003871/0.2499, allocations: 143.4 kB / 435.8 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008285/0.2507, allocations: 274.2 kB / 436 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000309/0.251, allocations: 223.4 kB / 436.3 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001307/0.2511, allocations: 36.23 kB / 436.3 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001427/0.2513, allocations: 103.6 kB / 436.4 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001867/0.2515, allocations: 115.5 kB / 436.5 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.853e-05/0.2515, allocations: 19.94 kB / 436.5 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001753/0.2517, allocations: 75.95 kB / 436.6 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.705e-05/0.2518, allocations: 71.69 kB / 436.7 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001026/0.2519, allocations: 75.47 kB / 436.7 MB, free: 2.289 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004216/0.2523, allocations: 301.8 kB / 437 MB, free: 1.996 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2523, allocations: 0 / 437 MB, free: 1.996 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2523, allocations: 7.875 kB / 437.1 MB, free: 1.988 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.2523, allocations: 0 / 437.1 MB, free: 1.988 MB / 334.1 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.0008971/0.2532, allocations: 0.5139 MB / 437.6 MB, free: 1.438 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.616e-05/0.2532, allocations: 8.031 kB / 437.6 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.804e-05/0.2533, allocations: 36.75 kB / 437.6 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000444/0.2538, allocations: 258.5 kB / 437.9 MB, free: 1.121 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.608e-05/0.2538, allocations: 12.38 kB / 437.9 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3e-05/0.2538, allocations: 16.12 kB / 437.9 MB, free: 1.094 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006437/0.2545, allocations: 341.8 kB / 438.2 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.2545, allocations: 0 / 438.2 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.035e-05/0.2545, allocations: 4 kB / 438.2 MB, free: 0.7266 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.2545, allocations: 4 kB / 438.2 MB, free: 0.7227 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002124/0.2547, allocations: 71.89 kB / 438.3 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005484/0.2553, allocations: 349.9 kB / 438.6 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003819/0.2556, allocations: 184 kB / 438.8 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001835/0.2558, allocations: 82.83 kB / 438.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.72e-05/0.2558, allocations: 7.938 kB / 438.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001798/0.256, allocations: 79.33 kB / 439 MB, free: 15.88 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.743e-06/0.256, allocations: 0 / 439 MB, free: 15.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005943/0.2566, allocations: 261.3 kB / 439.2 MB, free: 15.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.2567, allocations: 140.5 kB / 439.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003932/0.2571, allocations: 364.5 kB / 439.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.799e-05/0.2572, allocations: 29.7 kB / 439.8 MB, free: 15.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.2573, allocations: 128.6 kB / 439.9 MB, free: 14.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.34e-05/0.2573, allocations: 43.7 kB / 439.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.466e-05/0.2574, allocations: 61.81 kB / 440 MB, free: 14.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.2575, allocations: 342.8 kB / 440.3 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.95e-05/0.2576, allocations: 40.45 kB / 440.4 MB, free: 14.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002646/0.2579, allocations: 237.4 kB / 440.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002927/0.2582, allocations: 215.5 kB / 440.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.2582, allocations: 4 kB / 440.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004191/0.2586, allocations: 245.4 kB / 441.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.2586, allocations: 4 kB / 441.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/0.2587, allocations: 7.984 kB / 441.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.422e-05/0.2587, allocations: 8 kB / 441.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001628/0.2588, allocations: 35.92 kB / 441.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.288e-05/0.2589, allocations: 8 kB / 441.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001209/0.259, allocations: 8 kB / 441.1 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.226e-05/0.259, allocations: 23.92 kB / 441.1 MB, free: 13.52 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,sum.y,sum.u[2],sum.u[1],upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * 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 (28): * Single equations (assignments): 28 * 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.0001898/0.2592, allocations: 179.8 kB / 441.3 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002283/0.2594, allocations: 141.4 kB / 441.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003061/0.2597, allocations: 131.4 kB / 441.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.2597, allocations: 3.984 kB / 441.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.007e-06/0.2597, allocations: 7.984 kB / 441.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.2597, allocations: 0 / 441.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002157/0.26, allocations: 193.1 kB / 441.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.26, allocations: 0 / 441.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001421/0.2601, allocations: 31.92 kB / 441.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.2601, allocations: 4 kB / 441.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.487e-05/0.2601, allocations: 11.98 kB / 441.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.2601, allocations: 0 / 441.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/0.2601, allocations: 4 kB / 441.8 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004233/0.2606, allocations: 262 kB / 442.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001189/0.2607, allocations: 47.78 kB / 442.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.597e-05/0.2607, allocations: 8 kB / 442.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.567e-05/0.2608, allocations: 7.984 kB / 442.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.071e-05/0.2609, allocations: 11.98 kB / 442.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.549e-05/0.2609, allocations: 8.062 kB / 442.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002738/0.2612, allocations: 259 kB / 442.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2612, allocations: 4.094 kB / 442.4 MB, free: 12.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003547/0.2615, allocations: 55.81 kB / 442.5 MB, free: 12.1 MB / 350.1 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.001654/0.2632, allocations: 463 kB / 442.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004001/0.2636, allocations: 160.5 kB / 443.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.2636, allocations: 0 / 443.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.58e-05/0.2637, allocations: 31.97 kB / 443.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005964/0.2643, allocations: 135.2 kB / 443.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009739/0.2652, allocations: 0.4956 MB / 443.8 MB, free: 10.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002115/0.2655, allocations: 161.5 kB / 443.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.061e-05/0.2655, allocations: 27.44 kB / 443.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of SimCode: time 1.382e-06/0.2655, allocations: 0 / 443.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of Templates: time 0.006612/0.2722, allocations: 3.746 MB / 447.7 MB, free: 7.02 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 7.569165755005088]