Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.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.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",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.001277/0.001277, allocations: 177.1 kB / 13.64 MB, free: 1.672 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.572/1.572, allocations: 221.3 MB / 235.5 MB, free: 2.953 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001181/0.001181, allocations: 98.14 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.522e-05/2.523e-05, allocations: 7.984 kB / 343.9 MB, free: 4.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1105, allocations: 50.41 MB / 394.3 MB, free: 1.781 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3691/0.4796, allocations: 79.24 MB / 473.6 MB, free: 8.262 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002096/0.4799, allocations: 71.95 kB / 473.6 MB, free: 8.191 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01673/0.4966, allocations: 6.078 MB / 479.7 MB, free: 2.086 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4967, allocations: 4 kB / 479.7 MB, free: 2.082 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.823e-05/0.4967, allocations: 4 kB / 479.7 MB, free: 2.078 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.001125/0.4979, allocations: 0.5747 MB / 480.3 MB, free: 1.453 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.519e-05/0.498, allocations: 16.03 kB / 480.3 MB, free: 1.438 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001599/0.4981, allocations: 66.94 kB / 480.4 MB, free: 1.363 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.4982, allocations: 43.53 kB / 480.4 MB, free: 1.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005046/0.4987, allocations: 286.3 kB / 480.7 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001331/0.4989, allocations: 50.27 kB / 480.8 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.68e-05/0.499, allocations: 24.69 kB / 480.8 MB, free: 0.918 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005321/0.4995, allocations: 319.4 kB / 481.1 MB, free: 0.5664 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.73e-05/0.4995, allocations: 3.953 kB / 481.1 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.41e-05/0.4996, allocations: 15.98 kB / 481.1 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.4996, allocations: 4 kB / 481.1 MB, free: 0.543 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003319/0.4999, allocations: 186.2 kB / 481.3 MB, free: 368 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001433/0.5014, allocations: 0.8266 MB / 482.1 MB, free: 15.48 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005669/0.5019, allocations: 267 kB / 482.4 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/0.5021, allocations: 108.9 kB / 482.5 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.61e-05/0.5022, allocations: 4.5 kB / 482.5 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.5022, allocations: 38.56 kB / 482.5 MB, free: 15.05 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 1.833e-06/0.5022, allocations: 0 / 482.5 MB, free: 15.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.0006165/0.5028, allocations: 286.6 kB / 482.8 MB, free: 14.77 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001667/0.503, allocations: 328.4 kB / 483.1 MB, free: 14.37 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002639/0.5033, allocations: 239.5 kB / 483.4 MB, free: 14.13 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.144e-05/0.5033, allocations: 33.7 kB / 483.4 MB, free: 14.09 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001199/0.5035, allocations: 172.4 kB / 483.6 MB, free: 13.92 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.213e-05/0.5035, allocations: 110.4 kB / 483.7 MB, free: 13.81 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.687e-05/0.5036, allocations: 8 kB / 483.7 MB, free: 13.8 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001496/0.5037, allocations: 342.8 kB / 484 MB, free: 13.46 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001444/0.5039, allocations: 80 kB / 484.1 MB, free: 13.38 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002399/0.5041, allocations: 196.2 kB / 484.3 MB, free: 13.14 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001972/0.5043, allocations: 131 kB / 484.4 MB, free: 13.01 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.5043, allocations: 0 / 484.4 MB, free: 13.01 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0005863/0.5049, allocations: 361.8 kB / 484.8 MB, free: 12.64 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.901e-05/0.505, allocations: 33.7 kB / 484.8 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.462e-06/0.505, allocations: 4.094 kB / 484.8 MB, free: 12.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002228/0.5052, allocations: 44.84 kB / 484.9 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009925/0.5062, allocations: 207.8 kB / 485.1 MB, free: 12.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003142/0.5094, allocations: 2.934 MB / 488 MB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002523/0.5097, allocations: 43.72 kB / 488 MB, free: 9.109 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.881e-05/0.5097, allocations: 16 kB / 488 MB, free: 9.094 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.0001342/0.5098, allocations: 124.9 kB / 488.2 MB, free: 8.965 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.903e-05/0.5099, allocations: 31.62 kB / 488.2 MB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.923e-05/0.51, allocations: 43.33 kB / 488.2 MB, free: 8.887 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.346e-06/0.51, allocations: 4 kB / 488.2 MB, free: 8.883 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.51, allocations: 4 kB / 488.3 MB, free: 8.879 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006247/0.5107, allocations: 0.6386 MB / 488.9 MB, free: 8.133 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000462/0.5111, allocations: 397.2 kB / 489.3 MB, free: 7.695 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.5111, allocations: 4 kB / 489.3 MB, free: 7.691 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001297/0.5124, allocations: 251.7 kB / 489.5 MB, free: 7.445 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.956e-05/0.5125, allocations: 28.84 kB / 489.6 MB, free: 7.414 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.315e-05/0.5126, allocations: 3.984 kB / 489.6 MB, free: 7.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002757/0.5153, allocations: 2.77 MB / 492.3 MB, free: 4.371 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.5154, allocations: 0 / 492.3 MB, free: 4.371 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007189/0.5161, allocations: 492 kB / 492.8 MB, free: 3.871 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001851/0.5163, allocations: 140.7 kB / 492.9 MB, free: 3.715 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.976e-05/0.5163, allocations: 4 kB / 493 MB, free: 3.711 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002146/0.5166, allocations: 19.98 kB / 493 MB, free: 3.691 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.682e-05/0.5167, allocations: 31.92 kB / 493 MB, free: 3.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.062e-05/0.5167, allocations: 8 kB / 493 MB, free: 3.652 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002231/0.5169, allocations: 195.1 kB / 493.2 MB, free: 3.461 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.5169, allocations: 3.938 kB / 493.2 MB, free: 3.457 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004604/0.5174, allocations: 119.8 kB / 493.3 MB, free: 3.34 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.001099/0.5185, allocations: 1.049 MB / 494.4 MB, free: 2.262 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001403/0.5199, allocations: 0.5333 MB / 494.9 MB, free: 1.703 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.5199, allocations: 0 / 494.9 MB, free: 1.703 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001246/0.5212, allocations: 414.4 kB / 495.3 MB, free: 1.285 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000468/0.5217, allocations: 80.98 kB / 495.4 MB, free: 1.207 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001684/0.5234, allocations: 0.7544 MB / 496.1 MB, free: 424 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000405/0.5238, allocations: 0.784 MB / 496.9 MB, free: 15.6 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001524/0.5239, allocations: 34.95 kB / 497 MB, free: 15.56 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001548/0.5241, allocations: 103.4 kB / 497.1 MB, free: 15.46 MB / 378.7 MB Notification: Performance of SimCode: time 6.62e-07/0.5241, allocations: 0 / 497.1 MB, free: 15.46 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02428/0.5484, allocations: 8.49 MB / 0.4937 GB, free: 7.176 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002428/0.5487, allocations: 177.7 kB / 0.4939 GB, free: 6.953 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.169/2.718, allocations: 0 / 0.4939 GB, free: 6.953 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat does not exist to compare? outputFormat=mat