Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.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.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl",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.002633/0.002632, 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.146/2.146, 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.001122/0.001122, allocations: 90.59 kB / 267.1 MB, free: 9.266 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.1111/0.1111, allocations: 12.59 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.157e-05/4.184e-05, allocations: 4 kB / 386.1 MB, free: 69.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1021, allocations: 50.37 MB / 436.5 MB, free: 19.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4341/0.5362, allocations: 79.21 MB / 0.5036 GB, free: 12.02 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002842/0.5366, allocations: 76.64 kB / 0.5037 GB, free: 12.02 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01519/0.5518, allocations: 3.459 MB / 0.5071 GB, free: 11.2 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5518, allocations: 4 kB / 0.5071 GB, free: 11.2 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.961e-05/0.5519, allocations: 3.875 kB / 0.5071 GB, free: 11.2 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0007449/0.5526, allocations: 0.4914 MB / 0.5075 GB, free: 10.75 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.579e-05/0.5527, allocations: 7.688 kB / 0.5076 GB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.179e-05/0.5527, allocations: 56.5 kB / 0.5076 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.996e-05/0.5528, allocations: 34.91 kB / 0.5076 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005376/0.5534, allocations: 300.1 kB / 0.5079 GB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.5534, allocations: 14.73 kB / 0.5079 GB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.409e-05/0.5534, allocations: 11.44 kB / 0.508 GB, free: 10.43 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000297/0.5538, allocations: 118.8 kB / 0.5081 GB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.213e-05/0.5538, allocations: 0 / 0.5081 GB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.967e-05/0.5538, allocations: 3.938 kB / 0.5081 GB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.208e-06/0.5538, allocations: 3.875 kB / 0.5081 GB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002011/0.554, allocations: 70.12 kB / 0.5081 GB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001031/0.5551, allocations: 0.5261 MB / 0.5087 GB, free: 9.996 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006755/0.5558, allocations: 163.1 kB / 0.5088 GB, free: 9.961 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001432/0.5559, allocations: 54.17 kB / 0.5089 GB, free: 9.949 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.178e-05/0.556, allocations: 4.031 kB / 0.5089 GB, free: 9.949 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.208e-05/0.556, allocations: 41.8 kB / 0.5089 GB, free: 9.902 MB / 330.7 MB Notification: Performance of pre-optimization done (n=13): time 2.565e-06/0.556, allocations: 3.938 kB / 0.5089 GB, free: 9.898 MB / 330.7 MB Notification: Performance of matching and sorting (n=16): time 0.001776/0.5578, allocations: 0.5975 MB / 0.5095 GB, free: 9.547 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.076e-05/0.5579, allocations: 55.28 kB / 0.5095 GB, free: 9.484 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004484/0.5583, allocations: 306.6 kB / 0.5098 GB, free: 9.359 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.245e-05/0.5584, allocations: 29.64 kB / 0.5099 GB, free: 9.328 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.691e-05/0.5585, allocations: 157.3 kB / 0.51 GB, free: 9.227 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.823e-05/0.5586, allocations: 65 kB / 0.5101 GB, free: 9.18 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.501e-05/0.5586, allocations: 0 / 0.5101 GB, free: 9.18 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.464e-05/0.5587, allocations: 339.5 kB / 0.5104 GB, free: 8.859 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001585/0.5588, allocations: 58.98 kB / 0.5105 GB, free: 8.855 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001541/0.559, allocations: 56.94 kB / 0.5105 GB, free: 8.855 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000183/0.5592, allocations: 63.28 kB / 0.5106 GB, free: 8.848 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.5592, allocations: 4 kB / 0.5106 GB, free: 8.844 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004628/0.5597, allocations: 208 kB / 0.5108 GB, free: 8.777 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.5597, allocations: 11.8 kB / 0.5108 GB, free: 8.773 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.5597, allocations: 0 / 0.5108 GB, free: 8.773 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.5598, allocations: 0 / 0.5108 GB, free: 8.773 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005239/0.5603, allocations: 57.28 kB / 0.5108 GB, free: 8.766 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.5603, allocations: 3.656 kB / 0.5108 GB, free: 8.766 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000264/0.5606, allocations: 10.95 kB / 0.5109 GB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.185e-05/0.5606, allocations: 11.84 kB / 0.5109 GB, free: 8.754 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 7.89e-05/0.5607, allocations: 111.4 kB / 0.511 GB, free: 8.645 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.012e-05/0.5608, allocations: 31 kB / 0.511 GB, free: 8.629 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005364/0.5613, allocations: 212 kB / 0.5112 GB, free: 8.555 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.5614, allocations: 3.984 kB / 0.5112 GB, free: 8.551 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.5614, allocations: 0 / 0.5112 GB, free: 8.551 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.5614, allocations: 0 / 0.5112 GB, free: 8.551 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004289/0.5618, allocations: 333.4 kB / 0.5115 GB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.325e-06/0.5619, allocations: 0 / 0.5115 GB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006451/0.5625, allocations: 62.05 kB / 0.5116 GB, free: 8.285 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.5625, allocations: 3.906 kB / 0.5116 GB, free: 8.285 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.902e-05/0.5626, allocations: 4 kB / 0.5116 GB, free: 8.281 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.09e-06/0.5626, allocations: 7.766 kB / 0.5116 GB, free: 8.277 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.5626, allocations: 0 / 0.5116 GB, free: 8.277 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006808/0.5633, allocations: 378.1 kB / 0.512 GB, free: 8.105 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.21e-05/0.5634, allocations: 107.9 kB / 0.5121 GB, free: 7.992 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.14e-05/0.5635, allocations: 11.83 kB / 0.5121 GB, free: 7.984 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003203/0.5638, allocations: 7.25 kB / 0.5121 GB, free: 7.984 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.368e-05/0.5639, allocations: 11.78 kB / 0.5121 GB, free: 7.977 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.249e-05/0.5639, allocations: 11.27 kB / 0.5121 GB, free: 7.973 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003336/0.5642, allocations: 243.3 kB / 0.5123 GB, free: 7.883 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5643, allocations: 0 / 0.5123 GB, free: 7.883 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003767/0.5646, allocations: 43.94 kB / 0.5124 GB, free: 7.883 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (invMixingUnit.c,invMixingUnit.T,filter.x[1],mixingUnit.c,mixingUnit.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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 Backend phase and start with SimCode phase: time 0.0009048/0.5656, allocations: 0.9142 MB / 0.5133 GB, free: 7.168 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003992/0.566, allocations: 149.2 kB / 0.5134 GB, free: 7.16 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.566, allocations: 0 / 0.5134 GB, free: 7.16 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001845/0.5662, allocations: 78.64 kB / 0.5135 GB, free: 7.152 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003686/0.5666, allocations: 38.56 kB / 0.5135 GB, free: 7.137 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001848/0.5684, allocations: 0.6603 MB / 0.5142 GB, free: 6.691 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002248/0.5687, allocations: 0.7771 MB / 0.5149 GB, free: 5.949 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.000171/0.5689, allocations: 29.34 kB / 0.515 GB, free: 5.938 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002138/0.5691, allocations: 99.08 kB / 0.5151 GB, free: 5.918 MB / 330.7 MB Notification: Performance of SimCode: time 1.152e-06/0.5691, allocations: 0 / 0.5151 GB, free: 5.918 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0355/0.6046, allocations: 5.091 MB / 0.52 GB, free: 3.34 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002483/0.6049, allocations: 219.4 kB / 0.5202 GB, free: 3.109 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.827/3.432, allocations: 0 / 0.5202 GB, free: 3.109 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl_fmu --startTime=0 --stopTime=500 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl_res.mat does not exist to compare? outputFormat=mat