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.001511/0.001511, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.502/1.502, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001019/0.001019, allocations: 99.94 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.86e-05/1.861e-05, allocations: 4 kB / 343.8 MB, free: 8.215 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09067/0.09071, allocations: 51.47 MB / 395.3 MB, free: 4.699 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.307/0.3977, allocations: 79.08 MB / 474.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001939/0.398, allocations: 71.91 kB / 474.4 MB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01049/0.4085, allocations: 3.721 MB / 478.1 MB, free: 10.46 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.4085, allocations: 0 / 478.1 MB, free: 10.46 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.552e-05/0.4085, allocations: 4 kB / 478.1 MB, free: 10.46 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.0005682/0.4091, allocations: 0.5062 MB / 478.6 MB, free: 9.957 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.131e-05/0.4092, allocations: 8.031 kB / 478.6 MB, free: 9.949 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.566e-05/0.4092, allocations: 35.53 kB / 478.7 MB, free: 9.914 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003758/0.4096, allocations: 305.3 kB / 479 MB, free: 9.617 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.4096, allocations: 8.859 kB / 479 MB, free: 9.609 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.689e-05/0.4097, allocations: 8 kB / 479 MB, free: 9.602 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001583/0.4099, allocations: 78.55 kB / 479.1 MB, free: 9.559 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004713/0.4103, allocations: 322.8 kB / 479.4 MB, free: 9.328 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.4104, allocations: 3.938 kB / 479.4 MB, free: 9.324 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.553e-05/0.4104, allocations: 0 / 479.4 MB, free: 9.324 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.4104, allocations: 4 kB / 479.4 MB, free: 9.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005672/0.411, allocations: 0.492 MB / 479.9 MB, free: 8.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005412/0.4115, allocations: 292.5 kB / 480.2 MB, free: 8.688 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001442/0.4117, allocations: 123.3 kB / 480.3 MB, free: 8.602 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.105e-05/0.4117, allocations: 4 kB / 480.3 MB, free: 8.598 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.563e-05/0.4117, allocations: 39.52 kB / 480.3 MB, free: 8.555 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.853e-06/0.4117, allocations: 0 / 480.3 MB, free: 8.555 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.001595/0.4133, allocations: 1.071 MB / 481.4 MB, free: 7.574 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.833e-05/0.4134, allocations: 134.3 kB / 481.5 MB, free: 7.422 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000264/0.4137, allocations: 273.4 kB / 481.8 MB, free: 7.211 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.929e-05/0.4137, allocations: 29.73 kB / 481.8 MB, free: 7.176 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.305e-05/0.4138, allocations: 144.7 kB / 482 MB, free: 7.074 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.391e-05/0.4138, allocations: 48.59 kB / 482 MB, free: 7.035 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.388e-06/0.4139, allocations: 0 / 482 MB, free: 7.035 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.187e-05/0.4139, allocations: 354.2 kB / 482.4 MB, free: 6.695 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.571e-05/0.414, allocations: 53.55 kB / 482.4 MB, free: 6.66 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001357/0.4142, allocations: 272.9 kB / 482.7 MB, free: 6.316 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001213/0.4143, allocations: 94.05 kB / 482.8 MB, free: 6.25 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.4143, allocations: 4 kB / 482.8 MB, free: 6.246 MB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0003991/0.4147, allocations: 315.5 kB / 483.1 MB, free: 5.973 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.4147, allocations: 8 kB / 483.1 MB, free: 5.965 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.177e-05/0.4147, allocations: 8 kB / 483.1 MB, free: 5.957 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.869e-05/0.4148, allocations: 15.94 kB / 483.1 MB, free: 5.941 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002362/0.415, allocations: 83.77 kB / 483.2 MB, free: 5.863 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.415, allocations: 16.5 kB / 483.2 MB, free: 5.848 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000201/0.4152, allocations: 19.94 kB / 483.2 MB, free: 5.828 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.308e-05/0.4153, allocations: 24.27 kB / 483.3 MB, free: 5.809 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 7.838e-05/0.4154, allocations: 124 kB / 483.4 MB, free: 5.684 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003934/0.4158, allocations: 290.9 kB / 483.7 MB, free: 5.457 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.884e-05/0.4158, allocations: 32.28 kB / 483.7 MB, free: 5.426 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004591/0.4163, allocations: 316.2 kB / 484 MB, free: 5.199 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.4163, allocations: 8.031 kB / 484 MB, free: 5.191 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/0.4163, allocations: 0 / 484 MB, free: 5.191 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.4163, allocations: 7.938 kB / 484 MB, free: 5.184 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000272/0.4166, allocations: 275.1 kB / 484.3 MB, free: 4.918 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.4166, allocations: 7.938 kB / 484.3 MB, free: 4.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000506/0.4171, allocations: 123.5 kB / 484.4 MB, free: 4.793 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.4172, allocations: 0 / 484.4 MB, free: 4.793 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.989e-05/0.4172, allocations: 4 kB / 484.4 MB, free: 4.789 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.4172, allocations: 0 / 484.4 MB, free: 4.789 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.4172, allocations: 8 kB / 484.4 MB, free: 4.781 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006548/0.4179, allocations: 0.6386 MB / 485.1 MB, free: 4.258 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.547e-05/0.4179, allocations: 116.3 kB / 485.2 MB, free: 4.129 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.148e-05/0.418, allocations: 6.562 kB / 485.2 MB, free: 4.129 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00024/0.4183, allocations: 16.05 kB / 485.2 MB, free: 4.113 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.98e-05/0.4183, allocations: 5.734 kB / 485.2 MB, free: 4.109 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.941e-05/0.4183, allocations: 11.98 kB / 485.2 MB, free: 4.098 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001709/0.4185, allocations: 232.3 kB / 485.4 MB, free: 3.922 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4185, allocations: 0 / 485.4 MB, free: 3.922 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004272/0.4189, allocations: 48 kB / 485.5 MB, free: 3.875 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.000801/0.4198, allocations: 1.344 MB / 486.8 MB, free: 2.637 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003003/0.4201, allocations: 242.3 kB / 487.1 MB, free: 2.457 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.4201, allocations: 0 / 487.1 MB, free: 2.457 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.352e-05/0.4201, allocations: 23.31 kB / 487.1 MB, free: 2.441 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004941/0.4206, allocations: 166.4 kB / 487.3 MB, free: 2.332 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00114/0.4218, allocations: 0.6204 MB / 487.9 MB, free: 1.73 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001888/0.422, allocations: 0.8111 MB / 488.7 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.975e-05/0.4221, allocations: 39.27 kB / 488.7 MB, free: 0.8594 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001334/0.4222, allocations: 108.4 kB / 488.8 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of SimCode: time 3.9e-07/0.4222, allocations: 0 / 488.8 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0238/0.446, allocations: 5.702 MB / 494.5 MB, free: 11.2 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001793/0.4462, allocations: 145 kB / 494.7 MB, free: 11.01 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.088/2.534, allocations: 3.938 kB / 494.7 MB, free: 11.01 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