Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002205/0.002205, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 225.4 MB / 240.1 MB, free: 15.06 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008821/0.0008821, allocations: 86.95 kB / 292.1 MB, free: 5.973 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.217e-05/3.227e-05, allocations: 8 kB / 350.6 MB, free: 2.441 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09447/0.09452, allocations: 51.48 MB / 402.1 MB, free: 14.91 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2871/0.3817, allocations: 79.75 MB / 481.9 MB, free: 9.695 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002603/0.382, allocations: 71.88 kB / 481.9 MB, free: 9.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009552/0.3916, allocations: 3.748 MB / 485.7 MB, free: 6.5 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.3916, allocations: 0 / 485.7 MB, free: 6.5 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.3916, allocations: 4 kB / 485.7 MB, free: 6.496 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.0004546/0.3921, allocations: 0.5039 MB / 486.2 MB, free: 5.973 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/0.3921, allocations: 8.031 kB / 486.2 MB, free: 5.965 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.648e-05/0.3921, allocations: 41.19 kB / 486.2 MB, free: 5.922 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.515e-05/0.3922, allocations: 39.52 kB / 486.3 MB, free: 5.883 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002986/0.3925, allocations: 307.2 kB / 486.6 MB, free: 5.574 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.3925, allocations: 11.59 kB / 486.6 MB, free: 5.566 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.399e-05/0.3926, allocations: 14.62 kB / 486.6 MB, free: 5.559 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004808/0.393, allocations: 357.2 kB / 486.9 MB, free: 5.273 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.3931, allocations: 1.078 kB / 486.9 MB, free: 5.273 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.231e-05/0.3931, allocations: 3.375 kB / 486.9 MB, free: 5.273 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.523e-06/0.3931, allocations: 4 kB / 487 MB, free: 5.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001326/0.3932, allocations: 85.8 kB / 487 MB, free: 5.215 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005001/0.3938, allocations: 0.5263 MB / 487.6 MB, free: 4.691 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005336/0.3943, allocations: 303.8 kB / 487.9 MB, free: 4.441 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001557/0.3945, allocations: 141.9 kB / 488 MB, free: 4.336 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.11e-05/0.3945, allocations: 7.984 kB / 488 MB, free: 4.328 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.551e-05/0.3945, allocations: 38.19 kB / 488 MB, free: 4.285 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.422e-06/0.3945, allocations: 4 kB / 488 MB, free: 4.281 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.001619/0.3962, allocations: 1.136 MB / 489.2 MB, free: 3.25 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.825e-05/0.3963, allocations: 148.6 kB / 489.3 MB, free: 3.09 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000258/0.3965, allocations: 288.6 kB / 489.6 MB, free: 2.859 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.078e-05/0.3966, allocations: 33.27 kB / 489.6 MB, free: 2.824 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.135e-05/0.3966, allocations: 140.4 kB / 489.8 MB, free: 2.727 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.522e-05/0.3967, allocations: 50.41 kB / 489.8 MB, free: 2.688 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.669e-06/0.3967, allocations: 7.25 kB / 489.8 MB, free: 2.688 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.527e-05/0.3967, allocations: 346.5 kB / 490.2 MB, free: 2.355 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.666e-05/0.3968, allocations: 59.19 kB / 490.2 MB, free: 2.312 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001605/0.397, allocations: 278.9 kB / 490.5 MB, free: 1.965 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001494/0.3972, allocations: 114.7 kB / 490.6 MB, free: 1.879 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.3972, allocations: 4 kB / 490.6 MB, free: 1.875 MB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004028/0.3976, allocations: 362.5 kB / 491 MB, free: 1.57 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.755e-05/0.3976, allocations: 8 kB / 491 MB, free: 1.562 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/0.3976, allocations: 8 kB / 491 MB, free: 1.555 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.171e-05/0.3976, allocations: 13.25 kB / 491 MB, free: 1.543 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000215/0.3979, allocations: 87.47 kB / 491.1 MB, free: 1.461 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.499e-05/0.3979, allocations: 23.88 kB / 491.1 MB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001888/0.3981, allocations: 23.31 kB / 491.1 MB, free: 1.422 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.121e-05/0.3981, allocations: 23.78 kB / 491.2 MB, free: 1.402 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 6.475e-05/0.3982, allocations: 137.3 kB / 491.3 MB, free: 1.273 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003584/0.3985, allocations: 269.8 kB / 491.6 MB, free: 1.066 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005031/0.3991, allocations: 351.5 kB / 491.9 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.068e-06/0.3991, allocations: 8 kB / 491.9 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3991, allocations: 0.6875 kB / 491.9 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.3991, allocations: 3.953 kB / 491.9 MB, free: 0.8164 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002627/0.3994, allocations: 323.1 kB / 492.2 MB, free: 0.5 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.3994, allocations: 0 / 492.2 MB, free: 0.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004778/0.3999, allocations: 125.2 kB / 492.3 MB, free: 392 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.308e-06/0.3999, allocations: 0 / 492.3 MB, free: 392 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.146e-05/0.3999, allocations: 14.11 kB / 492.4 MB, free: 384 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.3999, allocations: 0 / 492.4 MB, free: 384 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.3999, allocations: 5.484 kB / 492.4 MB, free: 380 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000714/0.4006, allocations: 0.6817 MB / 493 MB, free: 15.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.032e-05/0.4007, allocations: 116.6 kB / 493.2 MB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.897e-05/0.4008, allocations: 12 kB / 493.2 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002351/0.401, allocations: 15.94 kB / 493.2 MB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.452e-05/0.4011, allocations: 8 kB / 493.2 MB, free: 15.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.163e-05/0.4011, allocations: 14.03 kB / 493.2 MB, free: 15.52 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002327/0.4014, allocations: 242.2 kB / 493.4 MB, free: 15.28 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4014, allocations: 0 / 493.4 MB, free: 15.28 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003818/0.4018, allocations: 64 kB / 493.5 MB, free: 15.21 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.001191/0.403, allocations: 1.374 MB / 494.9 MB, free: 13.8 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004037/0.4034, allocations: 265.3 kB / 495.1 MB, free: 13.55 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.4034, allocations: 4.062 kB / 495.1 MB, free: 13.54 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.589e-05/0.4034, allocations: 28.5 kB / 495.2 MB, free: 13.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005016/0.404, allocations: 176.1 kB / 495.3 MB, free: 13.35 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.4053, allocations: 0.6386 MB / 496 MB, free: 12.67 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004035/0.4057, allocations: 0.8112 MB / 496.8 MB, free: 11.83 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.878e-05/0.4058, allocations: 35.28 kB / 496.8 MB, free: 11.79 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001682/0.406, allocations: 111.4 kB / 496.9 MB, free: 11.68 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.406, allocations: 0 / 496.9 MB, free: 11.68 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01725/0.4232, allocations: 6.197 MB / 0.4913 GB, free: 5.734 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001542/0.4234, allocations: 163.3 kB / 0.4915 GB, free: 5.508 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.041/2.464, allocations: 0 / 0.4915 GB, free: 5.508 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit.fmu > Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat does not exist to compare? outputFormat=mat