Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.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.SimpleCooling,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling",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.0009001/0.0009001, allocations: 176.2 kB / 8.348 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.426/1.426, allocations: 221.5 MB / 230.3 MB, free: 7.5 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.0009055/0.0009056, allocations: 103.7 kB / 281.2 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.693e-05/1.695e-05, allocations: 4 kB / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1168, allocations: 50.42 MB / 387.6 MB, free: 7.461 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3765/0.4934, allocations: 79.59 MB / 467.1 MB, free: 15.1 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002124/0.4936, allocations: 71.97 kB / 467.2 MB, free: 15.03 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02398/0.5176, allocations: 9.285 MB / 476.5 MB, free: 5.68 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5176, allocations: 0 / 476.5 MB, free: 5.68 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.898e-05/0.5177, allocations: 19.92 kB / 476.5 MB, free: 5.66 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001033/0.5187, allocations: 0.6799 MB / 477.2 MB, free: 4.93 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.077e-05/0.5188, allocations: 16.03 kB / 477.2 MB, free: 4.914 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001176/0.5189, allocations: 63.33 kB / 477.3 MB, free: 4.852 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005471/0.5195, allocations: 364.3 kB / 477.6 MB, free: 4.453 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.673e-05/0.5196, allocations: 50.47 kB / 477.7 MB, free: 4.398 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.626e-05/0.5196, allocations: 20 kB / 477.7 MB, free: 4.379 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004303/0.5201, allocations: 237.5 kB / 477.9 MB, free: 4.148 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005617/0.5206, allocations: 397.6 kB / 478.3 MB, free: 3.703 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.544e-05/0.5207, allocations: 7.953 kB / 478.3 MB, free: 3.695 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.05e-05/0.5207, allocations: 0 / 478.3 MB, free: 3.695 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.5207, allocations: 8 kB / 478.3 MB, free: 3.688 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001818/0.5225, allocations: 1.17 MB / 479.5 MB, free: 2.453 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009968/0.5236, allocations: 413.2 kB / 479.9 MB, free: 2.02 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001861/0.5238, allocations: 121.4 kB / 480 MB, free: 1.898 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.419e-05/0.5238, allocations: 8.281 kB / 480 MB, free: 1.891 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.702e-05/0.5239, allocations: 42.8 kB / 480.1 MB, free: 1.84 MB / 346.7 MB Notification: Performance of pre-optimization done (n=33): time 1.482e-06/0.5239, allocations: 0 / 480.1 MB, free: 1.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.0006402/0.5245, allocations: 313.3 kB / 480.4 MB, free: 1.523 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001829/0.5247, allocations: 448.9 kB / 480.8 MB, free: 0.9805 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003806/0.5251, allocations: 333.3 kB / 481.1 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.139e-05/0.5251, allocations: 29.7 kB / 481.2 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001609/0.5253, allocations: 236.5 kB / 481.4 MB, free: 388 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.123e-05/0.5254, allocations: 114.3 kB / 481.5 MB, free: 272 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.67e-05/0.5254, allocations: 0 / 481.5 MB, free: 272 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.5256, allocations: 350.8 kB / 481.9 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001572/0.5257, allocations: 95.78 kB / 482 MB, free: 15.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002573/0.526, allocations: 227.8 kB / 482.2 MB, free: 15.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000179/0.5262, allocations: 117.5 kB / 482.3 MB, free: 15.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.5262, allocations: 0 / 482.3 MB, free: 15.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005863/0.5268, allocations: 364.6 kB / 482.6 MB, free: 15.06 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.15e-05/0.5268, allocations: 29.7 kB / 482.7 MB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.5268, allocations: 3.984 kB / 482.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002798/0.5271, allocations: 77.64 kB / 482.8 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003187/0.5275, allocations: 67.95 kB / 482.8 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002314/0.5298, allocations: 2.665 MB / 485.5 MB, free: 11.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003045/0.5301, allocations: 35.7 kB / 485.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.24e-05/0.5302, allocations: 12 kB / 485.5 MB, free: 11.92 MB / 362.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: pipe.flowPort_a.h:VARIABLE(flow=false unit = "J/kg" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002147/0.5304, allocations: 116.9 kB / 485.6 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005524/0.5309, allocations: 318.9 kB / 486 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.039e-05/0.531, allocations: 43.53 kB / 486 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.474e-05/0.5311, allocations: 44.81 kB / 486 MB, free: 11.39 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.5311, allocations: 7.953 kB / 486.1 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.413e-06/0.5311, allocations: 0 / 486.1 MB, free: 11.38 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005241/0.5317, allocations: 0.622 MB / 486.7 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001142/0.5328, allocations: 0.806 MB / 487.5 MB, free: 9.801 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.5328, allocations: 0 / 487.5 MB, free: 9.801 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003465/0.5332, allocations: 71.89 kB / 487.6 MB, free: 9.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.139e-05/0.5332, allocations: 8.094 kB / 487.6 MB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.989e-05/0.5332, allocations: 0 / 487.6 MB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.093e-06/0.5332, allocations: 96 / 487.6 MB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.5333, allocations: 7.922 kB / 487.6 MB, free: 9.715 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005982/0.5339, allocations: 491.2 kB / 488 MB, free: 9.219 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001767/0.534, allocations: 156.5 kB / 488.2 MB, free: 9.047 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.706e-05/0.5341, allocations: 7.953 kB / 488.2 MB, free: 9.039 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002223/0.5343, allocations: 8 kB / 488.2 MB, free: 9.031 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.628e-05/0.5344, allocations: 19.97 kB / 488.2 MB, free: 9.012 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.939e-05/0.5344, allocations: 8 kB / 488.2 MB, free: 9.004 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002763/0.5347, allocations: 263 kB / 488.5 MB, free: 8.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5347, allocations: 4.062 kB / 488.5 MB, free: 8.746 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004355/0.5352, allocations: 131.7 kB / 488.6 MB, free: 8.617 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pipe.T,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 33 * 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.0009482/0.5361, allocations: 1.024 MB / 489.7 MB, free: 7.566 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008672/0.537, allocations: 0.5184 MB / 490.2 MB, free: 7.016 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.537, allocations: 0 / 490.2 MB, free: 7.016 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001653/0.5372, allocations: 116.4 kB / 490.3 MB, free: 6.902 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005141/0.5377, allocations: 103.1 kB / 490.4 MB, free: 6.801 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001528/0.5392, allocations: 0.6726 MB / 491.1 MB, free: 6.094 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004683/0.5397, allocations: 0.8276 MB / 491.9 MB, free: 5.238 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002092/0.5399, allocations: 51.33 kB / 491.9 MB, free: 5.188 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002534/0.5402, allocations: 151.4 kB / 492.1 MB, free: 5.043 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/0.5402, allocations: 0 / 492.1 MB, free: 5.043 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03059/0.5708, allocations: 9.924 MB / 0.4902 GB, free: 11.26 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001921/0.571, allocations: 139.6 kB / 0.4904 GB, free: 11.07 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.183/2.754, allocations: 3.938 kB / 0.4904 GB, free: 11.07 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_SimpleCooling.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.SimpleCooling_res.mat does not exist to compare? outputFormat=mat