Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.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.TwoMass,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001045/0.001045, allocations: 179.9 kB / 8.474 MB, free: 1.879 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.192/1.192, allocations: 205.2 MB / 214.1 MB, free: 5.426 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001082/0.001081, allocations: 86.25 kB / 262.1 MB, free: 5.488 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1773/0.1785, allocations: 52.97 MB / 315.1 MB, free: 41.44 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08082/0.2593, allocations: 47.57 MB / 362.6 MB, free: 9.902 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2773/0.5366, allocations: 81.57 MB / 444.2 MB, free: 10.64 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002171/0.5369, allocations: 71.06 kB / 444.3 MB, free: 10.64 MB / 314.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.04005/0.5769, allocations: 17.25 MB / 461.5 MB, free: 4.582 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.577, allocations: 12.53 kB / 461.5 MB, free: 4.578 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001934/0.5772, allocations: 109.4 kB / 461.6 MB, free: 4.527 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009557/0.5782, allocations: 0.5381 MB / 462.2 MB, free: 4.188 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001957/0.5784, allocations: 131.8 kB / 462.3 MB, free: 4.082 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.565e-05/0.5785, allocations: 41.91 kB / 462.3 MB, free: 4.078 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008455/0.5793, allocations: 477.6 kB / 462.8 MB, free: 4.043 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000904/0.5802, allocations: 0.6961 MB / 463.5 MB, free: 3.66 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.5803, allocations: 0 / 463.5 MB, free: 3.66 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.297e-05/0.5803, allocations: 3.812 kB / 463.5 MB, free: 3.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.5803, allocations: 16.73 kB / 463.5 MB, free: 3.656 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002987/0.5833, allocations: 1.991 MB / 465.5 MB, free: 2.684 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006635/0.584, allocations: 451 kB / 465.9 MB, free: 2.629 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005403/0.5846, allocations: 350.7 kB / 466.3 MB, free: 2.602 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.988e-05/0.5846, allocations: 13.89 kB / 466.3 MB, free: 2.602 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.5847, allocations: 49.28 kB / 466.4 MB, free: 2.562 MB / 314.7 MB Notification: Performance of pre-optimization done (n=74): time 2.755e-06/0.5847, allocations: 4 kB / 466.4 MB, free: 2.559 MB / 314.7 MB Notification: Performance of matching and sorting (n=74): time 0.002046/0.5867, allocations: 0.8415 MB / 467.2 MB, free: 2.328 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001347/0.5869, allocations: 0.82 MB / 468 MB, free: 1.328 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005753/0.5875, allocations: 0.4959 MB / 468.5 MB, free: 1.168 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.369e-05/0.5875, allocations: 28.45 kB / 468.5 MB, free: 1.137 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001047/0.5876, allocations: 228.1 kB / 468.8 MB, free: 0.9766 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001421/0.5878, allocations: 247.7 kB / 469 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.297e-05/0.5878, allocations: 1.375 kB / 469 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.769e-05/0.5879, allocations: 385.3 kB / 469.4 MB, free: 460 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003316/0.5882, allocations: 202.2 kB / 469.6 MB, free: 460 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005032/0.5888, allocations: 473.9 kB / 470 MB, free: 164 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004112/0.5892, allocations: 255.7 kB / 470.3 MB, free: 116 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.5892, allocations: 0.8438 kB / 470.3 MB, free: 116 kB / 314.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.002117/0.5913, allocations: 0.908 MB / 471.2 MB, free: 15.88 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.511e-05/0.5913, allocations: 5.406 kB / 471.2 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.5913, allocations: 1.625 kB / 471.2 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006002/0.592, allocations: 207.3 kB / 471.4 MB, free: 15.81 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006999/0.5927, allocations: 158.8 kB / 471.6 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006673/0.5994, allocations: 6.059 MB / 477.6 MB, free: 10.55 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/0.6004, allocations: 103.7 kB / 477.7 MB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.178e-05/0.6005, allocations: 24.06 kB / 477.7 MB, free: 10.5 MB / 330.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.0002592/0.6008, allocations: 127.9 kB / 477.9 MB, free: 10.38 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001593/0.6009, allocations: 82.59 kB / 478 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001994/0.6011, allocations: 80.45 kB / 478 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.6012, allocations: 7.906 kB / 478 MB, free: 10.32 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.151e-05/0.6012, allocations: 11.84 kB / 478.1 MB, free: 10.3 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001937/0.6031, allocations: 1.131 MB / 479.2 MB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003145/0.6063, allocations: 1.741 MB / 480.9 MB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.6063, allocations: 11.92 kB / 480.9 MB, free: 8.457 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007482/0.607, allocations: 153.8 kB / 481.1 MB, free: 8.312 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004041/0.6075, allocations: 166.9 kB / 481.3 MB, free: 8.184 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.542e-05/0.6075, allocations: 4.172 kB / 481.3 MB, free: 8.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004944/0.6125, allocations: 4.639 MB / 485.9 MB, free: 3.578 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.76e-06/0.6125, allocations: 3.906 kB / 485.9 MB, free: 3.574 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002423/0.6149, allocations: 1.246 MB / 487.1 MB, free: 2.645 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003628/0.6186, allocations: 2.558 MB / 489.7 MB, free: 0.8516 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005052/0.6191, allocations: 240 kB / 489.9 MB, free: 0.6445 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001339/0.6192, allocations: 4.547 kB / 489.9 MB, free: 0.6406 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005525/0.6198, allocations: 55.81 kB / 490 MB, free: 0.5859 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.6199, allocations: 47.45 kB / 490 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.842e-05/0.62, allocations: 25 kB / 490.1 MB, free: 0.5273 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0005367/0.6205, allocations: 393 kB / 490.4 MB, free: 260 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.001484/0.622, allocations: 257.5 kB / 490.7 MB, free: 4 kB / 330.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.0002161/0.6223, allocations: 112 kB / 490.8 MB, free: 15.89 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001894/0.6242, allocations: 1.13 MB / 491.9 MB, free: 14.71 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.6242, allocations: 4 kB / 491.9 MB, free: 14.7 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001078/0.6253, allocations: 0.6678 MB / 492.6 MB, free: 14 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009013/0.6262, allocations: 176.6 kB / 492.8 MB, free: 13.83 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002605/0.6288, allocations: 1.258 MB / 494 MB, free: 12.55 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006793/0.6295, allocations: 1.043 MB / 495.1 MB, free: 11.48 MB / 346.7 MB Notification: Performance of SimCode: time 7.02e-07/0.6295, allocations: 0 / 495.1 MB, free: 11.48 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat