Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001526/0.001526, allocations: 183 kB / 15.8 MB, free: 6.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.003/2.003, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001106/0.001106, allocations: 94.86 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09676/0.09676, allocations: 12.59 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005722/0.0005722, allocations: 13 kB / 392.1 MB, free: 54.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0953/0.09592, allocations: 50.37 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1512/0.2472, allocations: 82.37 MB / 0.5125 GB, free: 8.348 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003507/0.2476, allocations: 83.95 kB / 0.5126 GB, free: 8.266 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3217/0.5693, allocations: 8.671 MB / 0.5211 GB, free: 84.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.5694, allocations: 1.625 kB / 0.5211 GB, free: 84.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.013e-05/0.5694, allocations: 9.453 kB / 0.5211 GB, free: 84.18 MB / 362.7 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.001155/0.5706, allocations: 0.5716 MB / 0.5217 GB, free: 83.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.405e-05/0.5707, allocations: 12.84 kB / 0.5217 GB, free: 83.71 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.178e-05/0.5708, allocations: 48.05 kB / 0.5217 GB, free: 83.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001098/0.5709, allocations: 29.31 kB / 0.5218 GB, free: 83.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006591/0.5716, allocations: 307.8 kB / 0.522 GB, free: 83.44 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.486e-05/0.5716, allocations: 13.58 kB / 0.5221 GB, free: 83.44 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.194e-05/0.5717, allocations: 14.38 kB / 0.5221 GB, free: 83.44 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008427/0.5725, allocations: 327.4 kB / 0.5224 GB, free: 83.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.5726, allocations: 0 / 0.5224 GB, free: 83.34 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.552e-05/0.5726, allocations: 3.375 kB / 0.5224 GB, free: 83.34 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.5726, allocations: 5.906 kB / 0.5224 GB, free: 83.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002851/0.5729, allocations: 69.16 kB / 0.5225 GB, free: 83.34 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008792/0.5738, allocations: 445 kB / 0.5229 GB, free: 83.05 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005673/0.5744, allocations: 188.2 kB / 0.5231 GB, free: 82.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.596e-05/0.5745, allocations: 6.984 kB / 0.5231 GB, free: 82.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002531/0.5747, allocations: 79.95 kB / 0.5231 GB, free: 82.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 3.637e-06/0.5747, allocations: 0 / 0.5231 GB, free: 82.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0009661/0.5757, allocations: 262.2 kB / 0.5234 GB, free: 82.88 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.451e-05/0.5758, allocations: 174.7 kB / 0.5236 GB, free: 82.69 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005668/0.5764, allocations: 307.8 kB / 0.5239 GB, free: 82.59 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.98e-05/0.5765, allocations: 34.83 kB / 0.5239 GB, free: 82.56 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.5766, allocations: 135.3 kB / 0.524 GB, free: 82.47 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.435e-05/0.5767, allocations: 27.03 kB / 0.524 GB, free: 82.46 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.6e-05/0.5767, allocations: 4.094 kB / 0.524 GB, free: 82.46 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.5768, allocations: 342.7 kB / 0.5244 GB, free: 82.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/0.577, allocations: 44.92 kB / 0.5244 GB, free: 82.14 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002926/0.5773, allocations: 197.8 kB / 0.5246 GB, free: 81.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002229/0.5776, allocations: 70.36 kB / 0.5247 GB, free: 81.96 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.5776, allocations: 1.344 kB / 0.5247 GB, free: 81.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006653/0.5783, allocations: 243.1 kB / 0.5249 GB, free: 81.9 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.411e-05/0.5783, allocations: 7.375 kB / 0.5249 GB, free: 81.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.5783, allocations: 4.781 kB / 0.5249 GB, free: 81.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.988e-05/0.5784, allocations: 9.766 kB / 0.5249 GB, free: 81.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002724/0.5787, allocations: 39.67 kB / 0.525 GB, free: 81.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.752e-05/0.5787, allocations: 9.984 kB / 0.525 GB, free: 81.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002082/0.5789, allocations: 16.89 kB / 0.525 GB, free: 81.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.94e-05/0.579, allocations: 14.69 kB / 0.525 GB, free: 81.89 MB / 362.7 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,sample.u,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,sample.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.0002819/0.5793, allocations: 186.9 kB / 0.5252 GB, free: 81.76 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003335/0.5796, allocations: 141.1 kB / 0.5253 GB, free: 81.71 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004409/0.5801, allocations: 130.8 kB / 0.5254 GB, free: 81.66 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.5801, allocations: 3.875 kB / 0.5254 GB, free: 81.66 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.5801, allocations: 0 / 0.5254 GB, free: 81.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.5801, allocations: 3.203 kB / 0.5254 GB, free: 81.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000358/0.5805, allocations: 284.6 kB / 0.5257 GB, free: 81.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.5805, allocations: 0 / 0.5257 GB, free: 81.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002517/0.5808, allocations: 33.98 kB / 0.5258 GB, free: 81.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.436e-06/0.5808, allocations: 1.672 kB / 0.5258 GB, free: 81.46 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.605e-05/0.5808, allocations: 8.906 kB / 0.5258 GB, free: 81.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.403e-06/0.5808, allocations: 2.766 kB / 0.5258 GB, free: 81.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.399e-06/0.5808, allocations: 1 kB / 0.5258 GB, free: 81.46 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000657/0.5815, allocations: 275.8 kB / 0.526 GB, free: 81.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001991/0.5817, allocations: 136.4 kB / 0.5262 GB, free: 81.21 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.227e-05/0.5818, allocations: 10.08 kB / 0.5262 GB, free: 81.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001632/0.582, allocations: 8.141 kB / 0.5262 GB, free: 81.21 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.524e-05/0.5821, allocations: 13.84 kB / 0.5262 GB, free: 81.21 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.937e-05/0.5821, allocations: 8.172 kB / 0.5262 GB, free: 81.21 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004619/0.5826, allocations: 252.5 kB / 0.5264 GB, free: 81.12 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5826, allocations: 0 / 0.5264 GB, free: 81.12 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005836/0.5832, allocations: 67.72 kB / 0.5265 GB, free: 81.11 MB / 362.7 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,sample.u,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,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * 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 (23): * Single equations (assignments): 21 * 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.002489/0.5857, allocations: 1.373 MB / 0.5278 GB, free: 80.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007303/0.5865, allocations: 165.8 kB / 0.528 GB, free: 80.07 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.5865, allocations: 1.25 kB / 0.528 GB, free: 80.07 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001487/0.5867, allocations: 31.31 kB / 0.528 GB, free: 80.07 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007755/0.5875, allocations: 121.2 kB / 0.5281 GB, free: 80.05 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003989/0.5915, allocations: 4.033 MB / 0.5321 GB, free: 76.81 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000327/0.5918, allocations: 0.7778 MB / 0.5328 GB, free: 76.11 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002337/0.5921, allocations: 35.81 kB / 0.5329 GB, free: 76.1 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002098/0.5923, allocations: 86.33 kB / 0.533 GB, free: 76.09 MB / 362.7 MB Notification: Performance of SimCode: time 1.203e-06/0.5923, allocations: 0 / 0.533 GB, free: 76.09 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0362/0.6285, allocations: 5.832 MB / 0.5387 GB, free: 75.45 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002609/0.6289, allocations: 249.7 kB / 0.5389 GB, free: 75.2 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.744/3.373, allocations: 0 / 0.5389 GB, free: 75.2 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_UpSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.UpSample_res.mat does not exist to compare? outputFormat=mat