Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001383/0.001383, allocations: 196.9 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.695/1.695, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00108/0.00108, allocations: 85.67 kB / 292.1 MB, free: 5.871 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.327e-05/3.33e-05, allocations: 4 kB / 350.6 MB, free: 2.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1368, allocations: 51.48 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4312/0.568, allocations: 80.06 MB / 482.2 MB, free: 9.383 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002699/0.5684, allocations: 70.95 kB / 482.2 MB, free: 9.348 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01564/0.5841, allocations: 6.134 MB / 488.4 MB, free: 4.316 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5841, allocations: 0 / 488.4 MB, free: 4.316 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.791e-05/0.5841, allocations: 12 kB / 488.4 MB, free: 4.305 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008222/0.585, allocations: 0.5748 MB / 489 MB, free: 3.711 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.185e-05/0.585, allocations: 12.03 kB / 489 MB, free: 3.699 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.141e-05/0.5851, allocations: 65.81 kB / 489 MB, free: 3.637 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.809e-05/0.5852, allocations: 43.53 kB / 489.1 MB, free: 3.594 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003617/0.5856, allocations: 291.9 kB / 489.4 MB, free: 3.301 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.664e-05/0.5857, allocations: 49.58 kB / 489.4 MB, free: 3.254 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.731e-05/0.5857, allocations: 23.31 kB / 489.4 MB, free: 3.238 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000456/0.5862, allocations: 311.4 kB / 489.7 MB, free: 2.973 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.5862, allocations: 4.562 kB / 489.7 MB, free: 2.969 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.295e-05/0.5863, allocations: 11.31 kB / 489.8 MB, free: 2.965 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.5863, allocations: 4 kB / 489.8 MB, free: 2.961 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000334/0.5866, allocations: 189.6 kB / 489.9 MB, free: 2.836 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00135/0.588, allocations: 0.8334 MB / 490.8 MB, free: 2.145 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004592/0.5885, allocations: 266.1 kB / 491 MB, free: 1.957 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001362/0.5886, allocations: 110.7 kB / 491.1 MB, free: 1.887 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.865e-05/0.5887, allocations: 4 kB / 491.2 MB, free: 1.883 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.086e-05/0.5887, allocations: 40.56 kB / 491.2 MB, free: 1.84 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 1.383e-06/0.5887, allocations: 0 / 491.2 MB, free: 1.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.0004715/0.5892, allocations: 287.7 kB / 491.5 MB, free: 1.586 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.504e-05/0.5893, allocations: 320.4 kB / 491.8 MB, free: 1.199 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000204/0.5895, allocations: 245.9 kB / 492 MB, free: 0.957 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/0.5895, allocations: 33.7 kB / 492.1 MB, free: 0.918 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.898e-05/0.5896, allocations: 176.4 kB / 492.2 MB, free: 0.7422 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.433e-05/0.5896, allocations: 102.5 kB / 492.3 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.344e-05/0.5897, allocations: 8 kB / 492.3 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.809e-05/0.5897, allocations: 342.8 kB / 492.7 MB, free: 296 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001224/0.5899, allocations: 80 kB / 492.8 MB, free: 216 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002135/0.5901, allocations: 195.4 kB / 492.9 MB, free: 15.98 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000211/0.5903, allocations: 138 kB / 493.1 MB, free: 15.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.5903, allocations: 0 / 493.1 MB, free: 15.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005843/0.5909, allocations: 353.9 kB / 493.4 MB, free: 15.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.648e-05/0.591, allocations: 41.62 kB / 493.5 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.591, allocations: 96 / 493.5 MB, free: 15.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002555/0.5912, allocations: 44.84 kB / 493.5 MB, free: 15.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009985/0.5923, allocations: 213.3 kB / 493.7 MB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003347/0.5956, allocations: 2.929 MB / 496.6 MB, free: 11.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003274/0.596, allocations: 39.73 kB / 496.7 MB, free: 11.95 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.731e-05/0.596, allocations: 15.94 kB / 496.7 MB, free: 11.94 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001449/0.5962, allocations: 132.9 kB / 496.8 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.418e-05/0.5962, allocations: 31.62 kB / 496.9 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001056/0.5964, allocations: 39.2 kB / 496.9 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/0.5964, allocations: 4 kB / 496.9 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.5964, allocations: 0 / 496.9 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006702/0.5971, allocations: 0.6393 MB / 497.5 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004816/0.5976, allocations: 389.2 kB / 497.9 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.5976, allocations: 5.5 kB / 497.9 MB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001288/0.5989, allocations: 258.1 kB / 498.2 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.623e-05/0.599, allocations: 20.84 kB / 498.2 MB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/0.599, allocations: 8 kB / 498.2 MB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002788/0.6018, allocations: 2.784 MB / 0.4892 GB, free: 7.215 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.269e-06/0.6018, allocations: 7.5 kB / 0.4893 GB, free: 7.211 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007529/0.6026, allocations: 493.3 kB / 0.4897 GB, free: 6.711 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000185/0.6028, allocations: 140.6 kB / 0.4899 GB, free: 6.555 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.059e-05/0.6028, allocations: 8 kB / 0.4899 GB, free: 6.547 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002227/0.603, allocations: 20 kB / 0.4899 GB, free: 6.527 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.344e-05/0.6031, allocations: 23.89 kB / 0.4899 GB, free: 6.504 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.622e-05/0.6032, allocations: 16 kB / 0.4899 GB, free: 6.488 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002352/0.6034, allocations: 195.1 kB / 0.4901 GB, free: 6.297 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6034, allocations: 0 / 0.4901 GB, free: 6.297 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005082/0.6039, allocations: 115.8 kB / 0.4902 GB, free: 6.184 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001116/0.6051, allocations: 1.037 MB / 0.4912 GB, free: 5.117 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001403/0.6065, allocations: 0.5386 MB / 0.4918 GB, free: 4.559 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.6065, allocations: 7.938 kB / 0.4918 GB, free: 4.551 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001295/0.6078, allocations: 406.9 kB / 0.4922 GB, free: 4.141 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004742/0.6083, allocations: 77.84 kB / 0.4922 GB, free: 4.066 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001782/0.6101, allocations: 0.7441 MB / 0.493 GB, free: 3.281 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00041/0.6105, allocations: 0.784 MB / 0.4937 GB, free: 2.469 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001706/0.6107, allocations: 38.95 kB / 0.4938 GB, free: 2.426 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000154/0.6109, allocations: 103.4 kB / 0.4939 GB, free: 2.328 MB / 362.7 MB Notification: Performance of SimCode: time 8.51e-07/0.6109, allocations: 0 / 0.4939 GB, free: 2.328 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02551/0.6364, allocations: 8.484 MB / 0.5021 GB, free: 10.18 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002651/0.6367, allocations: 181.8 kB / 0.5023 GB, free: 9.957 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.414/3.05, allocations: 0 / 0.5023 GB, free: 9.957 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat does not exist to compare? outputFormat=mat