Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.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.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample",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.001491/0.001491, allocations: 179.7 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.012/2.012, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001166, allocations: 90.86 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.09656/0.09656, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005515/0.0005516, allocations: 13.62 kB / 392.1 MB, free: 54.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09329/0.09389, allocations: 50.37 MB / 442.5 MB, free: 10.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1474/0.2413, allocations: 81.84 MB / 0.512 GB, free: 8.875 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003379/0.2417, allocations: 83.95 kB / 0.5121 GB, free: 8.793 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02716/0.2689, allocations: 5.8 MB / 0.5178 GB, free: 2.984 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.269, allocations: 0 / 0.5178 GB, free: 2.984 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.18e-05/0.269, allocations: 8 kB / 0.5178 GB, free: 2.977 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009227/0.2699, allocations: 0.5118 MB / 0.5183 GB, free: 2.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.27, allocations: 8.031 kB / 0.5183 GB, free: 2.402 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.63e-05/0.2701, allocations: 42.55 kB / 0.5183 GB, free: 2.352 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.744e-05/0.2702, allocations: 15.81 kB / 0.5183 GB, free: 2.336 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005485/0.2707, allocations: 261.6 kB / 0.5186 GB, free: 2.043 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.283e-05/0.2708, allocations: 7.953 kB / 0.5186 GB, free: 2.035 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.646e-05/0.2708, allocations: 15.92 kB / 0.5186 GB, free: 2.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004456/0.2713, allocations: 148.4 kB / 0.5188 GB, free: 1.852 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.2713, allocations: 0 / 0.5188 GB, free: 1.852 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.2713, allocations: 4 kB / 0.5188 GB, free: 1.848 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.2713, allocations: 0 / 0.5188 GB, free: 1.848 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001537/0.2715, allocations: 35.97 kB / 0.5188 GB, free: 1.812 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007033/0.2722, allocations: 366.4 kB / 0.5191 GB, free: 1.398 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003357/0.2726, allocations: 120.2 kB / 0.5193 GB, free: 1.254 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.337e-05/0.2726, allocations: 0 / 0.5193 GB, free: 1.254 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002154/0.2728, allocations: 83.45 kB / 0.5193 GB, free: 1.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 2.094e-06/0.2728, allocations: 0 / 0.5193 GB, free: 1.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005629/0.2734, allocations: 145.5 kB / 0.5195 GB, free: 1.012 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001085/0.2735, allocations: 136.5 kB / 0.5196 GB, free: 0.8477 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004348/0.274, allocations: 240.2 kB / 0.5198 GB, free: 0.6055 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.664e-05/0.274, allocations: 25.7 kB / 0.5199 GB, free: 0.5742 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.2741, allocations: 120.1 kB / 0.52 GB, free: 464 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.739e-05/0.2742, allocations: 15.81 kB / 0.52 GB, free: 448 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.036e-05/0.2742, allocations: 0 / 0.52 GB, free: 448 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.2744, allocations: 338.7 kB / 0.5203 GB, free: 100 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.2745, allocations: 23.98 kB / 0.5203 GB, free: 76 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2823/0.5568, allocations: 66.66 kB / 0.5204 GB, free: 84.03 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002567/0.5571, allocations: 22.72 kB / 0.5204 GB, free: 84.03 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.5571, allocations: 4.125 kB / 0.5204 GB, free: 84.03 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003811/0.5575, allocations: 121.4 kB / 0.5205 GB, free: 84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.5576, allocations: 6.438 kB / 0.5205 GB, free: 84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.5576, allocations: 1.75 kB / 0.5205 GB, free: 84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.217e-05/0.5576, allocations: 3.5 kB / 0.5205 GB, free: 84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.5578, allocations: 13.92 kB / 0.5206 GB, free: 84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.567e-06/0.5578, allocations: 6.312 kB / 0.5206 GB, free: 84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001247/0.5579, allocations: 12.09 kB / 0.5206 GB, free: 84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.48e-05/0.5579, allocations: 3.5 kB / 0.5206 GB, free: 84 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,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 (11): * Single equations (assignments): 11 * 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.0001788/0.5581, allocations: 149.1 kB / 0.5207 GB, free: 83.88 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001123/0.5582, allocations: 59.27 kB / 0.5208 GB, free: 83.85 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003494/0.5586, allocations: 114.8 kB / 0.5209 GB, free: 83.81 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.5586, allocations: 1.438 kB / 0.5209 GB, free: 83.81 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.5586, allocations: 8.672 kB / 0.5209 GB, free: 83.81 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.5587, allocations: 3.969 kB / 0.5209 GB, free: 83.81 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002411/0.5589, allocations: 229.2 kB / 0.5211 GB, free: 83.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.165e-06/0.5589, allocations: 0 / 0.5211 GB, free: 83.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.104e-05/0.559, allocations: 6.469 kB / 0.5211 GB, free: 83.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.559, allocations: 1.562 kB / 0.5211 GB, free: 83.62 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.776e-05/0.559, allocations: 7.922 kB / 0.5211 GB, free: 83.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.559, allocations: 5.719 kB / 0.5211 GB, free: 83.62 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.5591, allocations: 3.953 kB / 0.5211 GB, free: 83.62 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003443/0.5594, allocations: 187 kB / 0.5213 GB, free: 83.5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001193/0.5595, allocations: 115.3 kB / 0.5214 GB, free: 83.4 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.442e-05/0.5596, allocations: 6.172 kB / 0.5214 GB, free: 83.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001075/0.5597, allocations: 10.16 kB / 0.5215 GB, free: 83.4 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.921e-05/0.5598, allocations: 7.922 kB / 0.5215 GB, free: 83.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.5598, allocations: 2.531 kB / 0.5215 GB, free: 83.4 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002678/0.5601, allocations: 193.3 kB / 0.5216 GB, free: 83.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5601, allocations: 0 / 0.5216 GB, free: 83.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003577/0.5605, allocations: 37.23 kB / 0.5217 GB, free: 83.32 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: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,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 (10): * Single equations (assignments): 8 * 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.001638/0.5621, allocations: 1.184 MB / 0.5228 GB, free: 82.34 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003369/0.5625, allocations: 78.05 kB / 0.5229 GB, free: 82.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.5625, allocations: 480 / 0.5229 GB, free: 82.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001102/0.5626, allocations: 32.33 kB / 0.5229 GB, free: 82.34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005009/0.5631, allocations: 53.44 kB / 0.523 GB, free: 82.34 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.5653, allocations: 1.569 MB / 0.5245 GB, free: 81.24 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002385/0.5656, allocations: 0.7385 MB / 0.5252 GB, free: 80.54 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000157/0.5658, allocations: 25.98 kB / 0.5253 GB, free: 80.54 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.5659, allocations: 51.72 kB / 0.5253 GB, free: 80.53 MB / 362.7 MB Notification: Performance of SimCode: time 1.062e-06/0.5659, allocations: 0 / 0.5253 GB, free: 80.53 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03335/0.5993, allocations: 4.156 MB / 0.5294 GB, free: 79.97 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002397/0.5996, allocations: 242.2 kB / 0.5296 GB, free: 79.69 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.534/3.134, allocations: 0 / 0.5296 GB, free: 79.69 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat