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.001484/0.001485, allocations: 180.8 kB / 16.39 MB, free: 5.762 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.315/1.315, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009135/0.0009135, allocations: 89.03 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002628/0.0002629, allocations: 8 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2086/0.2089, allocations: 50.41 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09829/0.3073, allocations: 79 MB / 480.6 MB, free: 1.461 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001913/0.3075, allocations: 67.97 kB / 480.6 MB, free: 1.395 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01067/0.3182, allocations: 3.693 MB / 484.3 MB, free: 13.69 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.995e-06/0.3182, allocations: 0 / 484.3 MB, free: 13.69 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.396e-05/0.3182, allocations: 7.938 kB / 484.3 MB, free: 13.68 MB / 362.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.0008888/0.3191, allocations: 0.5996 MB / 484.9 MB, free: 13.04 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.801e-05/0.3192, allocations: 8.031 kB / 484.9 MB, free: 13.03 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.748e-05/0.3193, allocations: 58.44 kB / 485 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.639e-05/0.3193, allocations: 31.62 kB / 485 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000358/0.3197, allocations: 303.2 kB / 485.3 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.444e-05/0.3197, allocations: 12.28 kB / 485.3 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.717e-05/0.3198, allocations: 23.89 kB / 485.4 MB, free: 12.56 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000576/0.3203, allocations: 367.5 kB / 485.7 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.3204, allocations: 0 / 485.7 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.718e-05/0.3204, allocations: 7.953 kB / 485.7 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.3204, allocations: 4 kB / 485.7 MB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001951/0.3206, allocations: 99.89 kB / 485.8 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006315/0.3212, allocations: 0.5249 MB / 486.4 MB, free: 11.49 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000656/0.3219, allocations: 316.6 kB / 486.7 MB, free: 11.16 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.702e-05/0.3219, allocations: 4.062 kB / 486.7 MB, free: 11.15 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.874e-05/0.322, allocations: 46.62 kB / 486.7 MB, free: 11.1 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.312e-06/0.322, allocations: 0 / 486.7 MB, free: 11.1 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.002094/0.3241, allocations: 1.244 MB / 488 MB, free: 9.766 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.307e-05/0.3242, allocations: 142.7 kB / 488.1 MB, free: 9.602 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002898/0.3245, allocations: 295.9 kB / 488.4 MB, free: 9.305 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.479e-05/0.3245, allocations: 29.7 kB / 488.4 MB, free: 9.27 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.987e-05/0.3246, allocations: 152.6 kB / 488.6 MB, free: 9.117 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.159e-05/0.3247, allocations: 43.53 kB / 488.6 MB, free: 9.074 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.256e-05/0.3247, allocations: 8 kB / 488.6 MB, free: 9.066 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.3248, allocations: 355.4 kB / 489 MB, free: 8.711 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001267/0.3249, allocations: 64.83 kB / 489 MB, free: 8.648 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000227/0.3251, allocations: 286.3 kB / 489.3 MB, free: 8.258 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001829/0.3253, allocations: 120.8 kB / 489.4 MB, free: 8.141 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.696e-06/0.3253, allocations: 4 kB / 489.4 MB, free: 8.137 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005334/0.3259, allocations: 385.4 kB / 489.8 MB, free: 7.754 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.68e-05/0.3259, allocations: 11.94 kB / 489.8 MB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.3259, allocations: 8 kB / 489.8 MB, free: 7.734 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.234e-05/0.326, allocations: 12 kB / 489.8 MB, free: 7.723 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002471/0.3262, allocations: 87.84 kB / 489.9 MB, free: 7.637 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.495e-05/0.3262, allocations: 19.92 kB / 489.9 MB, free: 7.617 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000212/0.3265, allocations: 16 kB / 490 MB, free: 7.602 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.537e-05/0.3265, allocations: 20 kB / 490 MB, free: 7.582 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 () * Number of clocked states: 6 (filter.x[1],invMixingUnit.T,invMixingUnit.c,$DER.filter.x[1],$DER.invMixingUnit.c,$DER.invMixingUnit.T) * 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.000145/0.3266, allocations: 169.6 kB / 490.1 MB, free: 7.406 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004193/0.3271, allocations: 273.1 kB / 490.4 MB, free: 7.133 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005889/0.3277, allocations: 348.5 kB / 490.7 MB, free: 6.781 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.3277, allocations: 4.062 kB / 490.8 MB, free: 6.777 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.3277, allocations: 8 kB / 490.8 MB, free: 6.77 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3277, allocations: 7.875 kB / 490.8 MB, free: 6.762 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003448/0.3281, allocations: 317.3 kB / 491.1 MB, free: 6.402 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3281, allocations: 0 / 491.1 MB, free: 6.402 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005811/0.3287, allocations: 123.8 kB / 491.2 MB, free: 6.281 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.3287, allocations: 4 kB / 491.2 MB, free: 6.277 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.667e-05/0.3287, allocations: 12 kB / 491.2 MB, free: 6.266 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.3287, allocations: 0 / 491.2 MB, free: 6.266 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.3287, allocations: 0 / 491.2 MB, free: 6.266 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008787/0.3296, allocations: 0.7127 MB / 491.9 MB, free: 5.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.094e-05/0.3297, allocations: 104.7 kB / 492 MB, free: 5.398 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.264e-05/0.3298, allocations: 15.98 kB / 492 MB, free: 5.383 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002562/0.33, allocations: 12 kB / 492.1 MB, free: 5.371 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.179e-05/0.3301, allocations: 12 kB / 492.1 MB, free: 5.359 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-05/0.3301, allocations: 11.98 kB / 492.1 MB, free: 5.348 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002304/0.3303, allocations: 243.1 kB / 492.3 MB, free: 5.109 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3303, allocations: 0 / 492.3 MB, free: 5.109 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004491/0.3308, allocations: 60 kB / 492.4 MB, free: 5.051 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 () * Number of clocked states: 6 ($DER.invMixingUnit.T,$DER.invMixingUnit.c,$DER.filter.x[1],invMixingUnit.c,invMixingUnit.T,filter.x[1]) * 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.001162/0.332, allocations: 1.406 MB / 493.8 MB, free: 3.609 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004632/0.3324, allocations: 273.5 kB / 494.1 MB, free: 3.344 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3324, allocations: 0 / 494.1 MB, free: 3.344 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.898e-05/0.3325, allocations: 32.11 kB / 494.1 MB, free: 3.312 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005561/0.3331, allocations: 203 kB / 494.3 MB, free: 3.121 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004437/0.3375, allocations: 7.289 MB / 0.4898 GB, free: 11.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003002/0.3379, allocations: 0.8112 MB / 0.4906 GB, free: 10.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001053/0.338, allocations: 39.27 kB / 0.4906 GB, free: 10.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001605/0.3381, allocations: 111.4 kB / 0.4907 GB, free: 10.64 MB / 378.7 MB Notification: Performance of SimCode: time 5.81e-07/0.3381, allocations: 0 / 0.4907 GB, free: 10.64 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01659/0.3547, allocations: 6.269 MB / 0.4969 GB, free: 4.52 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001569/0.3549, allocations: 189.5 kB / 0.4971 GB, free: 4.273 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.06/2.415, allocations: 0 / 0.4971 GB, free: 4.273 MB / 378.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