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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009533/0.0009533, allocations: 176.4 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 221.5 MB / 230.3 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008583/0.0008582, allocations: 82.98 kB / 281.2 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.827e-05/1.829e-05, allocations: 3.938 kB / 337.1 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1017, allocations: 50.41 MB / 387.5 MB, free: 7.57 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3361/0.4378, allocations: 80.94 MB / 468.4 MB, free: 13.92 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002459/0.4381, allocations: 83.94 kB / 468.5 MB, free: 13.84 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02377/0.4619, allocations: 9.003 MB / 477.5 MB, free: 4.828 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4619, allocations: 0 / 477.5 MB, free: 4.828 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.646e-05/0.4619, allocations: 8 kB / 477.5 MB, free: 4.82 MB / 346.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.0006996/0.4627, allocations: 0.5273 MB / 478 MB, free: 4.242 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.4627, allocations: 15.97 kB / 478 MB, free: 4.227 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.435e-05/0.4628, allocations: 31.62 kB / 478.1 MB, free: 4.195 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004509/0.4632, allocations: 302.4 kB / 478.4 MB, free: 3.855 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.747e-05/0.4633, allocations: 8 kB / 478.4 MB, free: 3.848 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.7e-05/0.4633, allocations: 15.88 kB / 478.4 MB, free: 3.832 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000172/0.4635, allocations: 75.97 kB / 478.5 MB, free: 3.758 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004622/0.464, allocations: 294 kB / 478.8 MB, free: 3.445 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.016e-05/0.464, allocations: 0 / 478.8 MB, free: 3.445 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.726e-05/0.464, allocations: 0 / 478.8 MB, free: 3.445 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.464, allocations: 4 kB / 478.8 MB, free: 3.441 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004954/0.4645, allocations: 394.8 kB / 479.1 MB, free: 3.012 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002376/0.4648, allocations: 180 kB / 479.3 MB, free: 2.809 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001108/0.4649, allocations: 78.69 kB / 479.4 MB, free: 2.723 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.887e-05/0.4649, allocations: 7.953 kB / 479.4 MB, free: 2.715 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000128/0.4651, allocations: 75.39 kB / 479.5 MB, free: 2.629 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 3.166e-06/0.4651, allocations: 0 / 479.5 MB, free: 2.629 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003386/0.4654, allocations: 185.4 kB / 479.7 MB, free: 2.441 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.487e-05/0.4655, allocations: 170.2 kB / 479.8 MB, free: 2.238 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000309/0.4658, allocations: 298.2 kB / 480.1 MB, free: 1.945 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.322e-05/0.4659, allocations: 25.7 kB / 480.1 MB, free: 1.914 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.673e-05/0.466, allocations: 140.6 kB / 480.3 MB, free: 1.773 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.273e-05/0.466, allocations: 31.64 kB / 480.3 MB, free: 1.742 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.684e-06/0.466, allocations: 0 / 480.3 MB, free: 1.742 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.4661, allocations: 338.8 kB / 480.6 MB, free: 1.402 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.816e-05/0.4662, allocations: 32.47 kB / 480.7 MB, free: 1.367 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001486/0.4664, allocations: 187.2 kB / 480.9 MB, free: 1.117 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.38e-05/0.4665, allocations: 63.97 kB / 480.9 MB, free: 1.055 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.4665, allocations: 4 kB / 480.9 MB, free: 1.051 MB / 346.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002805/0.4668, allocations: 197 kB / 481.1 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.4668, allocations: 12.48 kB / 481.1 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.4668, allocations: 8 kB / 481.1 MB, free: 0.832 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.4668, allocations: 4 kB / 481.1 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001545/0.467, allocations: 43.91 kB / 481.2 MB, free: 0.7852 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.467, allocations: 4 kB / 481.2 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.4671, allocations: 12 kB / 481.2 MB, free: 0.7695 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.638e-05/0.4671, allocations: 15.94 kB / 481.2 MB, free: 0.7539 MB / 346.7 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.523e-05/0.4672, allocations: 125 kB / 481.3 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001666/0.4674, allocations: 133.2 kB / 481.5 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002096/0.4676, allocations: 135.4 kB / 481.6 MB, free: 360 kB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.251e-06/0.4677, allocations: 4 kB / 481.6 MB, free: 356 kB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.4677, allocations: 0 / 481.6 MB, free: 356 kB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.4677, allocations: 7.984 kB / 481.6 MB, free: 348 kB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001939/0.4679, allocations: 230.1 kB / 481.8 MB, free: 80 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.4679, allocations: 0 / 481.8 MB, free: 80 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001275/0.468, allocations: 35.92 kB / 481.9 MB, free: 44 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.468, allocations: 4 kB / 481.9 MB, free: 40 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/0.4681, allocations: 3.984 kB / 481.9 MB, free: 36 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.766e-06/0.4681, allocations: 8 kB / 481.9 MB, free: 28 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.4681, allocations: 3.953 kB / 481.9 MB, free: 24 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003071/0.4684, allocations: 250.1 kB / 482.1 MB, free: 15.74 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.4685, allocations: 132.7 kB / 482.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.018e-05/0.4686, allocations: 7.953 kB / 482.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.554e-05/0.4687, allocations: 7.984 kB / 482.3 MB, free: 15.58 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.564e-05/0.4687, allocations: 12.05 kB / 482.3 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.4687, allocations: 12 kB / 482.3 MB, free: 15.55 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002066/0.4689, allocations: 234 kB / 482.5 MB, free: 15.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.469, allocations: 3.938 kB / 482.5 MB, free: 15.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003452/0.4693, allocations: 55.94 kB / 482.6 MB, free: 15.26 MB / 362.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,sample1.u,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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000807/0.4701, allocations: 373.4 kB / 483 MB, free: 14.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002666/0.4704, allocations: 151.7 kB / 483.1 MB, free: 14.83 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.4704, allocations: 1.062 kB / 483.1 MB, free: 14.83 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.9e-05/0.4705, allocations: 35.92 kB / 483.1 MB, free: 14.79 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004193/0.4709, allocations: 104.6 kB / 483.2 MB, free: 14.69 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005495/0.4715, allocations: 344 kB / 483.6 MB, free: 14.33 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003412/0.4718, allocations: 0.7758 MB / 484.3 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.445e-05/0.4719, allocations: 30.47 kB / 484.4 MB, free: 13.49 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.766e-05/0.472, allocations: 35.42 kB / 484.4 MB, free: 13.46 MB / 362.7 MB Notification: Performance of SimCode: time 2.5e-07/0.472, allocations: 4.219 kB / 484.4 MB, free: 13.45 MB / 362.7 MB Notification: Performance of Templates: time 0.00628/0.4783, allocations: 3.161 MB / 487.6 MB, free: 10.31 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) 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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches