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.001177/0.001177, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.294/1.294, allocations: 221.4 MB / 235.5 MB, free: 2.965 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.0008765/0.0008766, allocations: 87.8 kB / 286.5 MB, free: 248 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.799e-05/2.814e-05, allocations: 0 / 343.9 MB, free: 4.238 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1005, allocations: 50.41 MB / 394.3 MB, free: 1.789 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3184/0.419, allocations: 78.94 MB / 473.3 MB, free: 8.559 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002223/0.4192, allocations: 71.95 kB / 473.3 MB, free: 8.488 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01077/0.43, allocations: 3.676 MB / 477 MB, free: 4.809 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4301, allocations: 0 / 477 MB, free: 4.809 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.622e-05/0.4301, allocations: 4 kB / 477 MB, free: 4.805 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.000687/0.4308, allocations: 0.5065 MB / 477.5 MB, free: 4.254 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.4308, allocations: 12.03 kB / 477.5 MB, free: 4.242 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.65e-05/0.4309, allocations: 50.52 kB / 477.6 MB, free: 4.184 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.012e-05/0.431, allocations: 39.55 kB / 477.6 MB, free: 4.145 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004325/0.4314, allocations: 296.1 kB / 477.9 MB, free: 3.812 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.4314, allocations: 20.22 kB / 477.9 MB, free: 3.793 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.927e-05/0.4315, allocations: 16 kB / 478 MB, free: 3.777 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006306/0.4321, allocations: 353.1 kB / 478.3 MB, free: 3.41 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.4321, allocations: 0 / 478.3 MB, free: 3.41 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.961e-05/0.4322, allocations: 7.953 kB / 478.3 MB, free: 3.402 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.4322, allocations: 4 kB / 478.3 MB, free: 3.398 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001596/0.4324, allocations: 83.86 kB / 478.4 MB, free: 3.316 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007066/0.4331, allocations: 0.521 MB / 478.9 MB, free: 2.738 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006771/0.4338, allocations: 316.4 kB / 479.2 MB, free: 2.402 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002023/0.434, allocations: 131.1 kB / 479.3 MB, free: 2.266 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.994e-05/0.434, allocations: 11.97 kB / 479.4 MB, free: 2.254 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.71e-05/0.4341, allocations: 38.56 kB / 479.4 MB, free: 2.207 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.403e-06/0.4341, allocations: 0 / 479.4 MB, free: 2.207 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.001986/0.4361, allocations: 1.152 MB / 480.5 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001006/0.4362, allocations: 138.6 kB / 480.7 MB, free: 0.8047 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002964/0.4365, allocations: 290.8 kB / 481 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.701e-05/0.4365, allocations: 33.7 kB / 481 MB, free: 484 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.807e-05/0.4366, allocations: 144.9 kB / 481.1 MB, free: 336 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.399e-05/0.4366, allocations: 43.53 kB / 481.2 MB, free: 292 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.434e-05/0.4367, allocations: 12 kB / 481.2 MB, free: 280 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.4368, allocations: 346.8 kB / 481.5 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.716e-05/0.4369, allocations: 56.88 kB / 481.6 MB, free: 15.87 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002151/0.4372, allocations: 282.4 kB / 481.9 MB, free: 15.49 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001628/0.4373, allocations: 115.8 kB / 482 MB, free: 15.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.4373, allocations: 3.984 kB / 482 MB, free: 15.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005149/0.4379, allocations: 369.3 kB / 482.3 MB, free: 15 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.4379, allocations: 9.25 kB / 482.4 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.4379, allocations: 8 kB / 482.4 MB, free: 14.99 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.199e-05/0.4379, allocations: 12 kB / 482.4 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000246/0.4382, allocations: 87.84 kB / 482.5 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.972e-05/0.4382, allocations: 19.92 kB / 482.5 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002051/0.4384, allocations: 23.94 kB / 482.5 MB, free: 14.85 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.413e-05/0.4385, allocations: 16.7 kB / 482.5 MB, free: 14.83 MB / 362.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.0001047/0.4386, allocations: 144.9 kB / 482.7 MB, free: 14.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004105/0.439, allocations: 265.1 kB / 482.9 MB, free: 14.42 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006037/0.4396, allocations: 356.5 kB / 483.3 MB, free: 14.06 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/0.4396, allocations: 8 kB / 483.3 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.4396, allocations: 0.6562 kB / 483.3 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.4396, allocations: 0 / 483.3 MB, free: 14.05 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003675/0.44, allocations: 313.4 kB / 483.6 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.44, allocations: 0 / 483.6 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005301/0.4406, allocations: 119.9 kB / 483.7 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.4406, allocations: 4 kB / 483.7 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.522e-05/0.4406, allocations: 15.92 kB / 483.7 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.4406, allocations: 0 / 483.7 MB, free: 13.56 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.4406, allocations: 7.938 kB / 483.7 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008406/0.4415, allocations: 0.6853 MB / 484.4 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.033e-05/0.4416, allocations: 116.7 kB / 484.5 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.274e-05/0.4417, allocations: 12 kB / 484.5 MB, free: 12.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002438/0.4419, allocations: 11.98 kB / 484.5 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.096e-05/0.442, allocations: 4 kB / 484.6 MB, free: 12.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.22e-05/0.442, allocations: 12 kB / 484.6 MB, free: 12.66 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002438/0.4422, allocations: 246.2 kB / 484.8 MB, free: 12.42 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4422, allocations: 0 / 484.8 MB, free: 12.42 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003991/0.4426, allocations: 60 kB / 484.9 MB, free: 12.36 MB / 362.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.001129/0.4438, allocations: 1.381 MB / 486.2 MB, free: 10.95 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004039/0.4442, allocations: 253.7 kB / 486.5 MB, free: 10.7 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4442, allocations: 0 / 486.5 MB, free: 10.7 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.414e-05/0.4443, allocations: 32.05 kB / 486.5 MB, free: 10.67 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005479/0.4448, allocations: 177.8 kB / 486.7 MB, free: 10.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001332/0.4462, allocations: 0.6458 MB / 487.3 MB, free: 9.809 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003163/0.4465, allocations: 0.8073 MB / 488.2 MB, free: 8.977 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001038/0.4466, allocations: 35.28 kB / 488.2 MB, free: 8.941 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001626/0.4468, allocations: 115.4 kB / 488.3 MB, free: 8.828 MB / 362.7 MB Notification: Performance of SimCode: time 4.3e-07/0.4468, allocations: 0 / 488.3 MB, free: 8.828 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02495/0.4717, allocations: 6.206 MB / 494.5 MB, free: 2.754 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002893/0.4721, allocations: 153.3 kB / 494.7 MB, free: 2.535 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.999/2.471, allocations: 0 / 494.7 MB, free: 2.535 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