Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.0009927/0.0009927, allocations: 203 kB / 8.542 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.131/1.131, allocations: 225.5 MB / 234.4 MB, free: 3.301 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008725/0.0008726, allocations: 91.08 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09605/0.09694, allocations: 56.9 MB / 343.2 MB, free: 8.602 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08439/0.1814, allocations: 51.48 MB / 394.7 MB, free: 5.074 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1946/0.376, allocations: 82.73 MB / 477.4 MB, free: 10.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001626/0.3762, allocations: 79.97 kB / 477.5 MB, free: 10.34 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.03259/0.4088, allocations: 14.53 MB / 492.1 MB, free: 14.69 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.446e-05/0.4089, allocations: 12 kB / 492.1 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002692/0.4091, allocations: 90.31 kB / 492.2 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006867/0.4098, allocations: 458 kB / 492.6 MB, free: 14.17 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001317/0.41, allocations: 84.39 kB / 492.7 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.694e-05/0.4101, allocations: 31.89 kB / 492.7 MB, free: 14.04 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006573/0.4107, allocations: 364 kB / 493.1 MB, free: 13.81 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007791/0.4115, allocations: 0.5321 MB / 493.6 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.4116, allocations: 0 / 493.6 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.4e-05/0.4116, allocations: 0 / 493.6 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.372e-05/0.4116, allocations: 12 kB / 493.6 MB, free: 13.31 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003135/0.4148, allocations: 1.821 MB / 495.4 MB, free: 11.83 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001765/0.4165, allocations: 0.6347 MB / 496.1 MB, free: 11.31 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003242/0.4169, allocations: 217.8 kB / 496.3 MB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.406e-05/0.417, allocations: 12.48 kB / 496.3 MB, free: 11.17 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.539e-05/0.417, allocations: 46.22 kB / 496.3 MB, free: 11.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=56): time 1.863e-06/0.417, allocations: 0 / 496.3 MB, free: 11.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=56): time 0.001833/0.4188, allocations: 0.6576 MB / 497 MB, free: 10.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002083/0.4191, allocations: 0.574 MB / 497.6 MB, free: 9.887 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004941/0.4196, allocations: 416.1 kB / 498 MB, free: 9.57 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.886e-05/0.4196, allocations: 25.7 kB / 498 MB, free: 9.539 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001217/0.4197, allocations: 205.2 kB / 498.2 MB, free: 9.359 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001709/0.4199, allocations: 185.8 kB / 498.4 MB, free: 9.195 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.649e-05/0.42, allocations: 0 / 498.4 MB, free: 9.195 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.4201, allocations: 367.9 kB / 498.7 MB, free: 8.852 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003077/0.4204, allocations: 158 kB / 498.9 MB, free: 8.762 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004573/0.4209, allocations: 351 kB / 499.2 MB, free: 8.426 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003536/0.4212, allocations: 182.1 kB / 499.4 MB, free: 8.316 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.4213, allocations: 0 / 499.4 MB, free: 8.316 MB / 362.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001829/0.4231, allocations: 0.711 MB / 0.4884 GB, free: 7.742 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.4231, allocations: 5.875 kB / 0.4884 GB, free: 7.738 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.896e-06/0.4231, allocations: 3.984 kB / 0.4884 GB, free: 7.734 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008971/0.424, allocations: 208.5 kB / 0.4886 GB, free: 7.566 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008202/0.4249, allocations: 139.4 kB / 0.4887 GB, free: 7.434 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005536/0.4304, allocations: 4.812 MB / 0.4934 GB, free: 2.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005706/0.431, allocations: 71.73 kB / 0.4935 GB, free: 2.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.395e-05/0.4311, allocations: 15 kB / 0.4935 GB, free: 2.668 MB / 362.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.0001914/0.4313, allocations: 138.6 kB / 0.4937 GB, free: 2.531 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.4314, allocations: 71.16 kB / 0.4937 GB, free: 2.461 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001986/0.4334, allocations: 0.6854 MB / 0.4944 GB, free: 1.941 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.866e-06/0.4334, allocations: 16.02 kB / 0.4944 GB, free: 1.926 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.4334, allocations: 8 kB / 0.4944 GB, free: 1.918 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001743/0.4352, allocations: 0.9584 MB / 0.4954 GB, free: 0.9766 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002688/0.4379, allocations: 1.355 MB / 0.4967 GB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/0.4379, allocations: 4 kB / 0.4967 GB, free: 15.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000857/0.4387, allocations: 139.8 kB / 0.4968 GB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006848/0.4394, allocations: 161.5 kB / 0.497 GB, free: 15.47 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.342e-05/0.4395, allocations: 3.984 kB / 0.497 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004203/0.4437, allocations: 3.263 MB / 0.5002 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.4437, allocations: 0 / 0.5002 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002061/0.4458, allocations: 0.9505 MB / 0.5011 GB, free: 10.99 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003132/0.4489, allocations: 2.031 MB / 0.5031 GB, free: 8.938 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002772/0.4492, allocations: 204.2 kB / 0.5033 GB, free: 8.719 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.923e-05/0.4493, allocations: 7.984 kB / 0.5033 GB, free: 8.711 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004497/0.4498, allocations: 35.97 kB / 0.5033 GB, free: 8.676 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.511e-05/0.4499, allocations: 32.44 kB / 0.5033 GB, free: 8.645 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.743e-05/0.4499, allocations: 17.41 kB / 0.5034 GB, free: 8.629 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003633/0.4503, allocations: 323 kB / 0.5037 GB, free: 8.316 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00125/0.4516, allocations: 211.6 kB / 0.5039 GB, free: 8.109 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.000171/0.4517, allocations: 119.1 kB / 0.504 GB, free: 7.984 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001407/0.4531, allocations: 0.8008 MB / 0.5048 GB, free: 7.152 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.4532, allocations: 4 kB / 0.5048 GB, free: 7.148 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007629/0.4539, allocations: 464.1 kB / 0.5052 GB, free: 6.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006617/0.4546, allocations: 136.9 kB / 0.5053 GB, free: 6.551 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0019/0.4565, allocations: 0.9184 MB / 0.5062 GB, free: 5.609 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000563/0.4571, allocations: 0.9733 MB / 0.5072 GB, free: 4.613 MB / 378.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4571, allocations: 0 / 0.5072 GB, free: 4.613 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe >> ../files/Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat --tempDir=temp_Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_PumpAndValve.fmu > Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.PumpAndValve_res.mat does not exist to compare? outputFormat=mat