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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.001151, allocations: 96.05 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.001029/0.001029, allocations: 181.7 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.536/1.536, allocations: 223.2 MB / 241.1 MB, free: 380 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004914/0.0004918, allocations: 15.97 kB / 300.8 MB, free: 6.355 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1518/0.1523, allocations: 50.4 MB / 351.2 MB, free: 3.941 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.003399/0.1558, allocations: 1.621 MB / 352.8 MB, free: 2.305 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002338/0.1582, allocations: 1.068 MB / 353.9 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002464/0.1585, allocations: 0 / 353.9 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004127/0.1589, allocations: 63.72 kB / 354 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003474/0.1593, allocations: 83.77 kB / 354.1 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009585/0.1603, allocations: 265.7 kB / 354.3 MB, free: 0.832 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003123/0.1606, allocations: 123.7 kB / 354.4 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.1607, allocations: 49.64 kB / 354.5 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001264/0.1609, allocations: 71.69 kB / 354.6 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000161/0.161, allocations: 79.67 kB / 354.6 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.592e-05/0.1611, allocations: 4 kB / 354.6 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001528/0.1612, allocations: 51.89 kB / 354.7 MB, free: 472 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.033e-05/0.1613, allocations: 47.83 kB / 354.7 MB, free: 424 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.618e-05/0.1614, allocations: 61.58 kB / 354.8 MB, free: 356 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003156/0.1617, allocations: 211.8 kB / 355 MB, free: 144 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.995e-06/0.1617, allocations: 0 / 355 MB, free: 144 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.1617, allocations: 0 / 355 MB, free: 144 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.1617, allocations: 0 / 355 MB, free: 144 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.001134/0.1629, allocations: 0.539 MB / 355.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.1629, allocations: 8.031 kB / 355.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.999e-05/0.163, allocations: 54.33 kB / 355.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.097e-05/0.1631, allocations: 27.62 kB / 355.6 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004736/0.1636, allocations: 302.3 kB / 355.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2e-05/0.1636, allocations: 12 kB / 355.9 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.512e-05/0.1636, allocations: 12 kB / 355.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005603/0.1642, allocations: 315.9 kB / 356.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.1642, allocations: 3.953 kB / 356.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.649e-05/0.1643, allocations: 0 / 356.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.605e-06/0.1643, allocations: 4 kB / 356.3 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001878/0.1645, allocations: 75.88 kB / 356.3 MB, free: 14.67 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005494/0.165, allocations: 410.4 kB / 356.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003644/0.1654, allocations: 207.9 kB / 356.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.012e-05/0.1654, allocations: 4 kB / 356.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000162/0.1656, allocations: 75.5 kB / 357 MB, free: 13.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 4.047e-06/0.1656, allocations: 0 / 357 MB, free: 13.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005244/0.1661, allocations: 257 kB / 357.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001211/0.1663, allocations: 174.2 kB / 357.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003747/0.1667, allocations: 342.9 kB / 357.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.62e-05/0.1667, allocations: 33.69 kB / 357.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.049e-05/0.1668, allocations: 128.8 kB / 357.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.345e-05/0.1668, allocations: 31.69 kB / 358 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.558e-06/0.1669, allocations: 8 kB / 358 MB, free: 12.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001444/0.167, allocations: 338.8 kB / 358.3 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.059e-05/0.1671, allocations: 44.44 kB / 358.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001947/0.1673, allocations: 188.4 kB / 358.5 MB, free: 12.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001253/0.1674, allocations: 67.92 kB / 358.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.1675, allocations: 4 kB / 358.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003679/0.1678, allocations: 233.2 kB / 358.8 MB, free: 11.94 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.1679, allocations: 8 kB / 358.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.1679, allocations: 4 kB / 358.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.733e-05/0.1679, allocations: 8.422 kB / 358.8 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001598/0.1681, allocations: 43.92 kB / 358.9 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.678e-06/0.1681, allocations: 4.531 kB / 358.9 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.1682, allocations: 23.84 kB / 358.9 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/0.1682, allocations: 19.94 kB / 358.9 MB, free: 11.83 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.0001922/0.1684, allocations: 172 kB / 359.1 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001994/0.1686, allocations: 145.1 kB / 359.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.239e-05/0.1687, allocations: 29.73 kB / 359.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.1687, allocations: 4 kB / 359.3 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.1687, allocations: 7.984 kB / 359.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/0.1687, allocations: 4 kB / 359.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002502/0.169, allocations: 265.5 kB / 359.6 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.169, allocations: 0 / 359.6 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001225/0.1691, allocations: 27.98 kB / 359.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.98e-06/0.1692, allocations: 3.953 kB / 359.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.734e-05/0.1692, allocations: 8 kB / 359.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.099e-06/0.1692, allocations: 0 / 359.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.1692, allocations: 7.938 kB / 359.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003907/0.1696, allocations: 275.1 kB / 359.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001395/0.1697, allocations: 132.7 kB / 360 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.853e-05/0.1698, allocations: 4 kB / 360 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.571e-05/0.1699, allocations: 8 kB / 360 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.786e-05/0.1699, allocations: 11.98 kB / 360 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.229e-05/0.17, allocations: 7.984 kB / 360 MB, free: 10.62 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002361/0.1702, allocations: 249.9 kB / 360.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1702, allocations: 0 / 360.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003101/0.1705, allocations: 47.98 kB / 360.3 MB, free: 10.33 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.001609/0.1721, allocations: 1.348 MB / 361.7 MB, free: 9.098 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003109/0.1725, allocations: 144.5 kB / 361.8 MB, free: 8.957 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1725, allocations: 8.312 kB / 361.8 MB, free: 8.949 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.307e-05/0.1726, allocations: 27.98 kB / 361.8 MB, free: 8.922 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004326/0.173, allocations: 121.6 kB / 362 MB, free: 8.801 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00271/0.1757, allocations: 4.006 MB / 366 MB, free: 4.668 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003419/0.1761, allocations: 0.7833 MB / 366.8 MB, free: 3.859 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.867e-05/0.1762, allocations: 42.75 kB / 366.8 MB, free: 3.816 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001114/0.1763, allocations: 75.41 kB / 366.9 MB, free: 3.742 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.1763, allocations: 0 / 366.9 MB, free: 3.742 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2145/0.3908, allocations: 5.668 MB / 372.5 MB, free: 24.75 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001488/0.391, allocations: 232.6 kB / 372.8 MB, free: 24.52 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.042/2.433, allocations: 0 / 372.8 MB, free: 24.52 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat does not exist to compare? outputFormat=mat