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) 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) 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=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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001405/0.001405, allocations: 89.33 kB / 16.31 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001824/0.001824, allocations: 186.5 kB / 17.21 MB, free: 5.902 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.543/1.543, allocations: 223.2 MB / 241.2 MB, free: 216 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002925/0.0002926, allocations: 4 kB / 300.8 MB, free: 6.434 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.14/0.1403, allocations: 50.43 MB / 351.2 MB, free: 3.992 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.002808/0.1432, allocations: 1.613 MB / 352.9 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001997/0.1453, allocations: 1.108 MB / 354 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001902/0.1455, allocations: 7.938 kB / 354 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003301/0.1458, allocations: 67.72 kB / 354 MB, free: 1.176 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002464/0.1461, allocations: 75.72 kB / 354.1 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009146/0.147, allocations: 266.2 kB / 354.4 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002556/0.1473, allocations: 179.5 kB / 354.6 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001349/0.1474, allocations: 45.58 kB / 354.6 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.1475, allocations: 71.64 kB / 354.7 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001415/0.1477, allocations: 91.58 kB / 354.8 MB, free: 480 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.209e-05/0.1477, allocations: 8 kB / 354.8 MB, free: 472 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001523/0.1479, allocations: 43.98 kB / 354.8 MB, free: 428 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.934e-05/0.148, allocations: 59.8 kB / 354.9 MB, free: 368 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.653e-05/0.148, allocations: 61.52 kB / 354.9 MB, free: 300 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002692/0.1483, allocations: 199.9 kB / 355.1 MB, free: 100 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.1483, allocations: 4 kB / 355.1 MB, free: 96 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1483, allocations: 0 / 355.1 MB, free: 96 kB / 286.1 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.1483, allocations: 0 / 355.1 MB, free: 96 kB / 286.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.0009021/0.1492, allocations: 0.5311 MB / 355.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.1493, allocations: 16.03 kB / 355.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.445e-05/0.1494, allocations: 31.58 kB / 355.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004296/0.1498, allocations: 298.3 kB / 356 MB, free: 15.13 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.417e-05/0.1498, allocations: 12 kB / 356 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.101e-05/0.1499, allocations: 12 kB / 356 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006409/0.1505, allocations: 319.7 kB / 356.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.1506, allocations: 0 / 356.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.671e-05/0.1506, allocations: 11.95 kB / 356.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.1506, allocations: 4 kB / 356.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001668/0.1508, allocations: 63.95 kB / 356.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006443/0.1514, allocations: 414.3 kB / 356.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003696/0.1518, allocations: 192 kB / 357 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001692/0.152, allocations: 94.48 kB / 357.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.834e-05/0.152, allocations: 7.938 kB / 357.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002463/0.1523, allocations: 83.38 kB / 357.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.863e-06/0.1523, allocations: 0 / 357.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005871/0.1529, allocations: 261.5 kB / 357.4 MB, free: 13.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001331/0.1531, allocations: 174.3 kB / 357.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003927/0.1535, allocations: 342.8 kB / 357.9 MB, free: 12.99 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.424e-05/0.1535, allocations: 33.7 kB / 358 MB, free: 12.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.1536, allocations: 136.7 kB / 358.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.02e-05/0.1537, allocations: 23.7 kB / 358.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.017e-06/0.1537, allocations: 7.938 kB / 358.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001787/0.1539, allocations: 342.8 kB / 358.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/0.154, allocations: 40.45 kB / 358.5 MB, free: 12.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001963/0.1542, allocations: 184.4 kB / 358.7 MB, free: 12.16 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001358/0.1543, allocations: 71.92 kB / 358.8 MB, free: 12.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.1543, allocations: 4 kB / 358.8 MB, free: 12.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003693/0.1547, allocations: 233.4 kB / 359 MB, free: 11.85 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.1547, allocations: 12.09 kB / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.208e-06/0.1548, allocations: 4 kB / 359 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.1548, allocations: 4 kB / 359 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001896/0.155, allocations: 43.92 kB / 359.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.346e-05/0.155, allocations: 11.88 kB / 359.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00012/0.1551, allocations: 19.83 kB / 359.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.893e-05/0.1551, allocations: 16 kB / 359.1 MB, free: 11.74 MB / 302.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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001803/0.1553, allocations: 172 kB / 359.3 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002115/0.1556, allocations: 145.2 kB / 359.4 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.068e-05/0.1556, allocations: 33.73 kB / 359.4 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.1557, allocations: 4 kB / 359.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.1557, allocations: 0 / 359.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.065e-06/0.1557, allocations: 4 kB / 359.5 MB, free: 11.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002577/0.1559, allocations: 261.9 kB / 359.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.156, allocations: 0 / 359.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001266/0.1561, allocations: 31.92 kB / 359.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.1561, allocations: 0 / 359.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.21e-05/0.1561, allocations: 15.95 kB / 359.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.1561, allocations: 7.922 kB / 359.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.1561, allocations: 4.312 kB / 359.8 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003708/0.1565, allocations: 247.7 kB / 360 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001212/0.1567, allocations: 124.7 kB / 360.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.042e-05/0.1567, allocations: 12 kB / 360.1 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.622e-05/0.1568, allocations: 19.94 kB / 360.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.023e-05/0.1569, allocations: 4 kB / 360.2 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.659e-05/0.1569, allocations: 11.98 kB / 360.2 MB, free: 10.56 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002434/0.1571, allocations: 249.9 kB / 360.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1571, allocations: 0 / 360.4 MB, free: 10.32 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003276/0.1575, allocations: 48 kB / 360.5 MB, free: 10.27 MB / 302.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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * 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 (22): * Single equations (assignments): 20 * 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.001097/0.1586, allocations: 447.4 kB / 360.9 MB, free: 9.98 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003932/0.159, allocations: 151.7 kB / 361.1 MB, free: 9.832 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.159, allocations: 0 / 361.1 MB, free: 9.832 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.977e-05/0.1591, allocations: 27.98 kB / 361.1 MB, free: 9.805 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005396/0.1596, allocations: 120.6 kB / 361.2 MB, free: 9.688 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009112/0.1606, allocations: 0.4933 MB / 361.7 MB, free: 9.164 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003777/0.1609, allocations: 0.7717 MB / 362.5 MB, free: 8.367 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001083/0.1611, allocations: 30.5 kB / 362.5 MB, free: 8.336 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.187e-05/0.1611, allocations: 27.44 kB / 362.5 MB, free: 8.309 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1611, allocations: 0 / 362.5 MB, free: 8.309 MB / 302.1 MB Notification: Performance of Templates: time 0.008025/0.1692, allocations: 3.177 MB / 365.7 MB, free: 5.156 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches