Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.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.RealSignals.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|add.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|add.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000963/0.0009632, allocations: 176.1 kB / 17.4 MB, free: 4.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.468/1.468, allocations: 223.3 MB / 241.4 MB, free: 11.68 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009627/0.0009626, allocations: 92.55 kB / 292.6 MB, free: 10.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004185/0.0004187, allocations: 11.94 kB / 352.3 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3597/0.3602, allocations: 50.41 MB / 402.8 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09471/0.455, allocations: 77.62 MB / 480.4 MB, free: 2.723 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/0.4552, allocations: 81.02 kB / 480.5 MB, free: 2.645 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01272/0.468, allocations: 4.464 MB / 484.9 MB, free: 14.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.326e-06/0.468, allocations: 0 / 484.9 MB, free: 14.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.743e-05/0.4681, allocations: 4 kB / 484.9 MB, free: 14.18 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0005551/0.4686, allocations: 415 kB / 485.3 MB, free: 13.72 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.4687, allocations: 11.97 kB / 485.3 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.016e-05/0.4687, allocations: 20.73 kB / 485.4 MB, free: 13.69 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002671/0.469, allocations: 203 kB / 485.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.352e-05/0.4691, allocations: 12.36 kB / 485.6 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.706e-05/0.4691, allocations: 16.36 kB / 485.6 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005166/0.4696, allocations: 270 kB / 485.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.4696, allocations: 192 / 485.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.229e-05/0.4697, allocations: 7.938 kB / 485.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.874e-06/0.4697, allocations: 3.938 kB / 485.9 MB, free: 13.13 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001541/0.4698, allocations: 55.91 kB / 485.9 MB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005395/0.4704, allocations: 318.4 kB / 486.2 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000249/0.4707, allocations: 139.8 kB / 486.4 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/0.4708, allocations: 82.61 kB / 486.4 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.2e-05/0.4708, allocations: 0 / 486.4 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.4709, allocations: 38.56 kB / 486.5 MB, free: 12.41 MB / 362.7 MB Notification: Performance of pre-optimization done (n=17): time 1.363e-06/0.4709, allocations: 0 / 486.5 MB, free: 12.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004433/0.4713, allocations: 177.3 kB / 486.7 MB, free: 12.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.641e-05/0.4714, allocations: 118.9 kB / 486.8 MB, free: 12.09 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002166/0.4717, allocations: 153.9 kB / 486.9 MB, free: 11.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/0.4717, allocations: 29.7 kB / 487 MB, free: 11.89 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.57e-05/0.4718, allocations: 92.12 kB / 487 MB, free: 11.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.372e-05/0.4718, allocations: 19.8 kB / 487.1 MB, free: 11.78 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.404e-06/0.4718, allocations: 8.125 kB / 487.1 MB, free: 11.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.472, allocations: 322.8 kB / 487.4 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.166e-05/0.472, allocations: 27.98 kB / 487.4 MB, free: 11.42 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001346/0.4722, allocations: 134.5 kB / 487.5 MB, free: 11.24 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002325/0.4724, allocations: 174.3 kB / 487.7 MB, free: 11.02 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.237e-06/0.4724, allocations: 0 / 487.7 MB, free: 11.02 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003197/0.4728, allocations: 181.2 kB / 487.9 MB, free: 10.83 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.4728, allocations: 8.531 kB / 487.9 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.4728, allocations: 8 kB / 487.9 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.114e-05/0.4729, allocations: 4 kB / 487.9 MB, free: 10.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001248/0.473, allocations: 35.92 kB / 487.9 MB, free: 10.78 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.465e-05/0.473, allocations: 7.984 kB / 488 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.736e-05/0.4731, allocations: 15.91 kB / 488 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.586e-05/0.4731, allocations: 8 kB / 488 MB, free: 10.75 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 8 (upSample2.b_super,$CLKPRE.upSample2.b_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample2.b,$CLKPRE.upSample2.b,upSample1.b,$CLKPRE.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 (21): * Single equations (assignments): 21 * 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 0.0001316/0.4733, allocations: 141.7 kB / 488.1 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001902/0.4735, allocations: 113.8 kB / 488.2 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.141e-05/0.4735, allocations: 28.64 kB / 488.3 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.4735, allocations: 4 kB / 488.3 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.4735, allocations: 0 / 488.3 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.4736, allocations: 4 kB / 488.3 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002167/0.4738, allocations: 201.5 kB / 488.5 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.4738, allocations: 0 / 488.5 MB, free: 10.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001159/0.4739, allocations: 31.91 kB / 488.5 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.4739, allocations: 0 / 488.5 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.549e-05/0.4739, allocations: 8 kB / 488.5 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.474, allocations: 0 / 488.5 MB, free: 10.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.474, allocations: 4 kB / 488.5 MB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003008/0.4743, allocations: 256.9 kB / 488.8 MB, free: 9.879 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.506e-05/0.4744, allocations: 104.8 kB / 488.9 MB, free: 9.758 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.517e-05/0.4744, allocations: 8 kB / 488.9 MB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.178e-05/0.4745, allocations: 11.98 kB / 488.9 MB, free: 9.738 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.613e-05/0.4745, allocations: 0 / 488.9 MB, free: 9.738 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.202e-05/0.4745, allocations: 8 kB / 488.9 MB, free: 9.73 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.854e-05/0.4746, allocations: 111.2 kB / 489 MB, free: 9.621 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4746, allocations: 0 / 489 MB, free: 9.621 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002798/0.4749, allocations: 23.94 kB / 489 MB, free: 9.598 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: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Number of discrete states: 0 () * 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 (17): * Single equations (assignments): 17 * 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 Backend phase and start with SimCode phase: time 0.0001186/0.4751, allocations: 107.6 kB / 489.1 MB, free: 9.484 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002336/0.4753, allocations: 111.8 kB / 489.2 MB, free: 9.375 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.4753, allocations: 0 / 489.2 MB, free: 9.375 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.997e-05/0.4754, allocations: 13.05 kB / 489.2 MB, free: 9.363 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004575/0.4758, allocations: 84.8 kB / 489.3 MB, free: 9.281 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000505/0.4763, allocations: 311.7 kB / 489.6 MB, free: 8.945 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003136/0.4767, allocations: 0.7127 MB / 490.3 MB, free: 8.207 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.745e-05/0.4767, allocations: 17.73 kB / 490.4 MB, free: 8.188 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.065e-05/0.4768, allocations: 11.44 kB / 490.4 MB, free: 8.176 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4768, allocations: 0 / 490.4 MB, free: 8.176 MB / 362.7 MB Notification: Performance of Templates: time 0.003552/0.4803, allocations: 1.062 MB / 491.4 MB, free: 7.125 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample1/UpSample1.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches