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.002362/0.002362, allocations: 182.4 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.09/2.09, 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.001141/0.001141, allocations: 94.8 kB / 270.3 MB, free: 13.35 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.09661/0.09661, allocations: 12.59 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005688/0.0005687, allocations: 15.69 kB / 392.1 MB, free: 54.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09374/0.09436, allocations: 50.37 MB / 442.5 MB, free: 10.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1514/0.2458, allocations: 81.94 MB / 0.5121 GB, free: 8.801 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003914/0.2463, allocations: 91.89 kB / 0.5122 GB, free: 8.711 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02734/0.2736, allocations: 5.932 MB / 0.518 GB, free: 2.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2737, allocations: 0 / 0.518 GB, free: 2.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.892e-05/0.2737, allocations: 4 kB / 0.518 GB, free: 2.766 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009541/0.2747, allocations: 0.508 MB / 0.5185 GB, free: 2.203 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/0.2748, allocations: 8.031 kB / 0.5185 GB, free: 2.195 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.259e-05/0.2748, allocations: 38.56 kB / 0.5185 GB, free: 2.148 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.624e-05/0.2749, allocations: 27.7 kB / 0.5186 GB, free: 2.121 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005574/0.2755, allocations: 265.6 kB / 0.5188 GB, free: 1.824 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.505e-05/0.2755, allocations: 11.95 kB / 0.5188 GB, free: 1.812 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.6e-05/0.2756, allocations: 4 kB / 0.5188 GB, free: 1.809 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004643/0.276, allocations: 175.5 kB / 0.519 GB, free: 1.609 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.2761, allocations: 0 / 0.519 GB, free: 1.609 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.995e-05/0.2761, allocations: 4 kB / 0.519 GB, free: 1.605 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.2761, allocations: 0 / 0.519 GB, free: 1.605 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001711/0.2763, allocations: 47.91 kB / 0.5191 GB, free: 1.559 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006778/0.277, allocations: 375.6 kB / 0.5194 GB, free: 1.133 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000353/0.2774, allocations: 138.5 kB / 0.5195 GB, free: 0.9609 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.398e-05/0.2774, allocations: 12.12 kB / 0.5196 GB, free: 0.9492 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002047/0.2776, allocations: 71.33 kB / 0.5196 GB, free: 0.8672 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.974e-06/0.2776, allocations: 0 / 0.5196 GB, free: 0.8672 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0006078/0.2783, allocations: 161.6 kB / 0.5198 GB, free: 0.7031 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001223/0.2784, allocations: 170.2 kB / 0.5199 GB, free: 0.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004374/0.2788, allocations: 244.1 kB / 0.5202 GB, free: 260 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.79e-05/0.2789, allocations: 29.7 kB / 0.5202 GB, free: 224 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.279, allocations: 120.3 kB / 0.5203 GB, free: 96 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.729e-05/0.2791, allocations: 23.72 kB / 0.5203 GB, free: 72 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.556e-06/0.2791, allocations: 0 / 0.5203 GB, free: 72 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.2783/0.5574, allocations: 333.2 kB / 0.5207 GB, free: 83.63 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001846/0.5577, allocations: 21.23 kB / 0.5207 GB, free: 83.63 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001539/0.5578, allocations: 87.11 kB / 0.5208 GB, free: 83.56 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001251/0.558, allocations: 32.48 kB / 0.5208 GB, free: 83.56 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.558, allocations: 0 / 0.5208 GB, free: 83.56 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004216/0.5584, allocations: 134.1 kB / 0.5209 GB, free: 83.53 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.303e-05/0.5585, allocations: 5.469 kB / 0.5209 GB, free: 83.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.5585, allocations: 4.562 kB / 0.5209 GB, free: 83.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.474e-05/0.5585, allocations: 0 / 0.5209 GB, free: 83.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.5587, allocations: 21.67 kB / 0.521 GB, free: 83.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.11e-05/0.5587, allocations: 5.359 kB / 0.521 GB, free: 83.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001421/0.5588, allocations: 10 kB / 0.521 GB, free: 83.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.561e-05/0.5589, allocations: 8.594 kB / 0.521 GB, free: 83.53 MB / 362.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 () * Number of clocked 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.000197/0.5591, allocations: 143.4 kB / 0.5211 GB, free: 83.41 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001434/0.5592, allocations: 76.02 kB / 0.5212 GB, free: 83.38 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000369/0.5596, allocations: 126.1 kB / 0.5213 GB, free: 83.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.672e-06/0.5596, allocations: 1.219 kB / 0.5213 GB, free: 83.33 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.5596, allocations: 0.9688 kB / 0.5213 GB, free: 83.33 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.5597, allocations: 1.062 kB / 0.5213 GB, free: 83.33 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002916/0.56, allocations: 236.9 kB / 0.5215 GB, free: 83.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.56, allocations: 1.562 kB / 0.5215 GB, free: 83.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.174e-05/0.5601, allocations: 7.469 kB / 0.5215 GB, free: 83.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.083e-06/0.5601, allocations: 11.02 kB / 0.5216 GB, free: 83.14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.67e-05/0.5601, allocations: 5.438 kB / 0.5216 GB, free: 83.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/0.5601, allocations: 6.016 kB / 0.5216 GB, free: 83.14 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.5601, allocations: 1.031 kB / 0.5216 GB, free: 83.14 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003828/0.5605, allocations: 215.8 kB / 0.5218 GB, free: 83 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001376/0.5607, allocations: 116.9 kB / 0.5219 GB, free: 82.89 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.682e-05/0.5607, allocations: 4.062 kB / 0.5219 GB, free: 82.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001195/0.5609, allocations: 11 kB / 0.5219 GB, free: 82.89 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.699e-05/0.5609, allocations: 5.953 kB / 0.5219 GB, free: 82.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.074e-05/0.561, allocations: 9.562 kB / 0.5219 GB, free: 82.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003234/0.5613, allocations: 195.5 kB / 0.5221 GB, free: 82.82 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5613, allocations: 0 / 0.5221 GB, free: 82.82 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004242/0.5617, allocations: 41.16 kB / 0.5221 GB, free: 82.81 MB / 362.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) * Number of clocked states: 0 () * 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.001901/0.5637, allocations: 1.286 MB / 0.5234 GB, free: 81.74 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004516/0.5642, allocations: 82.2 kB / 0.5235 GB, free: 81.74 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.5642, allocations: 1.5 kB / 0.5235 GB, free: 81.74 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001243/0.5643, allocations: 30.53 kB / 0.5235 GB, free: 81.74 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006251/0.565, allocations: 82.73 kB / 0.5236 GB, free: 81.73 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00244/0.5674, allocations: 1.929 MB / 0.5255 GB, free: 80.29 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/0.5677, allocations: 0.7387 MB / 0.5262 GB, free: 79.59 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001652/0.5679, allocations: 28.22 kB / 0.5262 GB, free: 79.59 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001338/0.568, allocations: 52.94 kB / 0.5263 GB, free: 79.58 MB / 362.7 MB Notification: Performance of SimCode: time 1.503e-06/0.5681, allocations: 5.094 kB / 0.5263 GB, free: 79.57 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02817/0.5962, allocations: 4.455 MB / 0.5306 GB, free: 78.98 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002337/0.5965, allocations: 237.2 kB / 0.5308 GB, free: 78.75 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.525/3.121, allocations: 2.078 kB / 0.5308 GB, free: 78.75 MB / 362.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