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.0009047/0.0009048, allocations: 92.53 kB / 16.3 MB, free: 5.523 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.001021/0.001021, allocations: 184.9 kB / 17.2 MB, free: 5.457 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.698/1.698, allocations: 223.2 MB / 241.1 MB, free: 404 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004364/0.0004365, allocations: 11.94 kB / 300.7 MB, free: 6.496 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1528/0.1532, allocations: 50.41 MB / 351.1 MB, free: 4.07 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003402/0.1567, allocations: 1.617 MB / 352.8 MB, free: 2.438 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002788/0.1595, allocations: 1.072 MB / 353.8 MB, free: 1.359 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002347/0.1598, allocations: 7.938 kB / 353.8 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004027/0.1602, allocations: 59.73 kB / 353.9 MB, free: 1.293 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004123/0.1607, allocations: 75.77 kB / 354 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001296/0.162, allocations: 254.5 kB / 354.2 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003908/0.1624, allocations: 131.7 kB / 354.3 MB, free: 0.8438 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001766/0.1626, allocations: 41.64 kB / 354.4 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001925/0.1628, allocations: 75.62 kB / 354.5 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002227/0.163, allocations: 79.67 kB / 354.5 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.285e-05/0.1631, allocations: 4 kB / 354.5 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002127/0.1633, allocations: 43.97 kB / 354.6 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001088/0.1634, allocations: 59.77 kB / 354.6 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.395e-05/0.1635, allocations: 61.56 kB / 354.7 MB, free: 492 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004202/0.1639, allocations: 207.8 kB / 354.9 MB, free: 284 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1639, allocations: 0 / 354.9 MB, free: 284 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.1639, allocations: 0 / 354.9 MB, free: 284 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.324e-05/0.164, allocations: 0 / 354.9 MB, free: 284 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.001199/0.1652, allocations: 0.5319 MB / 355.4 MB, free: 15.69 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.1652, allocations: 12.02 kB / 355.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.1654, allocations: 35.58 kB / 355.5 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000538/0.1659, allocations: 298.4 kB / 355.8 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.349e-05/0.166, allocations: 12 kB / 355.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.567e-05/0.166, allocations: 12 kB / 355.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007909/0.1668, allocations: 322.6 kB / 356.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.443e-05/0.1668, allocations: 0 / 356.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.76e-05/0.1669, allocations: 7.953 kB / 356.1 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.1669, allocations: 4 kB / 356.1 MB, free: 14.94 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002462/0.1671, allocations: 71.89 kB / 356.2 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008159/0.168, allocations: 402.4 kB / 356.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005069/0.1685, allocations: 196 kB / 356.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.763e-05/0.1686, allocations: 20.03 kB / 356.8 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002119/0.1688, allocations: 79.52 kB / 356.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 3.046e-06/0.1688, allocations: 0 / 356.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0007449/0.1696, allocations: 261.1 kB / 357.1 MB, free: 13.83 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001447/0.1697, allocations: 170.2 kB / 357.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005398/0.1703, allocations: 342.8 kB / 357.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.461e-05/0.1703, allocations: 33.64 kB / 357.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.1704, allocations: 136.7 kB / 357.8 MB, free: 13.1 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.111e-05/0.1705, allocations: 31.62 kB / 357.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.378e-05/0.1705, allocations: 8 kB / 357.8 MB, free: 13.06 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001646/0.1707, allocations: 334.8 kB / 358.2 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.1708, allocations: 44.45 kB / 358.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002683/0.1711, allocations: 184.4 kB / 358.4 MB, free: 12.44 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001932/0.1713, allocations: 67.92 kB / 358.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.752e-06/0.1713, allocations: 4 kB / 358.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005646/0.1719, allocations: 236.9 kB / 358.7 MB, free: 12.13 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.947e-05/0.172, allocations: 8 kB / 358.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.172, allocations: 4 kB / 358.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.391e-05/0.172, allocations: 4 kB / 358.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002118/0.1722, allocations: 44.45 kB / 358.8 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/0.1723, allocations: 11.92 kB / 358.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001988/0.1725, allocations: 19.84 kB / 358.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.873e-05/0.1725, allocations: 16 kB / 358.8 MB, free: 12.02 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.0002326/0.1727, allocations: 172 kB / 359 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000281/0.173, allocations: 141.2 kB / 359.1 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.906e-05/0.1731, allocations: 34.2 kB / 359.1 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.1732, allocations: 4 kB / 359.1 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/0.1732, allocations: 4 kB / 359.1 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.1732, allocations: 4 kB / 359.1 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003259/0.1735, allocations: 257.5 kB / 359.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.005e-06/0.1735, allocations: 3.938 kB / 359.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000174/0.1737, allocations: 36.23 kB / 359.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.44e-06/0.1737, allocations: 0 / 359.4 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.753e-05/0.1738, allocations: 11.94 kB / 359.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.1738, allocations: 4 kB / 359.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1738, allocations: 0 / 359.5 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005632/0.1744, allocations: 283.1 kB / 359.7 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000174/0.1746, allocations: 124.7 kB / 359.9 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.019e-05/0.1746, allocations: 15.92 kB / 359.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000126/0.1748, allocations: 4 kB / 359.9 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.48e-05/0.1748, allocations: 11.98 kB / 359.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.099e-05/0.1749, allocations: 8 kB / 359.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003962/0.1753, allocations: 253.9 kB / 360.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1753, allocations: 0 / 360.1 MB, free: 10.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00051/0.1758, allocations: 44 kB / 360.2 MB, free: 10.52 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.001388/0.1772, allocations: 449.9 kB / 360.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004653/0.1777, allocations: 147.9 kB / 360.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.1777, allocations: 0 / 360.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001094/0.1778, allocations: 27.98 kB / 360.8 MB, free: 10.06 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006141/0.1784, allocations: 116.7 kB / 360.9 MB, free: 9.945 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001231/0.1797, allocations: 0.498 MB / 361.4 MB, free: 9.418 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006649/0.1804, allocations: 0.7716 MB / 362.2 MB, free: 8.621 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001895/0.1806, allocations: 34.52 kB / 362.2 MB, free: 8.586 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001071/0.1807, allocations: 31.42 kB / 362.2 MB, free: 8.555 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1807, allocations: 0 / 362.2 MB, free: 8.555 MB / 302.1 MB Notification: Performance of Templates: time 0.01147/0.1922, allocations: 3.175 MB / 365.4 MB, free: 5.406 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","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches