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.001056/0.001057, allocations: 114.1 kB / 17.69 MB, free: 5.309 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.001036/0.001036, allocations: 187 kB / 18.63 MB, free: 4.379 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.455/1.455, allocations: 222.9 MB / 242.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 47.27 kB / 302.1 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1218, allocations: 49.44 MB / 351.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.005567/0.1275, allocations: 1.953 MB / 353.5 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002656/0.1302, allocations: 1.188 MB / 354.6 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002008/0.1304, allocations: 7.938 kB / 354.7 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004239/0.1309, allocations: 75.59 kB / 354.7 MB, free: 468 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003561/0.1312, allocations: 95.58 kB / 354.8 MB, free: 372 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001152/0.1324, allocations: 303.2 kB / 355.1 MB, free: 76 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003699/0.1328, allocations: 215.4 kB / 355.3 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001744/0.133, allocations: 53.64 kB / 355.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001622/0.1331, allocations: 95.61 kB / 355.5 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000194/0.1334, allocations: 107.5 kB / 355.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.776e-05/0.1334, allocations: 12 kB / 355.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002041/0.1336, allocations: 71.89 kB / 355.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001126/0.1337, allocations: 59.83 kB / 355.7 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.1339, allocations: 107.3 kB / 355.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004607/0.1344, allocations: 279.1 kB / 356.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.1344, allocations: 11.94 kB / 356.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1344, allocations: 0 / 356.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.1344, allocations: 0 / 356.1 MB, free: 15.08 MB / 302.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.001145/0.1356, allocations: 0.5739 MB / 356.7 MB, free: 14.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.1356, allocations: 11.89 kB / 356.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001066/0.1357, allocations: 36.64 kB / 356.7 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000562/0.1363, allocations: 307.4 kB / 357 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.984e-05/0.1363, allocations: 12.38 kB / 357 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.31e-05/0.1364, allocations: 16.12 kB / 357.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007826/0.1372, allocations: 337.3 kB / 357.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.1372, allocations: 0 / 357.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.536e-05/0.1372, allocations: 8 kB / 357.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.1372, allocations: 0 / 357.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002526/0.1375, allocations: 71.89 kB / 357.5 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000762/0.1383, allocations: 418.2 kB / 357.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005277/0.1388, allocations: 195.9 kB / 358.1 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002285/0.1391, allocations: 90.53 kB / 358.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.309e-05/0.1391, allocations: 16.22 kB / 358.2 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002164/0.1394, allocations: 75.33 kB / 358.2 MB, free: 12.72 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.154e-06/0.1394, allocations: 0 / 358.2 MB, free: 12.72 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0007441/0.1401, allocations: 257.1 kB / 358.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/0.1403, allocations: 166.2 kB / 358.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004812/0.1408, allocations: 346.9 kB / 359 MB, free: 11.91 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.15e-05/0.1408, allocations: 33.7 kB / 359 MB, free: 11.88 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001317/0.1409, allocations: 128.7 kB / 359.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.692e-05/0.141, allocations: 31.69 kB / 359.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.1411, allocations: 53.94 kB / 359.2 MB, free: 11.65 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.1413, allocations: 342.8 kB / 359.6 MB, free: 11.31 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000141/0.1415, allocations: 40.44 kB / 359.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002775/0.1418, allocations: 188 kB / 359.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004155/0.1422, allocations: 219.5 kB / 360 MB, free: 10.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.1422, allocations: 0 / 360 MB, free: 10.75 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005881/0.1428, allocations: 237.2 kB / 360.2 MB, free: 10.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/0.1428, allocations: 8 kB / 360.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.1429, allocations: 4 kB / 360.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.558e-05/0.1429, allocations: 4 kB / 360.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002161/0.1431, allocations: 47.91 kB / 360.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.834e-05/0.1431, allocations: 11.88 kB / 360.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001768/0.1433, allocations: 19.84 kB / 360.3 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.667e-05/0.1434, allocations: 8 kB / 360.3 MB, free: 10.41 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 ($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.0002257/0.1436, allocations: 192.1 kB / 360.5 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002867/0.1439, allocations: 141.6 kB / 360.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.497e-05/0.144, allocations: 29.83 kB / 360.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.144, allocations: 7.938 kB / 360.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.144, allocations: 3.938 kB / 360.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.548e-06/0.144, allocations: 7.984 kB / 360.7 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003035/0.1444, allocations: 257.5 kB / 361 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1444, allocations: 0 / 361 MB, free: 9.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001839/0.1446, allocations: 35.91 kB / 361 MB, free: 9.691 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.229e-06/0.1446, allocations: 4 kB / 361 MB, free: 9.688 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.509e-05/0.1446, allocations: 8 kB / 361 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.1446, allocations: 0 / 361 MB, free: 9.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.1446, allocations: 3.938 kB / 361 MB, free: 9.676 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005319/0.1452, allocations: 237.2 kB / 361.2 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001675/0.1454, allocations: 132.7 kB / 361.4 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.278e-05/0.1454, allocations: 12 kB / 361.4 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000124/0.1456, allocations: 11.98 kB / 361.4 MB, free: 9.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.131e-05/0.1456, allocations: 15.92 kB / 361.4 MB, free: 9.234 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3e-05/0.1457, allocations: 4 kB / 361.4 MB, free: 9.23 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003296/0.146, allocations: 253.9 kB / 361.7 MB, free: 8.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.146, allocations: 0 / 361.7 MB, free: 8.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004698/0.1465, allocations: 44 kB / 361.7 MB, free: 8.938 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 (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.001382/0.1479, allocations: 426.6 kB / 362.1 MB, free: 8.668 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004595/0.1484, allocations: 159.7 kB / 362.3 MB, free: 8.512 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.1484, allocations: 1.062 kB / 362.3 MB, free: 8.512 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001104/0.1485, allocations: 23.98 kB / 362.3 MB, free: 8.488 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006913/0.1492, allocations: 140 kB / 362.4 MB, free: 8.355 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009911/0.1502, allocations: 466 kB / 362.9 MB, free: 7.871 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004196/0.1506, allocations: 0.7636 MB / 363.7 MB, free: 7.078 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001385/0.1508, allocations: 34.27 kB / 363.7 MB, free: 7.043 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.068e-05/0.1509, allocations: 27.44 kB / 363.7 MB, free: 7.016 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1509, allocations: 0 / 363.7 MB, free: 7.016 MB / 302.1 MB Notification: Performance of Templates: time 0.01021/0.1611, allocations: 3.482 MB / 367.2 MB, free: 3.555 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","/var/lib/jenkins1/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