Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.TwoMass,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",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.001337/0.001337, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.653/1.653, allocations: 221.5 MB / 230.3 MB, free: 7.516 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.0009574/0.0009575, allocations: 87.61 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.907e-05/1.909e-05, allocations: 0 / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1162/0.1163, allocations: 50.43 MB / 387.6 MB, free: 7.449 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3732/0.4895, allocations: 80.91 MB / 468.5 MB, free: 13.77 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002806/0.4898, allocations: 75.95 kB / 468.5 MB, free: 13.69 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04066/0.5305, allocations: 15.96 MB / 484.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.5306, allocations: 0 / 484.5 MB, free: 13.62 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.503e-05/0.5306, allocations: 16 kB / 484.5 MB, free: 13.61 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001822/0.5325, allocations: 1.077 MB / 485.6 MB, free: 12.47 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.5325, allocations: 8.031 kB / 485.6 MB, free: 12.46 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000174/0.5327, allocations: 110.8 kB / 485.7 MB, free: 12.35 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008214/0.5335, allocations: 0.528 MB / 486.2 MB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001885/0.5338, allocations: 126.4 kB / 486.4 MB, free: 11.64 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.936e-05/0.5338, allocations: 36 kB / 486.4 MB, free: 11.6 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000802/0.5346, allocations: 474.5 kB / 486.9 MB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009861/0.5356, allocations: 0.7025 MB / 487.6 MB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.5357, allocations: 0 / 487.6 MB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.37e-05/0.5357, allocations: 7.984 kB / 487.6 MB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/0.5358, allocations: 16 kB / 487.6 MB, free: 10.31 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003218/0.539, allocations: 1.981 MB / 489.6 MB, free: 8.242 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001013/0.54, allocations: 0.8759 MB / 490.4 MB, free: 7.285 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004133/0.5404, allocations: 314.9 kB / 490.7 MB, free: 6.977 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.13e-05/0.5405, allocations: 16.78 kB / 490.8 MB, free: 6.961 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.262e-05/0.5406, allocations: 51.34 kB / 490.8 MB, free: 6.898 MB / 362.7 MB Notification: Performance of pre-optimization done (n=74): time 2.826e-06/0.5406, allocations: 0 / 490.8 MB, free: 6.898 MB / 362.7 MB Notification: Performance of matching and sorting (n=74): time 0.002163/0.5427, allocations: 0.8344 MB / 491.6 MB, free: 6.047 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004295/0.5432, allocations: 0.8196 MB / 492.5 MB, free: 5.031 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006612/0.5439, allocations: 0.4995 MB / 493 MB, free: 4.527 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.899e-05/0.5439, allocations: 29.7 kB / 493 MB, free: 4.492 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002736/0.5442, allocations: 338.7 kB / 493.3 MB, free: 4.16 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002289/0.5444, allocations: 248.2 kB / 493.6 MB, free: 3.914 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.3e-05/0.5445, allocations: 0 / 493.6 MB, free: 3.914 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002024/0.5447, allocations: 390.6 kB / 494 MB, free: 3.523 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003383/0.545, allocations: 205.6 kB / 494.2 MB, free: 3.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005555/0.5456, allocations: 472.1 kB / 494.6 MB, free: 2.758 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004116/0.546, allocations: 245 kB / 494.9 MB, free: 2.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.546, allocations: 0 / 494.9 MB, free: 2.52 MB / 362.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002063/0.5481, allocations: 0.8929 MB / 495.7 MB, free: 1.609 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001037/0.5482, allocations: 94.03 kB / 495.8 MB, free: 1.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.5482, allocations: 4 kB / 495.8 MB, free: 1.496 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006347/0.5489, allocations: 203.2 kB / 496 MB, free: 1.285 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00064/0.5495, allocations: 147.8 kB / 496.2 MB, free: 1.141 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005981/0.5555, allocations: 6.044 MB / 0.4905 GB, free: 10.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000894/0.5565, allocations: 87.48 kB / 0.4905 GB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-05/0.5565, allocations: 27.98 kB / 0.4906 GB, free: 10.52 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient2.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe1.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003001/0.5568, allocations: 133 kB / 0.4907 GB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001893/0.5587, allocations: 0.8304 MB / 0.4915 GB, free: 9.531 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001336/0.5589, allocations: 87.05 kB / 0.4916 GB, free: 9.445 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002376/0.5591, allocations: 84.05 kB / 0.4917 GB, free: 9.355 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.385e-06/0.5591, allocations: 11.95 kB / 0.4917 GB, free: 9.344 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.024e-06/0.5592, allocations: 0 / 0.4917 GB, free: 9.344 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001821/0.561, allocations: 1.123 MB / 0.4928 GB, free: 8.109 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003184/0.5642, allocations: 1.734 MB / 0.4945 GB, free: 6.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.5642, allocations: 4 kB / 0.4945 GB, free: 6.316 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006871/0.5649, allocations: 151.8 kB / 0.4946 GB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000392/0.5653, allocations: 166.5 kB / 0.4948 GB, free: 5.996 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.123e-05/0.5654, allocations: 7.984 kB / 0.4948 GB, free: 5.988 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004832/0.5702, allocations: 4.652 MB / 0.4993 GB, free: 0.9844 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.5702, allocations: 0 / 0.4993 GB, free: 0.9844 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002497/0.5727, allocations: 1.227 MB / 0.5005 GB, free: 15.73 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004204/0.5732, allocations: 228 kB / 0.5007 GB, free: 15.48 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/0.5733, allocations: 7.984 kB / 0.5007 GB, free: 15.48 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005094/0.5738, allocations: 48.09 kB / 0.5008 GB, free: 15.43 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001664/0.574, allocations: 60.64 kB / 0.5009 GB, free: 15.37 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.485e-05/0.574, allocations: 27.92 kB / 0.5009 GB, free: 15.34 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005243/0.5745, allocations: 391.2 kB / 0.5013 GB, free: 14.97 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5745, allocations: 4 kB / 0.5013 GB, free: 14.96 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009376/0.5755, allocations: 263.6 kB / 0.5015 GB, free: 14.71 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 59 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.00267/0.5782, allocations: 1.806 MB / 0.5033 GB, free: 12.87 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001576/0.5798, allocations: 1.166 MB / 0.5044 GB, free: 11.63 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.912e-06/0.5798, allocations: 11.94 kB / 0.5044 GB, free: 11.62 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.5808, allocations: 0.6915 MB / 0.5051 GB, free: 10.89 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000991/0.5818, allocations: 192.5 kB / 0.5053 GB, free: 10.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002745/0.5846, allocations: 1.31 MB / 0.5066 GB, free: 9.348 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005159/0.5851, allocations: 0.9599 MB / 0.5075 GB, free: 8.363 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004074/0.5855, allocations: 86.02 kB / 0.5076 GB, free: 8.277 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003838/0.5859, allocations: 291.3 kB / 0.5079 GB, free: 7.992 MB / 394.7 MB Notification: Performance of SimCode: time 5.91e-07/0.5859, allocations: 0 / 0.5079 GB, free: 7.992 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04616/0.6321, allocations: 20.61 MB / 0.528 GB, free: 3.598 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000212/0.6324, allocations: 139.5 kB / 0.5281 GB, free: 3.402 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.704/3.337, allocations: 3.938 kB / 0.5281 GB, free: 3.398 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat