Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.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.OneMass,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_OneMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.OneMass,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_OneMass",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.001516/0.001516, allocations: 174 kB / 8.476 MB, free: 1.883 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.216/1.216, allocations: 205.2 MB / 214.1 MB, free: 1.883 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.0008409/0.0008408, allocations: 75.41 kB / 262.1 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1544/0.1552, allocations: 52.97 MB / 315.1 MB, free: 22.95 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07347/0.2287, allocations: 47.59 MB / 362.6 MB, free: 7.312 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2383/0.467, allocations: 81.1 MB / 443.7 MB, free: 14.36 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001892/0.4673, allocations: 72.84 kB / 443.8 MB, free: 14.32 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.02669/0.494, allocations: 10.53 MB / 454.4 MB, free: 5.551 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.494, allocations: 8 kB / 454.4 MB, free: 5.543 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001801/0.4942, allocations: 63.34 kB / 454.4 MB, free: 5.48 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006369/0.4949, allocations: 391.3 kB / 454.8 MB, free: 5.109 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.278e-05/0.495, allocations: 46.34 kB / 454.8 MB, free: 5.059 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.97e-05/0.4951, allocations: 23.91 kB / 454.9 MB, free: 5.035 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004891/0.4956, allocations: 260.8 kB / 455.1 MB, free: 4.871 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005497/0.4961, allocations: 396.4 kB / 455.5 MB, free: 4.52 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.4961, allocations: 0 / 455.5 MB, free: 4.52 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.288e-05/0.4962, allocations: 0 / 455.5 MB, free: 4.52 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.4962, allocations: 11.98 kB / 455.5 MB, free: 4.508 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002101/0.4983, allocations: 1.213 MB / 456.7 MB, free: 3.508 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003444/0.4987, allocations: 226.6 kB / 457 MB, free: 3.363 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002412/0.4989, allocations: 145.6 kB / 457.1 MB, free: 3.273 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.84e-05/0.499, allocations: 7.984 kB / 457.1 MB, free: 3.266 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/0.499, allocations: 38.44 kB / 457.1 MB, free: 3.223 MB / 330.7 MB Notification: Performance of pre-optimization done (n=36): time 1.753e-06/0.499, allocations: 0 / 457.1 MB, free: 3.223 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.0007054/0.4997, allocations: 354.2 kB / 457.5 MB, free: 2.949 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001367/0.4999, allocations: 452.2 kB / 457.9 MB, free: 2.406 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000371/0.5002, allocations: 347.5 kB / 458.3 MB, free: 2.141 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/0.5003, allocations: 37.58 kB / 458.3 MB, free: 2.098 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.595e-05/0.5004, allocations: 181.5 kB / 458.5 MB, free: 1.938 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.824e-05/0.5005, allocations: 124.3 kB / 458.6 MB, free: 1.828 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.824e-05/0.5005, allocations: 0 / 458.6 MB, free: 1.828 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.5006, allocations: 351.4 kB / 459 MB, free: 1.496 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001679/0.5008, allocations: 105.7 kB / 459.1 MB, free: 1.434 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002424/0.5011, allocations: 225.7 kB / 459.3 MB, free: 1.223 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001935/0.5013, allocations: 125.4 kB / 459.4 MB, free: 1.145 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.5013, allocations: 0 / 459.4 MB, free: 1.145 MB / 330.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006493/0.5019, allocations: 386.2 kB / 459.8 MB, free: 0.8477 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.5019, allocations: 4 kB / 459.8 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.502, allocations: 4.031 kB / 459.8 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002282/0.5022, allocations: 52.81 kB / 459.8 MB, free: 0.793 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004471/0.5026, allocations: 107.2 kB / 459.9 MB, free: 0.6914 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001945/0.5046, allocations: 2.609 MB / 462.5 MB, free: 13.99 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003746/0.505, allocations: 59.7 kB / 462.6 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.382e-05/0.505, allocations: 15.81 kB / 462.6 MB, free: 13.92 MB / 346.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 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: 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 (38): * Single equations (assignments): 35 * 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 {3 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001611/0.5052, allocations: 116.9 kB / 462.7 MB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.448e-05/0.5053, allocations: 47.44 kB / 462.8 MB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.233e-05/0.5054, allocations: 43.77 kB / 462.8 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.5054, allocations: 4 kB / 462.8 MB, free: 13.72 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.5054, allocations: 3.906 kB / 462.8 MB, free: 13.71 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005456/0.506, allocations: 0.6577 MB / 463.5 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001144/0.5071, allocations: 0.8838 MB / 464.4 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.5071, allocations: 0 / 464.4 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004953/0.5076, allocations: 103.8 kB / 464.5 MB, free: 12.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.5077, allocations: 3.984 kB / 464.5 MB, free: 12.2 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.955e-05/0.5077, allocations: 11.91 kB / 464.5 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.5077, allocations: 0 / 464.5 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.5077, allocations: 0 / 464.5 MB, free: 12.18 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006553/0.5084, allocations: 0.5397 MB / 465 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00134/0.5097, allocations: 1.363 MB / 466.4 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001982/0.5099, allocations: 172 kB / 466.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.977e-05/0.51, allocations: 0 / 466.6 MB, free: 10.59 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000347/0.5104, allocations: 36.16 kB / 466.6 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.936e-05/0.5104, allocations: 23.06 kB / 466.6 MB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.137e-05/0.5105, allocations: 6.875 kB / 466.6 MB, free: 10.53 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0002717/0.5107, allocations: 279.1 kB / 466.9 MB, free: 10.33 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001004/0.5118, allocations: 143.5 kB / 467 MB, free: 10.19 MB / 346.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 (36): * Single equations (assignments): 36 * 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.0001605/0.5119, allocations: 107.2 kB / 467.1 MB, free: 10.08 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007355/0.5127, allocations: 0.5041 MB / 467.6 MB, free: 9.641 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5127, allocations: 4 kB / 467.7 MB, free: 9.637 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002114/0.5129, allocations: 144.4 kB / 467.8 MB, free: 9.543 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005371/0.5135, allocations: 111.3 kB / 467.9 MB, free: 9.457 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001411/0.5149, allocations: 0.643 MB / 468.5 MB, free: 8.84 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004987/0.5154, allocations: 0.8983 MB / 469.4 MB, free: 7.922 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.5154, allocations: 4 kB / 469.4 MB, free: 7.918 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_OneMass_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_OneMass.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.OneMass.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.OneMass_res.mat does not exist to compare? outputFormat=mat