Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.PumpAndValve,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",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 4.0.0+maint.om/package.mo): time 0.001434/0.001434, allocations: 186.5 kB / 8.138 MB, free: 2.211 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.07/1.07, allocations: 221.4 MB / 229.9 MB, free: 3.004 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.0008283/0.0008281, allocations: 104.2 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09099/0.09184, allocations: 55.82 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1747/0.2665, allocations: 50.39 MB / 387 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08108/0.3476, allocations: 81.92 MB / 468.9 MB, free: 4.832 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001739/0.3478, allocations: 79.89 kB / 469 MB, free: 4.754 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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.03632/0.3842, allocations: 14.43 MB / 483.4 MB, free: 6.238 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.633e-05/0.3842, allocations: 12 kB / 483.4 MB, free: 6.227 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001888/0.3844, allocations: 83.06 kB / 483.5 MB, free: 6.145 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007401/0.3852, allocations: 459.8 kB / 484 MB, free: 5.656 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001259/0.3853, allocations: 84.33 kB / 484.1 MB, free: 5.559 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.944e-05/0.3854, allocations: 32 kB / 484.1 MB, free: 5.527 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006665/0.3861, allocations: 361.8 kB / 484.4 MB, free: 5.176 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007498/0.3868, allocations: 0.537 MB / 485 MB, free: 4.562 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.3869, allocations: 0 / 485 MB, free: 4.562 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.421e-05/0.3869, allocations: 4 kB / 485 MB, free: 4.559 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.3869, allocations: 12 kB / 485 MB, free: 4.547 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002978/0.3899, allocations: 1.803 MB / 486.8 MB, free: 2.656 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001702/0.3916, allocations: 0.635 MB / 487.4 MB, free: 1.992 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003504/0.392, allocations: 214.3 kB / 487.6 MB, free: 1.777 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.046e-05/0.3921, allocations: 17.73 kB / 487.7 MB, free: 1.758 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.486e-05/0.3921, allocations: 43.06 kB / 487.7 MB, free: 1.707 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 1.823e-06/0.3921, allocations: 4 kB / 487.7 MB, free: 1.703 MB / 362.7 MB Notification: Performance of matching and sorting (n=56): time 0.001783/0.3939, allocations: 0.6662 MB / 488.4 MB, free: 1.023 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002234/0.3941, allocations: 0.5644 MB / 488.9 MB, free: 332 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004644/0.3946, allocations: 422.1 kB / 489.3 MB, free: 15.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.594e-05/0.3946, allocations: 29.7 kB / 489.4 MB, free: 15.87 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.3948, allocations: 205.2 kB / 489.6 MB, free: 15.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/0.3949, allocations: 185.2 kB / 489.8 MB, free: 15.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.509e-05/0.3949, allocations: 4 kB / 489.8 MB, free: 15.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.3951, allocations: 362.8 kB / 490.1 MB, free: 15.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002888/0.3954, allocations: 153.3 kB / 490.3 MB, free: 14.96 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004163/0.3958, allocations: 364.1 kB / 490.6 MB, free: 14.53 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003126/0.3961, allocations: 177.6 kB / 490.8 MB, free: 14.35 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3961, allocations: 1.031 kB / 490.8 MB, free: 14.35 MB / 378.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001833/0.398, allocations: 0.7012 MB / 491.5 MB, free: 13.63 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.398, allocations: 8.031 kB / 491.5 MB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.398, allocations: 7.984 kB / 491.5 MB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008769/0.3989, allocations: 212.1 kB / 491.7 MB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007717/0.3997, allocations: 139.8 kB / 491.9 MB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005648/0.4053, allocations: 4.802 MB / 496.7 MB, free: 8.113 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005499/0.4059, allocations: 71.67 kB / 496.7 MB, free: 8.043 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.773e-05/0.4059, allocations: 20.12 kB / 496.7 MB, free: 8.023 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pipe.flowPort_b.m_flow:VARIABLE(flow=true unit = "kg/s" ) type: Real 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: ambient1.flowPort.h:VARIABLE(flow=false unit = "J/kg" ) type: Real idealPump.flowPort_b.h:VARIABLE(flow=false unit = "J/kg" ) type: Real 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: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (49): * Single equations (assignments): 45 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {5 2,1 1,1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0002/0.4062, allocations: 135.7 kB / 496.9 MB, free: 7.891 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/0.4063, allocations: 67.25 kB / 496.9 MB, free: 7.824 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001826/0.4081, allocations: 0.7002 MB / 497.6 MB, free: 7.113 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.829e-06/0.4081, allocations: 11.98 kB / 497.7 MB, free: 7.102 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.4081, allocations: 3.906 kB / 497.7 MB, free: 7.098 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001668/0.4098, allocations: 0.9543 MB / 498.6 MB, free: 6.031 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00253/0.4124, allocations: 1.364 MB / 500 MB, free: 4.613 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.4124, allocations: 0 / 500 MB, free: 4.613 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008244/0.4132, allocations: 143.8 kB / 0.4884 GB, free: 4.473 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006474/0.4139, allocations: 150.4 kB / 0.4885 GB, free: 4.32 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.002e-05/0.4139, allocations: 11.89 kB / 0.4885 GB, free: 4.309 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004097/0.418, allocations: 3.263 MB / 0.4917 GB, free: 0.8086 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.418, allocations: 0 / 0.4917 GB, free: 0.8086 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0965/0.5146, allocations: 0.9496 MB / 0.4927 GB, free: 134 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002765/0.5174, allocations: 2.027 MB / 0.4946 GB, free: 133.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002584/0.5176, allocations: 208.7 kB / 0.4948 GB, free: 133.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000112/0.5178, allocations: 3.656 kB / 0.4948 GB, free: 133.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004442/0.5182, allocations: 35.83 kB / 0.4949 GB, free: 133.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.282e-05/0.5183, allocations: 31.72 kB / 0.4949 GB, free: 133.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.283e-05/0.5183, allocations: 16.84 kB / 0.4949 GB, free: 133.4 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002969/0.5186, allocations: 325 kB / 0.4952 GB, free: 133.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001182/0.5198, allocations: 206.2 kB / 0.4954 GB, free: 133.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (pipe.T,heatCapacitor.T,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (46): * Single equations (assignments): 44 * 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: 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 2,1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001697/0.52, allocations: 126.5 kB / 0.4956 GB, free: 133.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001293/0.5213, allocations: 0.8009 MB / 0.4963 GB, free: 132.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5213, allocations: 3.656 kB / 0.4963 GB, free: 132.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006738/0.522, allocations: 455.8 kB / 0.4968 GB, free: 132.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000611/0.5226, allocations: 144.3 kB / 0.4969 GB, free: 132.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001701/0.5243, allocations: 0.926 MB / 0.4978 GB, free: 132.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004282/0.5248, allocations: 0.9704 MB / 0.4988 GB, free: 131.7 MB / 378.7 MB Notification: Performance of SimCode: time 3.8e-07/0.5248, allocations: 2.625 kB / 0.4988 GB, free: 131.7 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat does not exist to compare? outputFormat=mat