Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001061/0.001061, allocations: 98.12 kB / 17 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001152/0.001152, allocations: 197.6 kB / 17.91 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.53/1.53, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003351/0.0003352, allocations: 4 kB / 306.8 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1564/0.1567, allocations: 51.49 MB / 358.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.003664/0.1605, allocations: 1.677 MB / 360 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002802/0.1633, allocations: 1.186 MB / 361.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000214/0.1636, allocations: 3.938 kB / 361.2 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009256/0.1645, allocations: 139.6 kB / 361.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005319/0.1651, allocations: 131.6 kB / 361.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000928/0.166, allocations: 218.7 kB / 361.6 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003549/0.1664, allocations: 203.4 kB / 361.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.1666, allocations: 52.2 kB / 361.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001526/0.1667, allocations: 79.62 kB / 362 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001554/0.1669, allocations: 83.55 kB / 362.1 MB, free: 10 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.726e-05/0.1669, allocations: 4 kB / 362.1 MB, free: 10 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001634/0.1671, allocations: 39.98 kB / 362.1 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.038e-05/0.1672, allocations: 43.83 kB / 362.1 MB, free: 9.918 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.288e-05/0.1673, allocations: 57.58 kB / 362.2 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003503/0.1676, allocations: 187.9 kB / 362.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.1677, allocations: 0 / 362.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.1677, allocations: 0 / 362.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.1677, allocations: 4 kB / 362.4 MB, free: 9.668 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.001096/0.1688, allocations: 0.5155 MB / 362.9 MB, free: 9.098 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.661e-05/0.1689, allocations: 8.031 kB / 362.9 MB, free: 9.09 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.589e-05/0.169, allocations: 46.55 kB / 363 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.669e-05/0.169, allocations: 27.72 kB / 363 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004812/0.1695, allocations: 277.5 kB / 363.3 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.677e-05/0.1696, allocations: 8 kB / 363.3 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.838e-05/0.1696, allocations: 23.95 kB / 363.3 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007379/0.1704, allocations: 287.5 kB / 363.6 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.1704, allocations: 0 / 363.6 MB, free: 8.359 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.296e-05/0.1704, allocations: 8 kB / 363.6 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.1704, allocations: 0 / 363.6 MB, free: 8.352 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001984/0.1706, allocations: 63.89 kB / 363.6 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006621/0.1713, allocations: 390.3 kB / 364 MB, free: 7.852 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004091/0.1717, allocations: 167.8 kB / 364.2 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002143/0.172, allocations: 90.67 kB / 364.3 MB, free: 7.562 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.97e-05/0.172, allocations: 11.98 kB / 364.3 MB, free: 7.551 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002019/0.1722, allocations: 71.39 kB / 364.4 MB, free: 7.469 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 3.997e-06/0.1723, allocations: 3.984 kB / 364.4 MB, free: 7.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.000646/0.1729, allocations: 225.6 kB / 364.6 MB, free: 7.238 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001228/0.1731, allocations: 156.4 kB / 364.7 MB, free: 7.055 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003968/0.1735, allocations: 277 kB / 365 MB, free: 6.773 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.735e-05/0.1735, allocations: 33.7 kB / 365 MB, free: 6.734 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.1736, allocations: 120.6 kB / 365.1 MB, free: 6.609 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.73e-05/0.1737, allocations: 27.64 kB / 365.2 MB, free: 6.582 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.09e-05/0.1737, allocations: 4 kB / 365.2 MB, free: 6.578 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.1739, allocations: 342.8 kB / 365.5 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.174, allocations: 40.44 kB / 365.6 MB, free: 6.195 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002211/0.1742, allocations: 162.1 kB / 365.7 MB, free: 5.977 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/0.1744, allocations: 59.97 kB / 365.8 MB, free: 5.918 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.1744, allocations: 0 / 365.8 MB, free: 5.918 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004862/0.1749, allocations: 225 kB / 366 MB, free: 5.691 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.49e-05/0.175, allocations: 8 kB / 366 MB, free: 5.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.118e-05/0.175, allocations: 4 kB / 366 MB, free: 5.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.088e-05/0.175, allocations: 4 kB / 366 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.1751, allocations: 31.86 kB / 366 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.504e-05/0.1752, allocations: 4.531 kB / 366 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000173/0.1754, allocations: 27.89 kB / 366.1 MB, free: 5.613 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.072e-05/0.1754, allocations: 8 kB / 366.1 MB, free: 5.605 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.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.0002003/0.1756, allocations: 161.6 kB / 366.2 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002517/0.1759, allocations: 125.3 kB / 366.4 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.152e-05/0.176, allocations: 33.64 kB / 366.4 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.654e-06/0.176, allocations: 4 kB / 366.4 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.073e-06/0.176, allocations: 0 / 366.4 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.437e-06/0.176, allocations: 4 kB / 366.4 MB, free: 5.273 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002985/0.1763, allocations: 257.3 kB / 366.6 MB, free: 4.973 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.04e-06/0.1763, allocations: 4 kB / 366.7 MB, free: 4.969 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.151e-05/0.1764, allocations: 12.23 kB / 366.7 MB, free: 4.957 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.373e-06/0.1764, allocations: 4 kB / 366.7 MB, free: 4.953 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.231e-05/0.1764, allocations: 8 kB / 366.7 MB, free: 4.945 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.169e-06/0.1765, allocations: 4 kB / 366.7 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1765, allocations: 0 / 366.7 MB, free: 4.941 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004609/0.1769, allocations: 236.9 kB / 366.9 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001427/0.1771, allocations: 116.9 kB / 367 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.829e-05/0.1771, allocations: 7.938 kB / 367 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.1773, allocations: 11.98 kB / 367 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.798e-05/0.1773, allocations: 4 kB / 367.1 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.231e-05/0.1774, allocations: 11.98 kB / 367.1 MB, free: 4.523 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00029/0.1777, allocations: 200.5 kB / 367.3 MB, free: 4.328 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1777, allocations: 0 / 367.3 MB, free: 4.328 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004907/0.1782, allocations: 51.94 kB / 367.3 MB, free: 4.277 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,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.002094/0.1803, allocations: 1.161 MB / 368.5 MB, free: 3.223 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003144/0.1806, allocations: 135.7 kB / 368.6 MB, free: 3.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1806, allocations: 0 / 368.6 MB, free: 3.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.719e-05/0.1807, allocations: 25.05 kB / 368.6 MB, free: 3.066 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004891/0.1812, allocations: 114.6 kB / 368.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001897/0.1831, allocations: 1.299 MB / 370 MB, free: 1.559 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003216/0.1834, allocations: 0.756 MB / 370.8 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001013/0.1835, allocations: 26.28 kB / 370.8 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001117/0.1837, allocations: 63.42 kB / 370.9 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1837, allocations: 4 kB / 370.9 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2175/0.4012, allocations: 5.006 MB / 375.9 MB, free: 18.2 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002159/0.4015, allocations: 242.7 kB / 376.1 MB, free: 17.96 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.096/2.497, allocations: 5.094 kB / 376.1 MB, free: 17.95 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat does not exist to compare? outputFormat=mat