Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.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.PumpAndValve,fileNamePrefix="Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001141/0.001141, allocations: 174.9 kB / 8.473 MB, free: 1.875 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.276/1.276, 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.0009221/0.000922, allocations: 90.25 kB / 262.1 MB, free: 5.496 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2069/0.2079, allocations: 52.96 MB / 315.1 MB, free: 41.44 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07695/0.2848, allocations: 47.58 MB / 362.6 MB, free: 9.902 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2722/0.5571, allocations: 82.62 MB / 445.2 MB, free: 10.64 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000175/0.5573, allocations: 72.88 kB / 445.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: 111 * Number of variables: 111 Notification: Performance of Generate backend data structure: time 0.03665/0.5939, allocations: 14.6 MB / 459.9 MB, free: 5.375 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.494e-05/0.594, allocations: 8.906 kB / 459.9 MB, free: 5.375 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003419/0.5944, allocations: 92.66 kB / 460 MB, free: 5.332 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/0.5954, allocations: 457 kB / 460.5 MB, free: 5.027 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001566/0.5956, allocations: 82.61 kB / 460.5 MB, free: 4.957 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001103/0.5957, allocations: 30.84 kB / 460.6 MB, free: 4.953 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008248/0.5966, allocations: 362.9 kB / 460.9 MB, free: 4.926 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009457/0.5975, allocations: 0.5357 MB / 461.5 MB, free: 4.633 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.683e-05/0.5975, allocations: 0 / 461.5 MB, free: 4.633 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.394e-05/0.5976, allocations: 6.219 kB / 461.5 MB, free: 4.629 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.298e-05/0.5976, allocations: 15.06 kB / 461.5 MB, free: 4.625 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003734/0.6014, allocations: 1.814 MB / 463.3 MB, free: 3.645 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001882/0.6033, allocations: 0.6316 MB / 463.9 MB, free: 3.457 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003878/0.6037, allocations: 217.8 kB / 464.1 MB, free: 3.441 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.632e-05/0.6038, allocations: 22.86 kB / 464.2 MB, free: 3.434 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.438e-05/0.6038, allocations: 39.62 kB / 464.2 MB, free: 3.395 MB / 314.7 MB Notification: Performance of pre-optimization done (n=56): time 2.254e-06/0.6038, allocations: 0 / 464.2 MB, free: 3.395 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.002003/0.6058, allocations: 0.6622 MB / 464.9 MB, free: 3.203 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001401/0.606, allocations: 0.5677 MB / 465.4 MB, free: 2.508 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005297/0.6065, allocations: 413.8 kB / 465.8 MB, free: 2.363 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.956e-05/0.6066, allocations: 28.45 kB / 465.9 MB, free: 2.332 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.6067, allocations: 211.5 kB / 466.1 MB, free: 2.176 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001522/0.6068, allocations: 180.9 kB / 466.3 MB, free: 2.039 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.571e-05/0.6069, allocations: 0 / 466.3 MB, free: 2.039 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.353e-05/0.607, allocations: 369.3 kB / 466.6 MB, free: 1.707 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002762/0.6073, allocations: 152.4 kB / 466.8 MB, free: 1.703 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003923/0.6077, allocations: 361 kB / 467.1 MB, free: 1.469 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003592/0.608, allocations: 190.3 kB / 467.3 MB, free: 1.438 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.608, allocations: 0 / 467.3 MB, free: 1.438 MB / 314.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00189/0.6099, allocations: 0.6999 MB / 468 MB, free: 1.242 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.6099, allocations: 3.812 kB / 468 MB, free: 1.242 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.884e-06/0.61, allocations: 9 kB / 468 MB, free: 1.234 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009148/0.6109, allocations: 214 kB / 468.2 MB, free: 1.164 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007959/0.6117, allocations: 137.7 kB / 468.4 MB, free: 1.133 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005496/0.6172, allocations: 4.808 MB / 473.2 MB, free: 13.15 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006721/0.6179, allocations: 81.95 kB / 473.2 MB, free: 13.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.169e-05/0.618, allocations: 16.31 kB / 473.3 MB, free: 13.11 MB / 330.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.0002375/0.6182, allocations: 120.3 kB / 473.4 MB, free: 13 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001755/0.6184, allocations: 74.23 kB / 473.4 MB, free: 12.96 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001995/0.6204, allocations: 0.7036 MB / 474.2 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.6204, allocations: 5.062 kB / 474.2 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.6204, allocations: 0 / 474.2 MB, free: 12.75 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001683/0.6221, allocations: 0.9517 MB / 475.1 MB, free: 12.11 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002813/0.6249, allocations: 1.365 MB / 476.5 MB, free: 11.49 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.625, allocations: 0.9688 kB / 476.5 MB, free: 11.49 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008555/0.6258, allocations: 145.9 kB / 476.6 MB, free: 11.45 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006824/0.6265, allocations: 154.8 kB / 476.8 MB, free: 11.4 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.319e-05/0.6266, allocations: 6.141 kB / 476.8 MB, free: 11.39 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005681/0.6323, allocations: 3.262 MB / 480 MB, free: 8.695 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.988e-06/0.6323, allocations: 1.156 kB / 480 MB, free: 8.695 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002932/0.6352, allocations: 0.9565 MB / 481 MB, free: 8.18 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004055/0.6393, allocations: 2.026 MB / 483 MB, free: 6.715 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004857/0.6398, allocations: 208 kB / 483.2 MB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001466/0.64, allocations: 0 / 483.2 MB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007203/0.6407, allocations: 35.97 kB / 483.3 MB, free: 6.492 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.6408, allocations: 28.14 kB / 483.3 MB, free: 6.469 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.638e-05/0.6409, allocations: 23.48 kB / 483.3 MB, free: 6.449 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0006402/0.6416, allocations: 323.8 kB / 483.6 MB, free: 6.219 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002373/0.644, allocations: 207.6 kB / 483.8 MB, free: 6.016 MB / 330.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.0002725/0.6443, allocations: 119.1 kB / 483.9 MB, free: 5.891 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002295/0.6466, allocations: 0.8001 MB / 484.7 MB, free: 5.207 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.6466, allocations: 4 kB / 484.7 MB, free: 5.203 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001268/0.6479, allocations: 457.3 kB / 485.2 MB, free: 4.816 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001137/0.649, allocations: 150.2 kB / 485.3 MB, free: 4.703 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003129/0.6522, allocations: 0.9246 MB / 486.3 MB, free: 3.859 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006426/0.6528, allocations: 0.9723 MB / 487.2 MB, free: 2.863 MB / 330.7 MB Notification: Performance of SimCode: time 4.1e-07/0.6528, allocations: 0 / 487.2 MB, free: 2.863 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat does not exist to compare? outputFormat=mat