Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.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.ControlledMixingUnit,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_ControlledMixingUnit",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.001534/0.001534, allocations: 177.7 kB / 8.045 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.256/2.256, allocations: 205.3 MB / 213.8 MB, free: 13.77 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.00122/0.00122, allocations: 95.47 kB / 261.8 MB, free: 13.45 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.1057/0.1057, allocations: 12.58 MB / 322.3 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.393e-05/2.405e-05, allocations: 0 / 379 MB, free: 75.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09934/0.09941, allocations: 50.38 MB / 429.4 MB, free: 24.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4617/0.5611, allocations: 79.32 MB / 0.4968 GB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/0.5615, allocations: 75.66 kB / 0.4969 GB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01634/0.5778, allocations: 3.64 MB / 0.5004 GB, free: 11.13 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.5779, allocations: 0 / 0.5004 GB, free: 11.13 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.489e-05/0.5779, allocations: 3.938 kB / 0.5004 GB, free: 11.13 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0009024/0.5788, allocations: 0.5132 MB / 0.5009 GB, free: 10.7 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/0.5789, allocations: 15.41 kB / 0.5009 GB, free: 10.7 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001016/0.579, allocations: 31 kB / 0.501 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005367/0.5796, allocations: 303.7 kB / 0.5013 GB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.5796, allocations: 3.812 kB / 0.5013 GB, free: 10.45 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.522e-05/0.5797, allocations: 18.2 kB / 0.5013 GB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000292/0.58, allocations: 80.7 kB / 0.5014 GB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006954/0.5807, allocations: 324.8 kB / 0.5017 GB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.5807, allocations: 0 / 0.5017 GB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.247e-05/0.5807, allocations: 3.75 kB / 0.5017 GB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.5808, allocations: 3.844 kB / 0.5017 GB, free: 10.32 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00094/0.5817, allocations: 499.2 kB / 0.5022 GB, free: 9.988 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009535/0.5827, allocations: 296.6 kB / 0.5024 GB, free: 9.898 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002564/0.583, allocations: 120.4 kB / 0.5026 GB, free: 9.875 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.032e-05/0.5831, allocations: 3.812 kB / 0.5026 GB, free: 9.875 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.95e-05/0.5831, allocations: 42.22 kB / 0.5026 GB, free: 9.832 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 3.487e-06/0.5831, allocations: 0 / 0.5026 GB, free: 9.832 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.002728/0.5859, allocations: 1.07 MB / 0.5036 GB, free: 9.27 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.722e-05/0.586, allocations: 133 kB / 0.5038 GB, free: 9.133 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004188/0.5864, allocations: 289 kB / 0.504 GB, free: 9.031 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.857e-05/0.5865, allocations: 25.7 kB / 0.5041 GB, free: 9 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.617e-05/0.5866, allocations: 142.8 kB / 0.5042 GB, free: 8.914 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.171e-05/0.5866, allocations: 45.48 kB / 0.5043 GB, free: 8.895 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.338e-05/0.5867, allocations: 0 / 0.5043 GB, free: 8.895 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.832e-05/0.5868, allocations: 349.4 kB / 0.5046 GB, free: 8.582 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001251/0.5869, allocations: 53.78 kB / 0.5046 GB, free: 8.578 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002302/0.5871, allocations: 264.8 kB / 0.5049 GB, free: 8.293 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002164/0.5874, allocations: 110.4 kB / 0.505 GB, free: 8.273 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/0.5874, allocations: 3.812 kB / 0.505 GB, free: 8.273 MB / 330.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007318/0.5881, allocations: 316 kB / 0.5053 GB, free: 8.184 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.393e-05/0.5882, allocations: 10.12 kB / 0.5053 GB, free: 8.184 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/0.5882, allocations: 7.406 kB / 0.5053 GB, free: 8.184 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.031e-05/0.5882, allocations: 15.72 kB / 0.5053 GB, free: 8.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004773/0.5887, allocations: 85.67 kB / 0.5054 GB, free: 8.172 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.627e-05/0.5888, allocations: 18.2 kB / 0.5054 GB, free: 8.168 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003655/0.5891, allocations: 11.78 kB / 0.5054 GB, free: 8.164 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.565e-05/0.5892, allocations: 29.19 kB / 0.5055 GB, free: 8.16 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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.0001436/0.5893, allocations: 123.7 kB / 0.5056 GB, free: 8.039 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007017/0.59, allocations: 300 kB / 0.5059 GB, free: 7.969 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000101/0.5902, allocations: 39.06 kB / 0.5059 GB, free: 7.945 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008064/0.591, allocations: 325.7 kB / 0.5062 GB, free: 7.887 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/0.591, allocations: 4.469 kB / 0.5062 GB, free: 7.887 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.591, allocations: 3.953 kB / 0.5062 GB, free: 7.883 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.591, allocations: 6.219 kB / 0.5062 GB, free: 7.883 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004438/0.5915, allocations: 263.8 kB / 0.5065 GB, free: 7.727 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.5915, allocations: 0 / 0.5065 GB, free: 7.727 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001071/0.5926, allocations: 123.1 kB / 0.5066 GB, free: 7.719 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.119e-05/0.5926, allocations: 7.75 kB / 0.5066 GB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.814e-05/0.5927, allocations: 2.391 kB / 0.5066 GB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.5927, allocations: 3.562 kB / 0.5066 GB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/0.5927, allocations: 0 / 0.5066 GB, free: 7.715 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001142/0.5939, allocations: 0.6536 MB / 0.5073 GB, free: 7.43 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001269/0.594, allocations: 118.9 kB / 0.5074 GB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.745e-05/0.5941, allocations: 6.281 kB / 0.5074 GB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004321/0.5946, allocations: 10.06 kB / 0.5074 GB, free: 7.309 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.294e-05/0.5946, allocations: 8.875 kB / 0.5074 GB, free: 7.309 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.272e-05/0.5947, allocations: 11 kB / 0.5074 GB, free: 7.309 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003171/0.595, allocations: 230.1 kB / 0.5076 GB, free: 7.23 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.595, allocations: 0 / 0.5076 GB, free: 7.23 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006362/0.5956, allocations: 50.31 kB / 0.5077 GB, free: 7.227 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mixingUnit.c,mixingUnit.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 41 * 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.001381/0.597, allocations: 1.346 MB / 0.509 GB, free: 6.262 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006081/0.5977, allocations: 233.9 kB / 0.5092 GB, free: 6.23 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.5977, allocations: 2.125 kB / 0.5092 GB, free: 6.23 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.282e-05/0.5978, allocations: 21.62 kB / 0.5092 GB, free: 6.227 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008583/0.5987, allocations: 173.9 kB / 0.5094 GB, free: 6.195 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00207/0.6007, allocations: 0.606 MB / 0.51 GB, free: 5.832 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000294/0.6011, allocations: 0.8131 MB / 0.5108 GB, free: 5.074 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001722/0.6013, allocations: 34.03 kB / 0.5108 GB, free: 5.059 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002402/0.6015, allocations: 113.5 kB / 0.5109 GB, free: 5.039 MB / 330.7 MB Notification: Performance of SimCode: time 1.263e-06/0.6015, allocations: 0 / 0.5109 GB, free: 5.039 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04896/0.6505, allocations: 5.719 MB / 0.5165 GB, free: 2.383 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002277/0.6508, allocations: 150.2 kB / 0.5167 GB, free: 2.195 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.725/3.376, allocations: 0 / 0.5167 GB, free: 2.195 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_ControlledMixingUnit_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_ControlledMixingUnit.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit_res.mat does not exist to compare? outputFormat=mat