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.00113/0.001129, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.225/1.225, allocations: 227.2 MB / 245 MB, free: 5.945 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009618/0.0009617, allocations: 104.1 kB / 297.3 MB, free: 5.965 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002163/0.0002163, allocations: 4 kB / 358 MB, free: 9.234 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1856/0.1858, allocations: 51.49 MB / 409.5 MB, free: 26.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08872/0.2746, allocations: 79.81 MB / 489.3 MB, free: 10.76 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002196/0.2749, allocations: 75.95 kB / 489.4 MB, free: 10.68 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01098/0.2859, allocations: 3.747 MB / 493.1 MB, free: 6.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.714e-06/0.2859, allocations: 4 kB / 493.1 MB, free: 6.926 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.788e-05/0.2859, allocations: 11.94 kB / 493.1 MB, free: 6.914 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.0009613/0.2869, allocations: 0.5956 MB / 493.7 MB, free: 6.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.287, allocations: 8.031 kB / 493.7 MB, free: 6.262 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.647e-05/0.287, allocations: 50.55 kB / 493.8 MB, free: 6.203 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.218e-05/0.2871, allocations: 31.62 kB / 493.8 MB, free: 6.172 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004141/0.2875, allocations: 299.3 kB / 494.1 MB, free: 5.844 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.574e-05/0.2875, allocations: 16.28 kB / 494.1 MB, free: 5.828 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.644e-05/0.2876, allocations: 27.84 kB / 494.2 MB, free: 5.801 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006054/0.2882, allocations: 361.7 kB / 494.5 MB, free: 5.43 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.2882, allocations: 0 / 494.5 MB, free: 5.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.894e-05/0.2883, allocations: 8 kB / 494.5 MB, free: 5.422 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.2883, allocations: 4 kB / 494.5 MB, free: 5.418 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000204/0.2885, allocations: 95.89 kB / 494.6 MB, free: 5.324 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006703/0.2892, allocations: 0.5363 MB / 495.2 MB, free: 4.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006586/0.2898, allocations: 312.9 kB / 495.5 MB, free: 4.398 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.996e-05/0.2899, allocations: 8.047 kB / 495.5 MB, free: 4.391 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.45e-05/0.2899, allocations: 42.58 kB / 495.5 MB, free: 4.34 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.513e-06/0.2899, allocations: 0 / 495.5 MB, free: 4.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.002149/0.2921, allocations: 1.232 MB / 496.7 MB, free: 3.016 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.478e-05/0.2922, allocations: 143.1 kB / 496.9 MB, free: 2.852 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003008/0.2925, allocations: 295.9 kB / 497.2 MB, free: 2.555 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.078e-05/0.2925, allocations: 37.7 kB / 497.2 MB, free: 2.512 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.861e-05/0.2926, allocations: 140.8 kB / 497.3 MB, free: 2.371 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.008e-05/0.2927, allocations: 47.53 kB / 497.4 MB, free: 2.324 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.252e-05/0.2927, allocations: 8 kB / 497.4 MB, free: 2.316 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.2928, allocations: 350.7 kB / 497.7 MB, free: 1.965 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001258/0.2929, allocations: 64.83 kB / 497.8 MB, free: 1.898 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002367/0.2932, allocations: 294.2 kB / 498.1 MB, free: 1.504 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001872/0.2934, allocations: 128.7 kB / 498.2 MB, free: 1.379 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2934, allocations: 0 / 498.2 MB, free: 1.379 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0005497/0.294, allocations: 381.5 kB / 498.6 MB, free: 1 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.294, allocations: 12 kB / 498.6 MB, free: 0.9883 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.294, allocations: 8 kB / 498.6 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.294, allocations: 12 kB / 498.6 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002355/0.2943, allocations: 83.84 kB / 498.7 MB, free: 0.8867 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.485e-05/0.2943, allocations: 15.92 kB / 498.7 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000217/0.2945, allocations: 23.95 kB / 498.7 MB, free: 0.8477 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.45e-05/0.2945, allocations: 24 kB / 498.8 MB, free: 0.8242 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.0001474/0.2947, allocations: 173.2 kB / 498.9 MB, free: 0.6484 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004072/0.2951, allocations: 273.2 kB / 499.2 MB, free: 384 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005671/0.2957, allocations: 361.3 kB / 499.6 MB, free: 12 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.2957, allocations: 4 kB / 499.6 MB, free: 8 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.2957, allocations: 0 / 499.6 MB, free: 8 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/0.2957, allocations: 3.984 kB / 499.6 MB, free: 4 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003494/0.2961, allocations: 309.4 kB / 499.9 MB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.2961, allocations: 4 kB / 499.9 MB, free: 15.65 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005639/0.2967, allocations: 123.8 kB / 500 MB, free: 15.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.14e-06/0.2967, allocations: 0 / 500 MB, free: 15.53 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.043e-05/0.2967, allocations: 12 kB / 500 MB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.2967, allocations: 4.062 kB / 0.4883 GB, free: 15.51 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.2967, allocations: 4 kB / 0.4883 GB, free: 15.51 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008659/0.2976, allocations: 0.7127 MB / 0.489 GB, free: 14.76 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.776e-05/0.2977, allocations: 108.8 kB / 0.4891 GB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.185e-05/0.2978, allocations: 19.98 kB / 0.4891 GB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002496/0.298, allocations: 8 kB / 0.4891 GB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.563e-05/0.2981, allocations: 16 kB / 0.4891 GB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.105e-05/0.2981, allocations: 12 kB / 0.4891 GB, free: 14.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002232/0.2983, allocations: 239.1 kB / 0.4894 GB, free: 14.35 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2983, allocations: 0 / 0.4894 GB, free: 14.35 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004073/0.2988, allocations: 67.94 kB / 0.4894 GB, free: 14.28 MB / 378.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.001152/0.2999, allocations: 1.416 MB / 0.4908 GB, free: 12.83 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004372/0.3004, allocations: 277.2 kB / 0.4911 GB, free: 12.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3004, allocations: 0 / 0.4911 GB, free: 12.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.609e-05/0.3004, allocations: 28.11 kB / 0.4911 GB, free: 12.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005173/0.301, allocations: 190.7 kB / 0.4913 GB, free: 12.35 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004278/0.3053, allocations: 7.273 MB / 0.4984 GB, free: 4.863 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003026/0.3056, allocations: 0.8112 MB / 0.4992 GB, free: 4.027 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001034/0.3057, allocations: 35.27 kB / 0.4992 GB, free: 3.988 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000158/0.3059, allocations: 107.4 kB / 0.4993 GB, free: 3.883 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.3059, allocations: 0 / 0.4993 GB, free: 3.883 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1712/0.4771, allocations: 6.268 MB / 0.5054 GB, free: 97.52 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001418/0.4772, allocations: 183.2 kB / 0.5056 GB, free: 97.28 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.106/2.583, allocations: 0 / 0.5056 GB, free: 97.28 MB / 378.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