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.001531/0.001531, allocations: 180.5 kB / 15.8 MB, free: 6.34 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.054/2.054, 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.001167/0.001167, allocations: 98.84 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.09532/0.09532, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006014/0.0006014, allocations: 16 kB / 392.1 MB, free: 54.78 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09716/0.09781, allocations: 50.37 MB / 442.5 MB, free: 10.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1751/0.273, allocations: 82.29 MB / 0.5125 GB, free: 8.418 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003308/0.2734, allocations: 83.89 kB / 0.5126 GB, free: 8.336 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3131/0.5864, allocations: 8.462 MB / 0.5208 GB, free: 84.59 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.196e-06/0.5865, allocations: 0 / 0.5208 GB, free: 84.59 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.861e-05/0.5866, allocations: 5.938 kB / 0.5208 GB, free: 84.59 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.001059/0.5877, allocations: 0.5306 MB / 0.5213 GB, free: 84.18 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/0.5877, allocations: 10 kB / 0.5213 GB, free: 84.18 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.905e-05/0.5878, allocations: 47.89 kB / 0.5214 GB, free: 84.14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.435e-05/0.5879, allocations: 22.08 kB / 0.5214 GB, free: 84.13 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005608/0.5885, allocations: 280.7 kB / 0.5217 GB, free: 83.92 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.891e-05/0.5885, allocations: 14.95 kB / 0.5217 GB, free: 83.92 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.993e-05/0.5886, allocations: 13.59 kB / 0.5217 GB, free: 83.92 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007193/0.5893, allocations: 303.2 kB / 0.522 GB, free: 83.83 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.5893, allocations: 0 / 0.522 GB, free: 83.83 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.412e-05/0.5894, allocations: 6.5 kB / 0.522 GB, free: 83.83 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.5894, allocations: 2.125 kB / 0.522 GB, free: 83.83 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002345/0.5896, allocations: 61.75 kB / 0.5221 GB, free: 83.83 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006917/0.5903, allocations: 388.5 kB / 0.5224 GB, free: 83.55 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004699/0.5908, allocations: 178.6 kB / 0.5226 GB, free: 83.48 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.044e-05/0.5909, allocations: 9.703 kB / 0.5226 GB, free: 83.48 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001988/0.5911, allocations: 74.67 kB / 0.5227 GB, free: 83.43 MB / 362.7 MB Notification: Performance of pre-optimization done (n=22): time 3.476e-06/0.5911, allocations: 1.469 kB / 0.5227 GB, free: 83.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=22): time 0.0008379/0.592, allocations: 221.6 kB / 0.5229 GB, free: 83.39 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.98e-05/0.5921, allocations: 155.9 kB / 0.523 GB, free: 83.23 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004428/0.5925, allocations: 244.4 kB / 0.5233 GB, free: 83.13 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.321e-05/0.5926, allocations: 34.89 kB / 0.5233 GB, free: 83.1 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.563e-05/0.5927, allocations: 120.7 kB / 0.5234 GB, free: 83.01 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.035e-05/0.5927, allocations: 29.08 kB / 0.5235 GB, free: 82.99 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.647e-05/0.5928, allocations: 8.844 kB / 0.5235 GB, free: 82.99 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.576e-05/0.5929, allocations: 339 kB / 0.5238 GB, free: 82.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000148/0.593, allocations: 43.11 kB / 0.5238 GB, free: 82.67 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002171/0.5933, allocations: 168.8 kB / 0.524 GB, free: 82.51 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001919/0.5935, allocations: 68.58 kB / 0.5241 GB, free: 82.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/0.5935, allocations: 0 / 0.5241 GB, free: 82.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006169/0.5941, allocations: 221.8 kB / 0.5243 GB, free: 82.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.616e-05/0.5942, allocations: 8.484 kB / 0.5243 GB, free: 82.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.5942, allocations: 6.969 kB / 0.5243 GB, free: 82.45 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.675e-05/0.5942, allocations: 6.25 kB / 0.5243 GB, free: 82.45 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001586/0.5944, allocations: 23.27 kB / 0.5243 GB, free: 82.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.583e-05/0.5944, allocations: 6.953 kB / 0.5243 GB, free: 82.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002019/0.5946, allocations: 17.44 kB / 0.5243 GB, free: 82.44 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.033e-05/0.5947, allocations: 17.52 kB / 0.5244 GB, free: 82.44 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.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 () * 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.0002451/0.5949, allocations: 167 kB / 0.5245 GB, free: 82.31 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003207/0.5952, allocations: 127.7 kB / 0.5246 GB, free: 82.26 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004155/0.5957, allocations: 119.2 kB / 0.5247 GB, free: 82.22 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.077e-06/0.5957, allocations: 3.297 kB / 0.5247 GB, free: 82.22 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.5957, allocations: 1.125 kB / 0.5248 GB, free: 82.22 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/0.5957, allocations: 2.609 kB / 0.5248 GB, free: 82.22 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003569/0.5961, allocations: 254.3 kB / 0.525 GB, free: 82.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.5961, allocations: 2 kB / 0.525 GB, free: 82.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.704e-05/0.5962, allocations: 14.02 kB / 0.525 GB, free: 82.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.887e-06/0.5962, allocations: 4.25 kB / 0.525 GB, free: 82.02 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.58e-05/0.5963, allocations: 13.67 kB / 0.525 GB, free: 82.02 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.072e-06/0.5963, allocations: 2.141 kB / 0.525 GB, free: 82.02 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.5963, allocations: 1.156 kB / 0.525 GB, free: 82.02 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005659/0.5969, allocations: 248.6 kB / 0.5253 GB, free: 81.89 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001776/0.5971, allocations: 132.5 kB / 0.5254 GB, free: 81.77 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.942e-05/0.5971, allocations: 7.422 kB / 0.5254 GB, free: 81.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001301/0.5973, allocations: 10.5 kB / 0.5254 GB, free: 81.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.707e-05/0.5974, allocations: 9.328 kB / 0.5254 GB, free: 81.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-05/0.5974, allocations: 15.97 kB / 0.5254 GB, free: 81.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003041/0.5977, allocations: 193 kB / 0.5256 GB, free: 81.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5977, allocations: 0 / 0.5256 GB, free: 81.68 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004934/0.5982, allocations: 50.34 kB / 0.5257 GB, free: 81.68 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,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) * 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.002197/0.6004, allocations: 1.331 MB / 0.527 GB, free: 80.66 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006234/0.6011, allocations: 148 kB / 0.5271 GB, free: 80.65 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.6011, allocations: 1.281 kB / 0.5271 GB, free: 80.65 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001284/0.6013, allocations: 29.52 kB / 0.5271 GB, free: 80.64 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007287/0.602, allocations: 109 kB / 0.5272 GB, free: 80.63 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003385/0.6054, allocations: 3.806 MB / 0.531 GB, free: 77.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002888/0.6058, allocations: 0.7594 MB / 0.5317 GB, free: 76.71 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001999/0.606, allocations: 32.69 kB / 0.5317 GB, free: 76.71 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002076/0.6062, allocations: 68.48 kB / 0.5318 GB, free: 76.7 MB / 362.7 MB Notification: Performance of SimCode: time 1.323e-06/0.6062, allocations: 0 / 0.5318 GB, free: 76.7 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03435/0.6406, allocations: 5.033 MB / 0.5367 GB, free: 76.11 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002112/0.6408, allocations: 247.1 kB / 0.5369 GB, free: 75.86 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.626/3.267, allocations: 1.375 kB / 0.5369 GB, free: 75.86 MB / 362.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