Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_UpSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_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.002527/0.002533, allocations: 181.7 kB / 13.23 MB, free: 2.086 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.229/2.229, allocations: 205.2 MB / 219 MB, free: 9.145 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.001128/0.001128, allocations: 91.84 kB / 267.1 MB, free: 9.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1079/0.1079, allocations: 12.59 MB / 327.8 MB, free: 12.46 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.745e-05/3.754e-05, allocations: 0 / 386.1 MB, free: 69.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1006, allocations: 50.37 MB / 436.5 MB, free: 19.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5231/0.6238, allocations: 82.21 MB / 0.5065 GB, free: 11.73 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003118/0.6241, allocations: 77.86 kB / 0.5066 GB, free: 11.72 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03845/0.6626, allocations: 8.424 MB / 0.5148 GB, free: 8.723 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.6627, allocations: 0 / 0.5148 GB, free: 8.723 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.153e-05/0.6627, allocations: 7.875 kB / 0.5148 GB, free: 8.719 MB / 330.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.001001/0.6637, allocations: 0.5071 MB / 0.5153 GB, free: 8.238 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.421e-05/0.6638, allocations: 11.53 kB / 0.5153 GB, free: 8.238 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.932e-05/0.6639, allocations: 44.02 kB / 0.5154 GB, free: 8.195 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001373/0.6641, allocations: 23.25 kB / 0.5154 GB, free: 8.184 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007617/0.6649, allocations: 283.3 kB / 0.5157 GB, free: 7.938 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.85e-05/0.665, allocations: 11.2 kB / 0.5157 GB, free: 7.934 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.64e-05/0.665, allocations: 15.09 kB / 0.5157 GB, free: 7.934 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009006/0.6659, allocations: 286.1 kB / 0.516 GB, free: 7.805 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/0.666, allocations: 3.938 kB / 0.516 GB, free: 7.801 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.123e-05/0.666, allocations: 3.312 kB / 0.516 GB, free: 7.801 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.6661, allocations: 3.844 kB / 0.516 GB, free: 7.801 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002758/0.6664, allocations: 68.2 kB / 0.5161 GB, free: 7.789 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001021/0.6674, allocations: 401.4 kB / 0.5164 GB, free: 7.445 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005108/0.668, allocations: 170.5 kB / 0.5166 GB, free: 7.359 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002357/0.6682, allocations: 81.56 kB / 0.5167 GB, free: 7.328 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.327e-05/0.6683, allocations: 3.875 kB / 0.5167 GB, free: 7.328 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002365/0.6685, allocations: 80.22 kB / 0.5168 GB, free: 7.27 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 5.55e-06/0.6686, allocations: 0 / 0.5168 GB, free: 7.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.0007368/0.6693, allocations: 169.2 kB / 0.5169 GB, free: 7.211 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.6695, allocations: 150.6 kB / 0.5171 GB, free: 7.047 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005472/0.67, allocations: 244.8 kB / 0.5173 GB, free: 6.93 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.523e-05/0.6701, allocations: 33.58 kB / 0.5173 GB, free: 6.898 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.6702, allocations: 117.2 kB / 0.5174 GB, free: 6.809 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.219e-05/0.6703, allocations: 26.84 kB / 0.5175 GB, free: 6.793 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.818e-05/0.6703, allocations: 7.469 kB / 0.5175 GB, free: 6.793 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.6705, allocations: 336.9 kB / 0.5178 GB, free: 6.469 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.6706, allocations: 34.06 kB / 0.5178 GB, free: 6.465 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002516/0.6709, allocations: 167.2 kB / 0.518 GB, free: 6.297 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002072/0.6711, allocations: 63.62 kB / 0.518 GB, free: 6.277 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.6711, allocations: 0 / 0.518 GB, free: 6.277 MB / 330.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0007077/0.6719, allocations: 219 kB / 0.5183 GB, free: 6.191 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.6719, allocations: 3.938 kB / 0.5183 GB, free: 6.191 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.672, allocations: 7.75 kB / 0.5183 GB, free: 6.191 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.025e-05/0.672, allocations: 3.812 kB / 0.5183 GB, free: 6.191 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002252/0.6722, allocations: 26.8 kB / 0.5183 GB, free: 6.184 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.786e-05/0.6723, allocations: 7.781 kB / 0.5183 GB, free: 6.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003084/0.6726, allocations: 27.55 kB / 0.5183 GB, free: 6.168 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.465e-05/0.6727, allocations: 15.23 kB / 0.5183 GB, free: 6.164 MB / 330.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.table1.combiTimeTable.nextTimeEvent,sample.u,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,sample.y) * Number of discrete states: 0 () * 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.0001766/0.6729, allocations: 129.3 kB / 0.5185 GB, free: 6.051 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004036/0.6733, allocations: 125.3 kB / 0.5186 GB, free: 5.992 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000428/0.6737, allocations: 110.1 kB / 0.5187 GB, free: 5.945 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.6738, allocations: 4 kB / 0.5187 GB, free: 5.941 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.315e-06/0.6738, allocations: 3.812 kB / 0.5187 GB, free: 5.941 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.306e-05/0.6738, allocations: 3.984 kB / 0.5187 GB, free: 5.938 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003654/0.6742, allocations: 261.1 kB / 0.5189 GB, free: 5.703 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.6742, allocations: 0 / 0.5189 GB, free: 5.703 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001168/0.6743, allocations: 15.64 kB / 0.519 GB, free: 5.695 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.838e-06/0.6744, allocations: 3.969 kB / 0.519 GB, free: 5.695 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.811e-05/0.6744, allocations: 3.875 kB / 0.519 GB, free: 5.695 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.713e-06/0.6744, allocations: 3.922 kB / 0.519 GB, free: 5.695 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.6744, allocations: 3.984 kB / 0.519 GB, free: 5.691 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005833/0.675, allocations: 251 kB / 0.5192 GB, free: 5.539 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001859/0.6752, allocations: 129 kB / 0.5193 GB, free: 5.422 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.484e-05/0.6753, allocations: 8.516 kB / 0.5193 GB, free: 5.418 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001808/0.6755, allocations: 8 kB / 0.5194 GB, free: 5.41 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.175e-05/0.6756, allocations: 7.516 kB / 0.5194 GB, free: 5.406 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.982e-05/0.6756, allocations: 11.98 kB / 0.5194 GB, free: 5.395 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003447/0.676, allocations: 195.2 kB / 0.5196 GB, free: 5.234 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.61e-07/0.676, allocations: 0 / 0.5196 GB, free: 5.234 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007458/0.6768, allocations: 50.12 kB / 0.5196 GB, free: 5.195 MB / 330.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,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,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled) * 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.002776/0.6796, allocations: 1.277 MB / 0.5209 GB, free: 3.98 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006448/0.6803, allocations: 138.6 kB / 0.521 GB, free: 3.875 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.544e-06/0.6803, allocations: 0 / 0.521 GB, free: 3.875 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.6805, allocations: 31.48 kB / 0.521 GB, free: 3.852 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009838/0.6815, allocations: 106 kB / 0.5211 GB, free: 3.773 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.6831, allocations: 376.2 kB / 0.5215 GB, free: 3.41 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003314/0.6835, allocations: 0.7598 MB / 0.5222 GB, free: 2.629 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002434/0.6838, allocations: 38.5 kB / 0.5223 GB, free: 2.59 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002084/0.684, allocations: 69.22 kB / 0.5223 GB, free: 2.559 MB / 330.7 MB Notification: Performance of SimCode: time 1.713e-06/0.684, allocations: 0 / 0.5223 GB, free: 2.559 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03601/0.72, allocations: 5.024 MB / 0.5272 GB, free: 13.54 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003679/0.7205, allocations: 213.8 kB / 0.5274 GB, free: 13.31 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.725/3.445, allocations: 0 / 0.5274 GB, free: 13.31 MB / 346.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_UpSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_UpSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample_res.mat does not exist to compare? outputFormat=mat