Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.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.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl",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.0009384/0.0009383, 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.477/1.477, allocations: 221.3 MB / 235.5 MB, free: 2.934 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.0008065/0.0008065, allocations: 94.92 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.239e-05/2.241e-05, allocations: 0 / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09973/0.09977, allocations: 50.41 MB / 394.3 MB, free: 1.758 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3181/0.4179, allocations: 77.99 MB / 472.3 MB, free: 9.492 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/0.4182, allocations: 83.94 kB / 472.4 MB, free: 9.41 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01052/0.4288, allocations: 3.476 MB / 475.9 MB, free: 5.938 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.4288, allocations: 0 / 475.9 MB, free: 5.938 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.46e-05/0.4288, allocations: 4 kB / 475.9 MB, free: 5.934 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0006282/0.4294, allocations: 0.4906 MB / 476.4 MB, free: 5.398 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.4295, allocations: 12.03 kB / 476.4 MB, free: 5.387 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.361e-05/0.4296, allocations: 50.5 kB / 476.4 MB, free: 5.328 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.455e-05/0.4296, allocations: 27.62 kB / 476.5 MB, free: 5.301 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003956/0.43, allocations: 299.9 kB / 476.8 MB, free: 4.965 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.352e-05/0.4301, allocations: 12 kB / 476.8 MB, free: 4.953 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.587e-05/0.4301, allocations: 12 kB / 476.8 MB, free: 4.941 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002178/0.4303, allocations: 121.5 kB / 476.9 MB, free: 4.816 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.906e-06/0.4303, allocations: 0 / 476.9 MB, free: 4.816 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.57e-05/0.4304, allocations: 4 kB / 476.9 MB, free: 4.812 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.4304, allocations: 7.953 kB / 476.9 MB, free: 4.805 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001428/0.4305, allocations: 60 kB / 477 MB, free: 4.746 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008145/0.4313, allocations: 0.5313 MB / 477.5 MB, free: 4.164 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004517/0.4318, allocations: 166.8 kB / 477.7 MB, free: 3.992 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.735e-05/0.4319, allocations: 52.86 kB / 477.7 MB, free: 3.938 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.338e-05/0.4319, allocations: 3.984 kB / 477.7 MB, free: 3.934 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.318e-05/0.432, allocations: 38.78 kB / 477.8 MB, free: 3.887 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 3.827e-06/0.432, allocations: 0 / 477.8 MB, free: 3.887 MB / 346.7 MB Notification: Performance of matching and sorting (n=16): time 0.001243/0.4332, allocations: 0.6127 MB / 478.4 MB, free: 3.223 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.094e-05/0.4333, allocations: 56.33 kB / 478.4 MB, free: 3.156 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003142/0.4336, allocations: 294.8 kB / 478.7 MB, free: 2.859 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.324e-05/0.4336, allocations: 33.7 kB / 478.8 MB, free: 2.82 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.83e-05/0.4337, allocations: 152.3 kB / 478.9 MB, free: 2.664 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.001e-05/0.4338, allocations: 67.08 kB / 479 MB, free: 2.598 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.04e-05/0.4338, allocations: 8 kB / 479 MB, free: 2.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.434, allocations: 338.8 kB / 479.3 MB, free: 2.25 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001086/0.4341, allocations: 52.38 kB / 479.4 MB, free: 2.199 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.67e-05/0.4342, allocations: 63.73 kB / 479.4 MB, free: 2.141 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001149/0.4343, allocations: 60.92 kB / 479.5 MB, free: 2.082 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.21e-07/0.4343, allocations: 0 / 479.5 MB, free: 2.082 MB / 346.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003153/0.4346, allocations: 210 kB / 479.7 MB, free: 1.875 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.4347, allocations: 9.406 kB / 479.7 MB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.4347, allocations: 0 / 479.7 MB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.4347, allocations: 4 kB / 479.7 MB, free: 1.863 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003/0.435, allocations: 59.95 kB / 479.8 MB, free: 1.805 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.435, allocations: 4 kB / 479.8 MB, free: 1.801 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001515/0.4352, allocations: 11.95 kB / 479.8 MB, free: 1.789 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.599e-05/0.4352, allocations: 7.984 kB / 479.8 MB, free: 1.781 MB / 346.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 8.11e-05/0.4353, allocations: 108.9 kB / 479.9 MB, free: 1.668 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.193e-05/0.4353, allocations: 31.62 kB / 479.9 MB, free: 1.637 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003807/0.4357, allocations: 208.4 kB / 480.1 MB, free: 1.426 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.4357, allocations: 0 / 480.1 MB, free: 1.426 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.4357, allocations: 0 / 480.1 MB, free: 1.426 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.493e-06/0.4358, allocations: 3.984 kB / 480.1 MB, free: 1.422 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003398/0.4361, allocations: 325.4 kB / 480.4 MB, free: 1.055 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.4361, allocations: 0 / 480.4 MB, free: 1.055 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003533/0.4365, allocations: 59.89 kB / 480.5 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.4365, allocations: 0 / 480.5 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.43e-05/0.4365, allocations: 11.98 kB / 480.5 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.4365, allocations: 4 kB / 480.5 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.4365, allocations: 0 / 480.5 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004921/0.437, allocations: 372.4 kB / 480.9 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.013e-05/0.4371, allocations: 116.7 kB / 481 MB, free: 480 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.608e-05/0.4372, allocations: 0 / 481 MB, free: 480 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001908/0.4374, allocations: 8 kB / 481 MB, free: 472 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.096e-05/0.4374, allocations: 15.97 kB / 481 MB, free: 456 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.291e-05/0.4374, allocations: 8 kB / 481 MB, free: 448 kB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002371/0.4377, allocations: 246.2 kB / 481.3 MB, free: 200 kB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4377, allocations: 0 / 481.3 MB, free: 200 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002606/0.438, allocations: 44 kB / 481.3 MB, free: 156 kB / 346.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.0008053/0.4388, allocations: 0.9095 MB / 482.2 MB, free: 15.22 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003146/0.4391, allocations: 144 kB / 482.4 MB, free: 15.08 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.643e-06/0.4391, allocations: 7.938 kB / 482.4 MB, free: 15.07 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001234/0.4393, allocations: 77.48 kB / 482.4 MB, free: 15 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002774/0.4395, allocations: 33.2 kB / 482.5 MB, free: 14.96 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001303/0.4409, allocations: 0.6766 MB / 483.2 MB, free: 14.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003186/0.4412, allocations: 0.7716 MB / 483.9 MB, free: 13.45 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001058/0.4413, allocations: 26.06 kB / 483.9 MB, free: 13.43 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.4415, allocations: 95.39 kB / 484 MB, free: 13.34 MB / 362.7 MB Notification: Performance of SimCode: time 4.51e-07/0.4415, allocations: 0 / 484 MB, free: 13.34 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01778/0.4593, allocations: 5.065 MB / 489.1 MB, free: 8.492 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003171/0.4596, allocations: 209.5 kB / 489.3 MB, free: 8.266 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.851/2.311, allocations: 0 / 489.3 MB, free: 8.266 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl_fmu --startTime=0 --stopTime=500 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl_res.mat does not exist to compare? outputFormat=mat