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.001185/0.001185, allocations: 178.6 kB / 15.81 MB, free: 6.02 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.641/1.641, allocations: 205.4 MB / 222 MB, free: 13.82 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.0008545/0.0008544, allocations: 98.22 kB / 270.3 MB, free: 13.34 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.09125/0.09125, allocations: 12.59 MB / 331.2 MB, free: 10.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000443/0.000443, allocations: 11.84 kB / 392.1 MB, free: 54.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09066/0.09112, allocations: 50.38 MB / 442.5 MB, free: 10.79 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample): time 0.001976/0.09314, allocations: 1.643 MB / 444.1 MB, free: 9.137 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001264/0.09443, allocations: 0.972 MB / 445.1 MB, free: 8.156 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001339/0.09458, allocations: 3.938 kB / 445.1 MB, free: 8.152 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005285/0.09512, allocations: 143.7 kB / 445.3 MB, free: 8.012 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000208/0.09533, allocations: 99.62 kB / 445.4 MB, free: 7.914 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004871/0.09583, allocations: 183.3 kB / 445.5 MB, free: 7.738 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001935/0.09603, allocations: 199.4 kB / 445.7 MB, free: 7.543 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000104/0.09614, allocations: 44.83 kB / 445.8 MB, free: 7.5 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.151e-05/0.09624, allocations: 79.62 kB / 445.9 MB, free: 7.422 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.504e-05/0.09634, allocations: 79.61 kB / 445.9 MB, free: 7.344 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.253e-05/0.09637, allocations: 4 kB / 445.9 MB, free: 7.34 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001034/0.09648, allocations: 43.98 kB / 446 MB, free: 7.297 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.934e-05/0.09654, allocations: 47.81 kB / 446 MB, free: 7.25 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 4.134e-05/0.09659, allocations: 53.58 kB / 446.1 MB, free: 7.191 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001767/0.09677, allocations: 175.8 kB / 446.2 MB, free: 7.02 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.09678, allocations: 0 / 446.2 MB, free: 7.02 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.09679, allocations: 4 kB / 446.3 MB, free: 7.016 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.0968, allocations: 0 / 446.3 MB, free: 7.016 MB / 282.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.0007093/0.09752, allocations: 0.5155 MB / 446.8 MB, free: 6.445 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.09757, allocations: 8.031 kB / 446.8 MB, free: 6.438 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.902e-05/0.09762, allocations: 46.55 kB / 446.8 MB, free: 6.383 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.153e-05/0.09768, allocations: 23.72 kB / 446.8 MB, free: 6.359 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002979/0.09798, allocations: 265.6 kB / 447.1 MB, free: 6.059 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.459e-05/0.09801, allocations: 20 kB / 447.1 MB, free: 6.039 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.967e-05/0.09804, allocations: 12 kB / 447.1 MB, free: 6.027 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004408/0.09849, allocations: 302.1 kB / 447.4 MB, free: 5.707 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.09851, allocations: 4 kB / 447.4 MB, free: 5.703 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/0.09853, allocations: 3.938 kB / 447.4 MB, free: 5.699 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/0.09854, allocations: 4 kB / 447.4 MB, free: 5.695 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001254/0.09867, allocations: 59.91 kB / 447.5 MB, free: 5.637 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004028/0.09908, allocations: 398.3 kB / 447.9 MB, free: 5.191 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002529/0.09935, allocations: 175.9 kB / 448.1 MB, free: 4.992 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001107/0.09947, allocations: 82.55 kB / 448.1 MB, free: 4.902 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.957e-05/0.0995, allocations: 0 / 448.1 MB, free: 4.902 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001317/0.09964, allocations: 75.39 kB / 448.2 MB, free: 4.816 MB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 1.533e-06/0.09965, allocations: 7.875 kB / 448.2 MB, free: 4.809 MB / 282.7 MB Notification: Performance of matching and sorting (n=22): time 0.000428/0.1001, allocations: 229.3 kB / 448.4 MB, free: 4.578 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.1002, allocations: 148.4 kB / 448.6 MB, free: 4.402 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001952/0.1004, allocations: 268.9 kB / 448.9 MB, free: 4.133 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.1004, allocations: 29.7 kB / 448.9 MB, free: 4.098 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.058e-05/0.1004, allocations: 116.7 kB / 449 MB, free: 3.98 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.576e-05/0.1005, allocations: 35.64 kB / 449 MB, free: 3.945 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.971e-06/0.1005, allocations: 0 / 449 MB, free: 3.945 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.268e-05/0.1005, allocations: 338.8 kB / 449.4 MB, free: 3.605 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.041e-05/0.1006, allocations: 36.45 kB / 449.4 MB, free: 3.57 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001118/0.1007, allocations: 174 kB / 449.6 MB, free: 3.34 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.99e-05/0.1008, allocations: 55.97 kB / 449.6 MB, free: 3.285 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1009, allocations: 0 / 449.6 MB, free: 3.285 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002662/0.1011, allocations: 221 kB / 449.8 MB, free: 3.062 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.49e-05/0.1011, allocations: 15.94 kB / 449.9 MB, free: 3.047 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.1012, allocations: 4 kB / 449.9 MB, free: 3.043 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.1012, allocations: 8 kB / 449.9 MB, free: 3.035 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.326e-05/0.1013, allocations: 28.45 kB / 449.9 MB, free: 3.008 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.1013, allocations: 4 kB / 449.9 MB, free: 3.004 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.772e-05/0.1014, allocations: 20.28 kB / 449.9 MB, free: 2.984 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.334e-05/0.1014, allocations: 12 kB / 449.9 MB, free: 2.973 MB / 282.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,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,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.0001072/0.1015, allocations: 172 kB / 450.1 MB, free: 2.793 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/0.1017, allocations: 125.7 kB / 450.2 MB, free: 2.664 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.553e-05/0.1017, allocations: 37.67 kB / 450.3 MB, free: 2.625 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.1017, allocations: 0 / 450.3 MB, free: 2.625 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.1017, allocations: 4 kB / 450.3 MB, free: 2.621 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.1018, allocations: 4 kB / 450.3 MB, free: 2.617 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001451/0.1019, allocations: 245.4 kB / 450.5 MB, free: 2.328 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.043e-06/0.1019, allocations: 4 kB / 450.5 MB, free: 2.324 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.488e-05/0.102, allocations: 8 kB / 450.5 MB, free: 2.316 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.102, allocations: 4 kB / 450.5 MB, free: 2.312 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.102, allocations: 4 kB / 450.5 MB, free: 2.309 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.877e-06/0.102, allocations: 15.92 kB / 450.5 MB, free: 2.293 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.102, allocations: 0 / 450.5 MB, free: 2.293 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002584/0.1023, allocations: 225.1 kB / 450.8 MB, free: 2.055 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.138e-05/0.1023, allocations: 120.8 kB / 450.9 MB, free: 1.918 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.148e-05/0.1024, allocations: 7.938 kB / 450.9 MB, free: 1.91 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.929e-05/0.1025, allocations: 8 kB / 450.9 MB, free: 1.902 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.895e-05/0.1025, allocations: 11.94 kB / 450.9 MB, free: 1.891 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.1025, allocations: 12 kB / 450.9 MB, free: 1.879 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001323/0.1027, allocations: 192.5 kB / 451.1 MB, free: 1.688 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1027, allocations: 4 kB / 451.1 MB, free: 1.684 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000266/0.1029, allocations: 44 kB / 451.2 MB, free: 1.641 MB / 282.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,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,sample.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.001236/0.1042, allocations: 1.143 MB / 452.3 MB, free: 484 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002501/0.1044, allocations: 135.7 kB / 452.4 MB, free: 348 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.1045, allocations: 0 / 452.4 MB, free: 348 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 5.7e-05/0.1045, allocations: 25.05 kB / 452.5 MB, free: 324 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004201/0.1049, allocations: 116.2 kB / 452.6 MB, free: 208 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001705/0.1067, allocations: 1.265 MB / 453.8 MB, free: 14.83 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003276/0.107, allocations: 0.7521 MB / 454.6 MB, free: 14.05 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 9.196e-05/0.1071, allocations: 30.16 kB / 454.6 MB, free: 14.02 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.537e-05/0.1072, allocations: 63.42 kB / 454.7 MB, free: 13.96 MB / 298.7 MB Notification: Performance of SimCode: time 2.81e-07/0.1072, allocations: 4.281 kB / 454.7 MB, free: 13.96 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01614/0.1234, allocations: 4.938 MB / 459.6 MB, free: 9.012 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001814/0.1236, allocations: 258.6 kB / 459.9 MB, free: 8.668 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.776/1.899, allocations: 3.938 kB / 459.9 MB, free: 8.664 MB / 298.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