Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001152/0.001152, allocations: 179.9 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 223.2 MB / 240.3 MB, free: 10.17 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 92.2 kB / 291.5 MB, free: 10.69 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003027/0.0003027, allocations: 11.98 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.318/0.3183, allocations: 50.41 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1066/0.425, allocations: 81.05 MB / 482.6 MB, free: 15.37 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002515/0.4253, allocations: 83.95 kB / 482.7 MB, free: 15.29 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01614/0.4414, allocations: 5.98 MB / 488.7 MB, free: 9.32 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.364e-06/0.4415, allocations: 0 / 488.7 MB, free: 9.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.961e-05/0.4415, allocations: 4 kB / 488.7 MB, free: 9.316 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.0006933/0.4422, allocations: 0.5002 MB / 489.2 MB, free: 8.762 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.383e-05/0.4423, allocations: 8.031 kB / 489.2 MB, free: 8.754 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.728e-05/0.4423, allocations: 42.55 kB / 489.2 MB, free: 8.703 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.79e-05/0.4424, allocations: 19.72 kB / 489.3 MB, free: 8.684 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003835/0.4428, allocations: 261.7 kB / 489.5 MB, free: 8.387 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.772e-05/0.4428, allocations: 8 kB / 489.5 MB, free: 8.379 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.912e-05/0.4428, allocations: 8 kB / 489.5 MB, free: 8.371 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003139/0.4432, allocations: 150.6 kB / 489.7 MB, free: 8.199 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.4432, allocations: 0 / 489.7 MB, free: 8.199 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.526e-05/0.4432, allocations: 7.953 kB / 489.7 MB, free: 8.191 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.094e-06/0.4432, allocations: 4 kB / 489.7 MB, free: 8.188 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001041/0.4433, allocations: 31.98 kB / 489.7 MB, free: 8.156 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004887/0.4438, allocations: 370.4 kB / 490.1 MB, free: 7.738 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002165/0.444, allocations: 116.1 kB / 490.2 MB, free: 7.598 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.629e-05/0.4441, allocations: 7.938 kB / 490.2 MB, free: 7.59 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001379/0.4442, allocations: 83.45 kB / 490.3 MB, free: 7.496 MB / 362.7 MB Notification: Performance of pre-optimization done (n=9): time 1.533e-06/0.4442, allocations: 0 / 490.3 MB, free: 7.496 MB / 362.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003407/0.4446, allocations: 141.4 kB / 490.4 MB, free: 7.352 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.154e-05/0.4447, allocations: 136.5 kB / 490.6 MB, free: 7.188 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000254/0.4449, allocations: 244 kB / 490.8 MB, free: 6.941 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.445, allocations: 25.95 kB / 490.8 MB, free: 6.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.309e-05/0.445, allocations: 120.1 kB / 490.9 MB, free: 6.789 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.426e-05/0.4451, allocations: 15.81 kB / 491 MB, free: 6.773 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.428e-06/0.4451, allocations: 3.938 kB / 491 MB, free: 6.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.4452, allocations: 330.8 kB / 491.3 MB, free: 6.438 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.139e-05/0.4453, allocations: 23.94 kB / 491.3 MB, free: 6.414 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.307e-05/0.4454, allocations: 69.98 kB / 491.4 MB, free: 6.324 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.494e-05/0.4454, allocations: 28 kB / 491.4 MB, free: 6.297 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.4455, allocations: 0 / 491.4 MB, free: 6.297 MB / 362.7 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001932/0.4457, allocations: 113.4 kB / 491.5 MB, free: 6.18 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.4457, allocations: 11.95 kB / 491.5 MB, free: 6.168 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.4457, allocations: 4.156 kB / 491.5 MB, free: 6.164 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.4457, allocations: 4 kB / 491.5 MB, free: 6.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.021e-05/0.4458, allocations: 11.98 kB / 491.5 MB, free: 6.148 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.4458, allocations: 7.938 kB / 491.6 MB, free: 6.141 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.902e-05/0.4459, allocations: 8 kB / 491.6 MB, free: 6.133 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.072e-05/0.4459, allocations: 4 kB / 491.6 MB, free: 6.129 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,sample1.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,shiftSample1.u,sample1.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.0001203/0.446, allocations: 141.8 kB / 491.7 MB, free: 5.98 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.019e-05/0.4461, allocations: 69.34 kB / 491.8 MB, free: 5.906 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002398/0.4464, allocations: 123.2 kB / 491.9 MB, free: 5.777 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.4464, allocations: 0 / 491.9 MB, free: 5.777 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.4464, allocations: 4 kB / 491.9 MB, free: 5.773 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.4464, allocations: 0 / 491.9 MB, free: 5.773 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001971/0.4466, allocations: 233.6 kB / 492.1 MB, free: 5.496 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.4466, allocations: 3.984 kB / 492.1 MB, free: 5.492 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.228e-05/0.4466, allocations: 7.938 kB / 492.1 MB, free: 5.484 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.4467, allocations: 4 kB / 492.1 MB, free: 5.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.039e-05/0.4467, allocations: 0 / 492.1 MB, free: 5.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.888e-06/0.4467, allocations: 8.016 kB / 492.1 MB, free: 5.473 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.4467, allocations: 4 kB / 492.2 MB, free: 5.469 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002453/0.4469, allocations: 178 kB / 492.3 MB, free: 5.258 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.4471, allocations: 121.1 kB / 492.4 MB, free: 5.121 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.092e-05/0.4471, allocations: 8 kB / 492.5 MB, free: 5.113 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.711e-05/0.4472, allocations: 12 kB / 492.5 MB, free: 5.102 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.941e-05/0.4472, allocations: 3.984 kB / 492.5 MB, free: 5.098 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-06/0.4472, allocations: 7.938 kB / 492.5 MB, free: 5.09 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001833/0.4474, allocations: 196.5 kB / 492.7 MB, free: 4.895 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4474, allocations: 0 / 492.7 MB, free: 4.895 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002546/0.4477, allocations: 32 kB / 492.7 MB, free: 4.863 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,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,shiftSample1.y,sample1.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.001391/0.4491, allocations: 1.179 MB / 493.9 MB, free: 3.812 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002285/0.4493, allocations: 79.84 kB / 494 MB, free: 3.734 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4493, allocations: 0 / 494 MB, free: 3.734 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.725e-05/0.4494, allocations: 31.98 kB / 494 MB, free: 3.703 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003374/0.4498, allocations: 59.09 kB / 494 MB, free: 3.648 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001558/0.4513, allocations: 1.573 MB / 495.6 MB, free: 1.988 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002651/0.4516, allocations: 0.736 MB / 496.4 MB, free: 1.227 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.175e-05/0.4517, allocations: 33.67 kB / 496.4 MB, free: 1.191 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.139e-05/0.4518, allocations: 47.36 kB / 496.4 MB, free: 1.145 MB / 362.7 MB Notification: Performance of SimCode: time 3.51e-07/0.4518, allocations: 4 kB / 496.4 MB, free: 1.141 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01663/0.4684, allocations: 4.129 MB / 0.4888 GB, free: 13.2 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000235/0.4687, allocations: 235.4 kB / 0.4891 GB, free: 12.96 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.844/2.313, allocations: 0 / 0.4891 GB, free: 12.96 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat