Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.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.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",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.00135/0.00135, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 221.5 MB / 230.3 MB, free: 7.57 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008538/0.0008538, allocations: 100.8 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.732e-05/1.735e-05, allocations: 8 kB / 337.1 MB, free: 9.953 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1054, allocations: 50.42 MB / 387.6 MB, free: 7.488 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3401/0.4455, allocations: 78.26 MB / 465.8 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002599/0.4459, allocations: 67.97 kB / 465.9 MB, free: 440 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01117/0.457, allocations: 3.652 MB / 469.5 MB, free: 12.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.4571, allocations: 4 kB / 469.5 MB, free: 12.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.541e-05/0.4571, allocations: 4 kB / 469.5 MB, free: 12.76 MB / 346.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.0006047/0.4577, allocations: 0.5065 MB / 470 MB, free: 12.21 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.187e-05/0.4578, allocations: 8.031 kB / 470 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.94e-05/0.4579, allocations: 47.56 kB / 470.1 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004341/0.4583, allocations: 308.1 kB / 470.4 MB, free: 11.81 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.277e-05/0.4583, allocations: 4 kB / 470.4 MB, free: 11.81 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.177e-05/0.4584, allocations: 8 kB / 470.4 MB, free: 11.8 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001925/0.4586, allocations: 80.55 kB / 470.5 MB, free: 11.72 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005584/0.4591, allocations: 324.6 kB / 470.8 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.4592, allocations: 3.953 kB / 470.8 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.071e-05/0.4592, allocations: 3.938 kB / 470.8 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.4592, allocations: 4 kB / 470.8 MB, free: 11.37 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006932/0.4599, allocations: 498.1 kB / 471.3 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006871/0.4606, allocations: 292.2 kB / 471.6 MB, free: 10.53 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001943/0.4608, allocations: 123.2 kB / 471.7 MB, free: 10.4 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.748e-05/0.4609, allocations: 7.922 kB / 471.7 MB, free: 10.39 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.4609, allocations: 42.92 kB / 471.8 MB, free: 10.34 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.814e-06/0.4609, allocations: 4.75 kB / 471.8 MB, free: 10.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.00191/0.4628, allocations: 1.068 MB / 472.8 MB, free: 9.18 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/0.463, allocations: 126.8 kB / 473 MB, free: 9.031 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003135/0.4633, allocations: 277.2 kB / 473.2 MB, free: 8.758 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.583e-05/0.4633, allocations: 29.7 kB / 473.3 MB, free: 8.723 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.844e-05/0.4634, allocations: 144.8 kB / 473.4 MB, free: 8.578 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.608e-05/0.4635, allocations: 43.53 kB / 473.4 MB, free: 8.535 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.256e-06/0.4635, allocations: 3.938 kB / 473.4 MB, free: 8.531 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.4636, allocations: 354.7 kB / 473.8 MB, free: 8.176 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.782e-05/0.4637, allocations: 48.88 kB / 473.8 MB, free: 8.129 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002053/0.4639, allocations: 273.5 kB / 474.1 MB, free: 7.754 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001413/0.4641, allocations: 100.8 kB / 474.2 MB, free: 7.656 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4641, allocations: 0 / 474.2 MB, free: 7.656 MB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004463/0.4645, allocations: 324.6 kB / 474.5 MB, free: 7.332 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.4646, allocations: 9 kB / 474.5 MB, free: 7.324 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.438e-05/0.4646, allocations: 8 kB / 474.5 MB, free: 7.316 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.401e-05/0.4646, allocations: 16 kB / 474.5 MB, free: 7.301 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002594/0.4649, allocations: 83.84 kB / 474.6 MB, free: 7.219 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.649e-05/0.4649, allocations: 15.92 kB / 474.6 MB, free: 7.203 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001966/0.4651, allocations: 15.94 kB / 474.7 MB, free: 7.188 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.612e-05/0.4652, allocations: 20 kB / 474.7 MB, free: 7.168 MB / 346.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 8.788e-05/0.4653, allocations: 124.8 kB / 474.8 MB, free: 7.039 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004537/0.4657, allocations: 288.9 kB / 475.1 MB, free: 6.75 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.883e-05/0.4658, allocations: 35.66 kB / 475.1 MB, free: 6.715 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005325/0.4663, allocations: 324.8 kB / 475.4 MB, free: 6.391 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.4664, allocations: 4 kB / 475.4 MB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.4664, allocations: 0 / 475.4 MB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.4664, allocations: 4 kB / 475.4 MB, free: 6.383 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003082/0.4667, allocations: 269.9 kB / 475.7 MB, free: 6.082 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.4667, allocations: 4 kB / 475.7 MB, free: 6.078 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005323/0.4672, allocations: 131.8 kB / 475.8 MB, free: 5.949 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.4673, allocations: 0 / 475.8 MB, free: 5.949 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.288e-05/0.4673, allocations: 11.92 kB / 475.9 MB, free: 5.938 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.4673, allocations: 0 / 475.9 MB, free: 5.938 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.4673, allocations: 4 kB / 475.9 MB, free: 5.934 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007087/0.468, allocations: 0.6465 MB / 476.5 MB, free: 5.254 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.605e-05/0.4681, allocations: 124.6 kB / 476.6 MB, free: 5.113 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.226e-05/0.4682, allocations: 8 kB / 476.6 MB, free: 5.105 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002555/0.4684, allocations: 4 kB / 476.6 MB, free: 5.102 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.83e-05/0.4685, allocations: 3.984 kB / 476.6 MB, free: 5.098 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.336e-05/0.4685, allocations: 8 kB / 476.6 MB, free: 5.09 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002267/0.4688, allocations: 228.6 kB / 476.9 MB, free: 4.863 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4688, allocations: 3.938 kB / 476.9 MB, free: 4.859 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004283/0.4692, allocations: 56.06 kB / 476.9 MB, free: 4.805 MB / 346.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.001001/0.4702, allocations: 1.335 MB / 478.3 MB, free: 3.434 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003524/0.4706, allocations: 231.7 kB / 478.5 MB, free: 3.207 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4706, allocations: 2.125 kB / 478.5 MB, free: 3.207 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.985e-05/0.4706, allocations: 20 kB / 478.5 MB, free: 3.188 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005275/0.4712, allocations: 172.4 kB / 478.7 MB, free: 3.02 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001363/0.4725, allocations: 0.6114 MB / 479.3 MB, free: 2.363 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003595/0.4729, allocations: 0.8112 MB / 480.1 MB, free: 1.523 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.709e-05/0.473, allocations: 31.28 kB / 480.1 MB, free: 1.496 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001646/0.4732, allocations: 115.4 kB / 480.2 MB, free: 1.383 MB / 346.7 MB Notification: Performance of SimCode: time 6.61e-07/0.4732, allocations: 0 / 480.2 MB, free: 1.383 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02491/0.4981, allocations: 5.697 MB / 485.9 MB, free: 11.71 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000175/0.4983, allocations: 151 kB / 486.1 MB, free: 11.52 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.981/2.48, allocations: 0 / 486.1 MB, free: 11.52 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat does not exist to compare? outputFormat=mat