Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002216/0.002216, allocations: 181.3 kB / 8.366 MB, free: 0.7109 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.108/2.108, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001124/0.001124, allocations: 93.03 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.407e-05/2.405e-05, allocations: 4 kB / 314.9 MB, free: 9.074 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3433/0.3433, allocations: 47.57 MB / 362.4 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1328/0.4762, allocations: 82.47 MB / 444.9 MB, free: 3.836 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000295/0.4766, allocations: 75.95 kB / 445 MB, free: 3.762 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03634/0.513, allocations: 8.195 MB / 453.2 MB, free: 11.6 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.513, allocations: 0 / 453.2 MB, free: 11.6 MB / 347.1 MB Notification: Performance of Transformations before backend: time 4.531e-05/0.5131, allocations: 15.98 kB / 453.2 MB, free: 11.58 MB / 347.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001264/0.5144, allocations: 0.5944 MB / 453.8 MB, free: 10.95 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.872e-05/0.5144, allocations: 8.031 kB / 453.8 MB, free: 10.94 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001675/0.5146, allocations: 47.53 kB / 453.8 MB, free: 10.89 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008308/0.5155, allocations: 339.1 kB / 454.2 MB, free: 10.52 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.901e-05/0.5155, allocations: 4 kB / 454.2 MB, free: 10.52 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.827e-05/0.5156, allocations: 12 kB / 454.2 MB, free: 10.5 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004492/0.516, allocations: 140.8 kB / 454.3 MB, free: 10.37 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000562/0.5166, allocations: 256.6 kB / 454.6 MB, free: 10.07 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.988e-05/0.5166, allocations: 3.906 kB / 454.6 MB, free: 10.07 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.616e-05/0.5167, allocations: 0 / 454.6 MB, free: 10.07 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.5167, allocations: 8 kB / 454.6 MB, free: 10.06 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002105/0.5188, allocations: 0.7454 MB / 455.3 MB, free: 9.27 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006735/0.5195, allocations: 195.3 kB / 455.5 MB, free: 9.07 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001979/0.5198, allocations: 72.86 kB / 455.6 MB, free: 8.996 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.302e-05/0.5198, allocations: 4 kB / 455.6 MB, free: 8.992 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003459/0.5202, allocations: 131.7 kB / 455.7 MB, free: 8.852 MB / 347.1 MB Notification: Performance of pre-optimization done (n=24): time 2.665e-06/0.5202, allocations: 0 / 455.7 MB, free: 8.852 MB / 347.1 MB Notification: Performance of matching and sorting (n=24): time 0.0008763/0.5211, allocations: 247.6 kB / 456 MB, free: 8.602 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001574/0.5213, allocations: 312.4 kB / 456.3 MB, free: 8.223 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006952/0.522, allocations: 358.2 kB / 456.6 MB, free: 7.875 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 5.642e-05/0.522, allocations: 25.7 kB / 456.6 MB, free: 7.844 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002022/0.5223, allocations: 238.9 kB / 456.9 MB, free: 7.605 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001157/0.5224, allocations: 86.84 kB / 457 MB, free: 7.52 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.534e-05/0.5224, allocations: 0 / 457 MB, free: 7.52 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.5226, allocations: 318.8 kB / 457.3 MB, free: 7.199 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001795/0.5227, allocations: 59.98 kB / 457.3 MB, free: 7.141 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002928/0.523, allocations: 166.9 kB / 457.5 MB, free: 6.934 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002247/0.5233, allocations: 74.02 kB / 457.6 MB, free: 6.863 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.523e-06/0.5233, allocations: 0 / 457.6 MB, free: 6.863 MB / 347.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007714/0.5241, allocations: 252.8 kB / 457.8 MB, free: 6.609 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.021e-05/0.5241, allocations: 8 kB / 457.8 MB, free: 6.602 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.5242, allocations: 3.938 kB / 457.8 MB, free: 6.598 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002975/0.5245, allocations: 32.84 kB / 457.9 MB, free: 6.562 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004177/0.5249, allocations: 55.97 kB / 457.9 MB, free: 6.508 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00187/0.5268, allocations: 1.393 MB / 459.3 MB, free: 4.992 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003676/0.5272, allocations: 15.84 kB / 459.3 MB, free: 4.977 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.016e-05/0.5272, allocations: 8 kB / 459.3 MB, free: 4.969 MB / 347.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real openTank.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 27 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002396/0.5275, allocations: 126.8 kB / 459.4 MB, free: 4.84 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007558/0.5282, allocations: 249.8 kB / 459.7 MB, free: 4.586 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.055e-05/0.5284, allocations: 39.53 kB / 459.7 MB, free: 4.547 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008407/0.5292, allocations: 266.6 kB / 460 MB, free: 4.277 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.075e-05/0.5292, allocations: 8 kB / 460 MB, free: 4.27 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.5293, allocations: 0 / 460 MB, free: 4.27 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007085/0.53, allocations: 0.5726 MB / 460.6 MB, free: 3.594 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001522/0.5315, allocations: 0.6893 MB / 461.3 MB, free: 2.855 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.644e-06/0.5316, allocations: 3.984 kB / 461.3 MB, free: 2.852 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004238/0.532, allocations: 39.98 kB / 461.3 MB, free: 2.812 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.18e-05/0.532, allocations: 4 kB / 461.3 MB, free: 2.809 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.125e-05/0.5321, allocations: 3.984 kB / 461.3 MB, free: 2.805 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.602e-06/0.5321, allocations: 3.938 kB / 461.3 MB, free: 2.801 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.5321, allocations: 0 / 461.3 MB, free: 2.801 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008718/0.533, allocations: 407 kB / 461.7 MB, free: 2.387 MB / 347.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000291/0.5333, allocations: 150.6 kB / 461.9 MB, free: 2.223 MB / 347.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.985e-05/0.5334, allocations: 4 kB / 461.9 MB, free: 2.219 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003157/0.5337, allocations: 7.984 kB / 461.9 MB, free: 2.211 MB / 347.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.114e-05/0.5338, allocations: 15.98 kB / 461.9 MB, free: 2.195 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.924e-05/0.5339, allocations: 4 kB / 461.9 MB, free: 2.191 MB / 347.1 MB Notification: Performance of sorting global known variables: time 0.000526/0.5344, allocations: 276.6 kB / 462.2 MB, free: 1.918 MB / 347.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5344, allocations: 4.062 kB / 462.2 MB, free: 1.914 MB / 347.1 MB Notification: Performance of remove unused functions: time 0.0006991/0.5351, allocations: 103.8 kB / 462.3 MB, free: 1.812 MB / 347.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (openTank.m,openTank.H) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002233/0.5374, allocations: 1.201 MB / 463.5 MB, free: 0.6367 MB / 347.1 MB Notification: Performance of simCode: created initialization part: time 0.0009179/0.5383, allocations: 297.6 kB / 463.8 MB, free: 344 kB / 347.1 MB Notification: Performance of simCode: created event and clocks part: time 5.952e-06/0.5384, allocations: 0 / 463.8 MB, free: 344 kB / 347.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002262/0.5386, allocations: 84.36 kB / 463.8 MB, free: 260 kB / 347.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008464/0.5395, allocations: 76.38 kB / 463.9 MB, free: 188 kB / 347.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002099/0.5416, allocations: 0.6647 MB / 464.6 MB, free: 15.47 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005061/0.5421, allocations: 0.8069 MB / 465.4 MB, free: 14.64 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003187/0.5425, allocations: 127.4 kB / 465.5 MB, free: 14.51 MB / 363.1 MB Notification: Performance of SimCode: time 1.543e-06/0.5425, allocations: 0 / 465.5 MB, free: 14.51 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.055/3.598, allocations: 7.35 MB / 472.9 MB, free: 7.176 MB / 363.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TestOpenTank.fmu > Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TestOpenTank_res.mat does not exist to compare? outputFormat=mat