Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample",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.002472/0.002472, 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.187/2.187, allocations: 205.2 MB / 219 MB, free: 9.203 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.001544/0.001544, allocations: 92.34 kB / 267.1 MB, free: 9.262 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.1083/0.1083, allocations: 12.58 MB / 327.7 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.661e-05/4.67e-05, allocations: 8 kB / 386.1 MB, free: 69.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09629/0.09639, allocations: 50.37 MB / 436.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4798/0.5762, allocations: 81.85 MB / 0.5062 GB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003081/0.5766, allocations: 81.94 kB / 0.5063 GB, free: 11.83 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02482/0.6014, allocations: 5.908 MB / 0.512 GB, free: 9.609 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.6015, allocations: 0 / 0.512 GB, free: 9.609 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.392e-05/0.6015, allocations: 12.03 kB / 0.512 GB, free: 9.602 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007054/0.6023, allocations: 475.4 kB / 0.5125 GB, free: 9.148 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.6023, allocations: 11.5 kB / 0.5125 GB, free: 9.148 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.65e-05/0.6024, allocations: 37.48 kB / 0.5125 GB, free: 9.105 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.365e-05/0.6025, allocations: 23.12 kB / 0.5126 GB, free: 9.094 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005148/0.603, allocations: 271.8 kB / 0.5128 GB, free: 8.852 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.573e-05/0.603, allocations: 11.14 kB / 0.5128 GB, free: 8.848 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.758e-05/0.6031, allocations: 7.719 kB / 0.5128 GB, free: 8.848 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003977/0.6035, allocations: 170.6 kB / 0.513 GB, free: 8.734 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.6035, allocations: 0 / 0.513 GB, free: 8.734 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.845e-05/0.6035, allocations: 3.844 kB / 0.513 GB, free: 8.734 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.6036, allocations: 0 / 0.513 GB, free: 8.734 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000125/0.6037, allocations: 44.48 kB / 0.513 GB, free: 8.727 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006403/0.6043, allocations: 373.1 kB / 0.5134 GB, free: 8.391 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002268/0.6046, allocations: 129.4 kB / 0.5135 GB, free: 8.285 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.6047, allocations: 60.03 kB / 0.5136 GB, free: 8.25 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.421e-05/0.6048, allocations: 3.984 kB / 0.5136 GB, free: 8.246 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001664/0.6049, allocations: 76.86 kB / 0.5137 GB, free: 8.188 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 3.075e-06/0.605, allocations: 0 / 0.5137 GB, free: 8.188 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003796/0.6054, allocations: 127.9 kB / 0.5138 GB, free: 8.129 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.675e-05/0.6054, allocations: 160.7 kB / 0.5139 GB, free: 7.941 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003746/0.6058, allocations: 241.8 kB / 0.5142 GB, free: 7.832 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.495e-05/0.6059, allocations: 25.7 kB / 0.5142 GB, free: 7.801 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.588e-05/0.606, allocations: 126 kB / 0.5143 GB, free: 7.703 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.552e-05/0.606, allocations: 22.97 kB / 0.5143 GB, free: 7.691 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.466e-06/0.606, allocations: 7.781 kB / 0.5143 GB, free: 7.688 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.343e-05/0.6061, allocations: 337.7 kB / 0.5147 GB, free: 7.363 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.809e-05/0.6062, allocations: 18.22 kB / 0.5147 GB, free: 7.363 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001055/0.6063, allocations: 82.66 kB / 0.5148 GB, free: 7.285 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.648e-05/0.6064, allocations: 30.23 kB / 0.5148 GB, free: 7.277 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.6064, allocations: 0 / 0.5148 GB, free: 7.277 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002854/0.6067, allocations: 136.4 kB / 0.5149 GB, free: 7.211 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.6068, allocations: 8.156 kB / 0.5149 GB, free: 7.207 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.6068, allocations: 3.969 kB / 0.5149 GB, free: 7.207 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.091e-05/0.6068, allocations: 3.875 kB / 0.5149 GB, free: 7.207 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/0.607, allocations: 11.69 kB / 0.5149 GB, free: 7.203 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.206e-05/0.607, allocations: 11.84 kB / 0.515 GB, free: 7.195 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001407/0.6072, allocations: 11.55 kB / 0.515 GB, free: 7.191 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/0.6072, allocations: 7.688 kB / 0.515 GB, free: 7.191 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001028/0.6073, allocations: 116 kB / 0.5151 GB, free: 7.078 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001479/0.6075, allocations: 86.38 kB / 0.5152 GB, free: 7.02 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003069/0.6078, allocations: 114.4 kB / 0.5153 GB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.721e-06/0.6078, allocations: 0 / 0.5153 GB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/0.6078, allocations: 3.938 kB / 0.5153 GB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.6078, allocations: 0 / 0.5153 GB, free: 6.969 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002588/0.6081, allocations: 240.8 kB / 0.5155 GB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.6081, allocations: 0 / 0.5155 GB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.837e-05/0.6082, allocations: 3.875 kB / 0.5155 GB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.919e-06/0.6082, allocations: 3.969 kB / 0.5155 GB, free: 6.746 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.647e-05/0.6083, allocations: 4 kB / 0.5155 GB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.312e-06/0.6083, allocations: 3.969 kB / 0.5155 GB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.6083, allocations: 0 / 0.5155 GB, free: 6.742 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000349/0.6086, allocations: 218 kB / 0.5157 GB, free: 6.578 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.6088, allocations: 115.6 kB / 0.5158 GB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.755e-05/0.6089, allocations: 7.219 kB / 0.5158 GB, free: 6.465 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001305/0.609, allocations: 7.828 kB / 0.5159 GB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.021e-05/0.6091, allocations: 11.67 kB / 0.5159 GB, free: 6.457 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.781e-05/0.6091, allocations: 7.781 kB / 0.5159 GB, free: 6.453 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002831/0.6094, allocations: 195.1 kB / 0.5161 GB, free: 6.359 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.8e-07/0.6094, allocations: 0 / 0.5161 GB, free: 6.359 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004033/0.6098, allocations: 46.67 kB / 0.5161 GB, free: 6.344 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.001652/0.6115, allocations: 1.223 MB / 0.5173 GB, free: 5.242 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000355/0.6119, allocations: 79.34 kB / 0.5174 GB, free: 5.23 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.6119, allocations: 0 / 0.5174 GB, free: 5.23 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.49e-05/0.612, allocations: 33.77 kB / 0.5174 GB, free: 5.227 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005886/0.6126, allocations: 70.47 kB / 0.5175 GB, free: 5.203 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009369/0.6136, allocations: 317.7 kB / 0.5178 GB, free: 4.988 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002176/0.6138, allocations: 0.7386 MB / 0.5185 GB, free: 4.266 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001404/0.614, allocations: 28.94 kB / 0.5185 GB, free: 4.254 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001583/0.6142, allocations: 52.64 kB / 0.5186 GB, free: 4.242 MB / 330.7 MB Notification: Performance of SimCode: time 1.172e-06/0.6142, allocations: 0 / 0.5186 GB, free: 4.242 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03006/0.6442, allocations: 4.394 MB / 0.5229 GB, free: 0.9531 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002332/0.6445, allocations: 215.9 kB / 0.5231 GB, free: 0.7266 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.555/3.199, allocations: 0 / 0.5231 GB, free: 0.7266 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_BackSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat does not exist to compare? outputFormat=mat