Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_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.0008036/0.0008034, allocations: 87.84 kB / 16.31 MB, free: 5.945 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.0009195/0.0009199, allocations: 182.5 kB / 17.21 MB, free: 5.867 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.547/1.547, allocations: 223.2 MB / 241.2 MB, free: 5.398 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003607/0.0003609, allocations: 8.859 kB / 300.9 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1463/0.1467, allocations: 50.43 MB / 351.3 MB, free: 11.55 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003005/0.1498, allocations: 1.651 MB / 353 MB, free: 9.887 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001975/0.1518, allocations: 1.037 MB / 354 MB, free: 8.844 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000175/0.152, allocations: 7.938 kB / 354 MB, free: 8.836 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000716/0.1527, allocations: 139.6 kB / 354.2 MB, free: 8.699 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002828/0.153, allocations: 95.7 kB / 354.3 MB, free: 8.605 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000753/0.1538, allocations: 206.3 kB / 354.5 MB, free: 8.406 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003079/0.1541, allocations: 199.4 kB / 354.7 MB, free: 8.211 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.1543, allocations: 36.3 kB / 354.7 MB, free: 8.176 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001342/0.1544, allocations: 83.56 kB / 354.8 MB, free: 8.094 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000145/0.1546, allocations: 79.61 kB / 354.9 MB, free: 8.016 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.412e-05/0.1546, allocations: 4 kB / 354.9 MB, free: 8.012 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001378/0.1547, allocations: 39.98 kB / 354.9 MB, free: 7.973 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.496e-05/0.1548, allocations: 43.83 kB / 354.9 MB, free: 7.93 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.261e-05/0.1549, allocations: 53.58 kB / 355 MB, free: 7.871 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003079/0.1552, allocations: 187.6 kB / 355.2 MB, free: 7.688 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/0.1553, allocations: 3.938 kB / 355.2 MB, free: 7.684 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.1553, allocations: 0 / 355.2 MB, free: 7.684 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.138e-05/0.1553, allocations: 0 / 355.2 MB, free: 7.684 MB / 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.0009954/0.1563, allocations: 0.504 MB / 355.7 MB, free: 7.125 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.726e-05/0.1563, allocations: 8.031 kB / 355.7 MB, free: 7.117 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.955e-05/0.1564, allocations: 50.44 kB / 355.7 MB, free: 7.059 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.327e-05/0.1565, allocations: 31.62 kB / 355.8 MB, free: 7.027 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003841/0.1569, allocations: 269.6 kB / 356 MB, free: 6.727 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.446e-05/0.1569, allocations: 15.94 kB / 356 MB, free: 6.711 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.996e-05/0.157, allocations: 12 kB / 356.1 MB, free: 6.699 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005891/0.1576, allocations: 298.9 kB / 356.4 MB, free: 6.383 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.1576, allocations: 0 / 356.4 MB, free: 6.383 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.994e-05/0.1576, allocations: 7.953 kB / 356.4 MB, free: 6.375 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.1576, allocations: 4 kB / 356.4 MB, free: 6.371 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001493/0.1578, allocations: 55.97 kB / 356.4 MB, free: 6.316 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005818/0.1584, allocations: 394.3 kB / 356.8 MB, free: 5.875 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003508/0.1587, allocations: 176 kB / 357 MB, free: 5.676 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001436/0.1589, allocations: 82.55 kB / 357.1 MB, free: 5.586 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.432e-05/0.1589, allocations: 7.938 kB / 357.1 MB, free: 5.578 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001938/0.1591, allocations: 79.36 kB / 357.1 MB, free: 5.488 MB / 286.1 MB Notification: Performance of pre-optimization done (n=22): time 1.713e-06/0.1592, allocations: 4 kB / 357.1 MB, free: 5.484 MB / 286.1 MB Notification: Performance of matching and sorting (n=22): time 0.0005241/0.1597, allocations: 225.2 kB / 357.4 MB, free: 5.258 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.1598, allocations: 140.5 kB / 357.5 MB, free: 5.09 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003076/0.1601, allocations: 268.9 kB / 357.8 MB, free: 4.82 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.523e-05/0.1602, allocations: 29.7 kB / 357.8 MB, free: 4.785 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.146e-05/0.1602, allocations: 116.7 kB / 357.9 MB, free: 4.668 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.348e-05/0.1603, allocations: 35.69 kB / 357.9 MB, free: 4.633 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.083e-06/0.1603, allocations: 7.938 kB / 358 MB, free: 4.625 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.1605, allocations: 334.8 kB / 358.3 MB, free: 4.289 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.466e-05/0.1606, allocations: 44.38 kB / 358.3 MB, free: 4.246 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.1608, allocations: 162.1 kB / 358.5 MB, free: 4.027 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001211/0.1609, allocations: 63.91 kB / 358.5 MB, free: 3.965 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.1609, allocations: 4 kB / 358.5 MB, free: 3.961 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000348/0.1613, allocations: 221 kB / 358.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.58e-05/0.1613, allocations: 4 kB / 358.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.1613, allocations: 4 kB / 358.8 MB, free: 3.73 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.285e-05/0.1613, allocations: 8.531 kB / 358.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.1615, allocations: 31.92 kB / 358.8 MB, free: 3.691 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.314e-05/0.1615, allocations: 7.938 kB / 358.8 MB, free: 3.684 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001154/0.1616, allocations: 15.94 kB / 358.8 MB, free: 3.668 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.875e-05/0.1616, allocations: 12 kB / 358.8 MB, free: 3.656 MB / 286.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.table1.combiTimeTable.nextTimeEvent,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,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.0001887/0.1618, allocations: 164.3 kB / 359 MB, free: 3.488 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000179/0.162, allocations: 121.3 kB / 359.1 MB, free: 3.363 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.727e-05/0.1621, allocations: 29.7 kB / 359.2 MB, free: 3.332 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.766e-06/0.1621, allocations: 12 kB / 359.2 MB, free: 3.32 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.1621, allocations: 0 / 359.2 MB, free: 3.32 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.72e-06/0.1621, allocations: 0 / 359.2 MB, free: 3.32 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002466/0.1624, allocations: 253.4 kB / 359.4 MB, free: 3.023 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.1624, allocations: 7.953 kB / 359.4 MB, free: 3.016 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.965e-05/0.1624, allocations: 12.41 kB / 359.4 MB, free: 3.004 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.1624, allocations: 4 kB / 359.4 MB, free: 3 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.1625, allocations: 3.984 kB / 359.4 MB, free: 2.996 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.1625, allocations: 4 kB / 359.4 MB, free: 2.992 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1625, allocations: 0 / 359.4 MB, free: 2.992 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003628/0.1629, allocations: 233.3 kB / 359.7 MB, free: 2.742 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001335/0.163, allocations: 124.7 kB / 359.8 MB, free: 2.602 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.931e-05/0.163, allocations: 4 kB / 359.8 MB, free: 2.598 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.414e-05/0.1631, allocations: 15.98 kB / 359.8 MB, free: 2.582 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.788e-05/0.1632, allocations: 0 / 359.8 MB, free: 2.582 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.368e-05/0.1632, allocations: 12 kB / 359.8 MB, free: 2.57 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000199/0.1634, allocations: 196.5 kB / 360 MB, free: 2.375 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1634, allocations: 0 / 360 MB, free: 2.375 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000314/0.1637, allocations: 43.98 kB / 360.1 MB, free: 2.332 MB / 286.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,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEventScaled,table1.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.001799/0.1656, allocations: 1.155 MB / 361.2 MB, free: 1.309 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003258/0.1659, allocations: 136.8 kB / 361.3 MB, free: 1.176 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.1659, allocations: 0 / 361.3 MB, free: 1.176 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.498e-05/0.166, allocations: 27.92 kB / 361.4 MB, free: 1.148 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000521/0.1665, allocations: 112.4 kB / 361.5 MB, free: 1.039 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002146/0.1687, allocations: 1.256 MB / 362.7 MB, free: 15.67 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003653/0.1691, allocations: 0.7599 MB / 363.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001125/0.1692, allocations: 30.17 kB / 363.5 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.1693, allocations: 67.41 kB / 363.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1693, allocations: 0 / 363.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0173/0.1866, allocations: 4.923 MB / 368.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002061/0.1869, allocations: 240.4 kB / 368.8 MB, free: 9.801 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.145/2.332, allocations: 0 / 368.8 MB, free: 9.801 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat does not exist to compare? outputFormat=mat