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.002042/0.002047, allocations: 181 kB / 8.049 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.213/2.213, allocations: 205.3 MB / 213.8 MB, free: 1.676 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001071/0.001071, allocations: 86.62 kB / 261.8 MB, free: 1.621 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.1062/0.1062, allocations: 12.6 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.675e-05/1.674e-05, allocations: 0 / 379 MB, free: 6.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3626/0.3627, allocations: 50.36 MB / 429.4 MB, free: 18.25 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1457/0.5084, allocations: 81.09 MB / 0.4985 GB, free: 1.051 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000421/0.5089, allocations: 79.95 kB / 0.4986 GB, free: 0.9727 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02754/0.5364, allocations: 5.756 MB / 0.5042 GB, free: 11.22 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.5365, allocations: 0 / 0.5042 GB, free: 11.22 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.128e-05/0.5365, allocations: 192 / 0.5042 GB, free: 11.22 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.0007376/0.5373, allocations: 479.6 kB / 0.5047 GB, free: 10.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.768e-05/0.5374, allocations: 12.03 kB / 0.5047 GB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.851e-05/0.5374, allocations: 27.64 kB / 0.5047 GB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005688/0.538, allocations: 257.7 kB / 0.505 GB, free: 10.37 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.534e-05/0.5381, allocations: 7.953 kB / 0.505 GB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.873e-05/0.5381, allocations: 4 kB / 0.505 GB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001479/0.5383, allocations: 32 kB / 0.505 GB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003521/0.5386, allocations: 142.7 kB / 0.5051 GB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.5387, allocations: 0 / 0.5051 GB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.772e-05/0.5387, allocations: 0 / 0.5051 GB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.5387, allocations: 0 / 0.5051 GB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006242/0.5393, allocations: 342.9 kB / 0.5055 GB, free: 9.781 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002071/0.5396, allocations: 99.91 kB / 0.5056 GB, free: 9.656 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.363e-05/0.5397, allocations: 42.69 kB / 0.5056 GB, free: 9.605 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.707e-05/0.5397, allocations: 7.938 kB / 0.5056 GB, free: 9.598 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001742/0.5399, allocations: 71.33 kB / 0.5057 GB, free: 9.516 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 2.054e-06/0.5399, allocations: 0 / 0.5057 GB, free: 9.516 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004101/0.5403, allocations: 105.5 kB / 0.5058 GB, free: 9.406 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.101e-05/0.5404, allocations: 144.5 kB / 0.5059 GB, free: 9.234 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003664/0.5408, allocations: 224.5 kB / 0.5061 GB, free: 9.012 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.5409, allocations: 29.7 kB / 0.5062 GB, free: 8.977 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/0.541, allocations: 124 kB / 0.5063 GB, free: 8.852 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.03e-05/0.541, allocations: 11.89 kB / 0.5063 GB, free: 8.84 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.003e-06/0.541, allocations: 0 / 0.5063 GB, free: 8.84 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.5412, allocations: 326.8 kB / 0.5066 GB, free: 8.512 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.81e-05/0.5413, allocations: 16 kB / 0.5066 GB, free: 8.496 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001058/0.5414, allocations: 70 kB / 0.5067 GB, free: 8.406 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.57e-05/0.5415, allocations: 36.06 kB / 0.5067 GB, free: 8.371 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.5415, allocations: 3.938 kB / 0.5067 GB, free: 8.367 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002508/0.5418, allocations: 101.4 kB / 0.5068 GB, free: 8.262 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/0.5418, allocations: 8 kB / 0.5068 GB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.5418, allocations: 0 / 0.5068 GB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.5418, allocations: 4 kB / 0.5068 GB, free: 8.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001495/0.542, allocations: 15.98 kB / 0.5068 GB, free: 8.234 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.542, allocations: 4 kB / 0.5068 GB, free: 8.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001254/0.5422, allocations: 4 kB / 0.5069 GB, free: 8.227 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.565e-05/0.5422, allocations: 7.938 kB / 0.5069 GB, free: 8.219 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 () * 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.0001284/0.5423, allocations: 121 kB / 0.507 GB, free: 8.094 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002571/0.5426, allocations: 105.4 kB / 0.5071 GB, free: 7.984 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.475e-05/0.5427, allocations: 23.72 kB / 0.5071 GB, free: 7.961 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000278/0.543, allocations: 99.58 kB / 0.5072 GB, free: 7.855 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.858e-06/0.543, allocations: 7.984 kB / 0.5072 GB, free: 7.848 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.543, allocations: 0 / 0.5072 GB, free: 7.848 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.146e-06/0.543, allocations: 3.984 kB / 0.5072 GB, free: 7.844 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002526/0.5433, allocations: 202.1 kB / 0.5074 GB, free: 7.609 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.5433, allocations: 8.047 kB / 0.5074 GB, free: 7.602 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.738e-05/0.5434, allocations: 11.94 kB / 0.5074 GB, free: 7.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.5434, allocations: 0 / 0.5074 GB, free: 7.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.5434, allocations: 4 kB / 0.5074 GB, free: 7.586 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.5434, allocations: 3.938 kB / 0.5074 GB, free: 7.582 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.5434, allocations: 0 / 0.5074 GB, free: 7.582 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003061/0.5437, allocations: 181.9 kB / 0.5076 GB, free: 7.367 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001553/0.5439, allocations: 116.9 kB / 0.5077 GB, free: 7.234 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.659e-05/0.544, allocations: 7.984 kB / 0.5077 GB, free: 7.227 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.5441, allocations: 4 kB / 0.5077 GB, free: 7.223 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.502e-05/0.5442, allocations: 8 kB / 0.5077 GB, free: 7.215 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.952e-05/0.5442, allocations: 7.984 kB / 0.5077 GB, free: 7.207 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002761/0.5445, allocations: 180.5 kB / 0.5079 GB, free: 7.027 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5445, allocations: 0 / 0.5079 GB, free: 7.027 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004015/0.5449, allocations: 39.94 kB / 0.5079 GB, free: 6.988 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) * 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.001608/0.5465, allocations: 1.087 MB / 0.509 GB, free: 5.867 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002718/0.5468, allocations: 63.92 kB / 0.5091 GB, free: 5.805 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.5469, allocations: 0 / 0.5091 GB, free: 5.805 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.073e-05/0.547, allocations: 24 kB / 0.5091 GB, free: 5.781 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005339/0.5475, allocations: 56.3 kB / 0.5091 GB, free: 5.73 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009526/0.5485, allocations: 297.7 kB / 0.5094 GB, free: 5.395 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003874/0.5489, allocations: 0.7358 MB / 0.5101 GB, free: 4.633 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001314/0.549, allocations: 29.45 kB / 0.5102 GB, free: 4.605 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000134/0.5492, allocations: 51.41 kB / 0.5102 GB, free: 4.555 MB / 362.7 MB Notification: Performance of SimCode: time 1.292e-06/0.5492, allocations: 3.938 kB / 0.5102 GB, free: 4.551 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04099/0.5902, allocations: 3.679 MB / 0.5138 GB, free: 0.875 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003494/0.5906, allocations: 206.7 kB / 0.514 GB, free: 0.625 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.557/3.148, allocations: 0 / 0.514 GB, free: 0.625 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