Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpPowerCharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpPowerCharacteristic",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.001257/0.001257, allocations: 192.5 kB / 7.806 MB, free: 2.488 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.612/1.612, allocations: 205.2 MB / 213.4 MB, free: 13.91 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009693/0.0009694, allocations: 87.61 kB / 261.4 MB, free: 13.61 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2251/0.2251, allocations: 43.48 MB / 352.8 MB, free: 2.031 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2484/0.4736, allocations: 64.98 MB / 417.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4047/0.8783, allocations: 58.84 MB / 476.7 MB, free: 5.188 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.631/7.509, allocations: 2.781 GB / 3.246 GB, free: 73.52 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003448/7.509, allocations: 83.95 kB / 3.246 GB, free: 73.44 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 1.812/9.322, allocations: 437.9 MB / 3.674 GB, free: 21.74 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/9.322, allocations: 15.92 kB / 3.674 GB, free: 21.73 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003118/9.325, allocations: 346.7 kB / 3.675 GB, free: 21.39 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001729/9.327, allocations: 0.5715 MB / 3.675 GB, free: 20.79 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.798e-05/9.327, allocations: 28 kB / 3.675 GB, free: 20.76 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002306/9.327, allocations: 32 kB / 3.675 GB, free: 20.73 MB / 0.4948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001271/9.328, allocations: 0.5531 MB / 3.676 GB, free: 20.17 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/9.33, allocations: 0.666 MB / 3.676 GB, free: 19.44 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.797e-05/9.33, allocations: 7.938 kB / 3.676 GB, free: 19.43 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.626e-05/9.33, allocations: 0 / 3.676 GB, free: 19.43 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-05/9.33, allocations: 25 kB / 3.676 GB, free: 19.41 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02114/9.351, allocations: 12.12 MB / 3.688 GB, free: 6.027 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006522/9.352, allocations: 343.1 kB / 3.689 GB, free: 5.688 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003157/9.352, allocations: 227.6 kB / 3.689 GB, free: 5.465 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4169/9.769, allocations: 55.7 MB / 3.743 GB, free: 92.66 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.265e-05/9.769, allocations: 34.25 kB / 3.743 GB, free: 92.62 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=47): time 3.497e-06/9.769, allocations: 3.906 kB / 3.743 GB, free: 92.62 MB / 0.5105 GB Notification: Performance of matching and sorting (n=51): time 0.007202/9.776, allocations: 1.859 MB / 3.745 GB, free: 92.32 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.698e-05/9.776, allocations: 110 kB / 3.745 GB, free: 92.19 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005329/9.777, allocations: 380.1 kB / 3.745 GB, free: 92.08 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.753e-05/9.777, allocations: 29.02 kB / 3.745 GB, free: 92.05 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000152/9.777, allocations: 271.5 kB / 3.746 GB, free: 91.9 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001499/9.777, allocations: 176.7 kB / 3.746 GB, free: 91.81 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.345e-05/9.777, allocations: 0 / 3.746 GB, free: 91.81 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001046/9.777, allocations: 361.2 kB / 3.746 GB, free: 91.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003267/9.778, allocations: 221.8 kB / 3.746 GB, free: 91.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004258/9.778, allocations: 383.1 kB / 3.747 GB, free: 91.32 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001294/9.78, allocations: 360.3 kB / 3.747 GB, free: 91.31 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/9.78, allocations: 2.344 kB / 3.747 GB, free: 91.31 MB / 0.5105 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003103/9.783, allocations: 1.116 MB / 3.748 GB, free: 91.23 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004304/9.783, allocations: 1.75 MB / 3.75 GB, free: 89.42 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/9.783, allocations: 2.938 kB / 3.75 GB, free: 89.42 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001279/9.784, allocations: 307.4 kB / 3.75 GB, free: 89.41 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005284/9.785, allocations: 142.9 kB / 3.75 GB, free: 89.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001862/9.787, allocations: 1.022 MB / 3.751 GB, free: 88.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009067/9.788, allocations: 88.8 kB / 3.751 GB, free: 88.88 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.08e-05/9.788, allocations: 38.67 kB / 3.752 GB, free: 88.88 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/9.788, allocations: 5.328 kB / 3.752 GB, free: 88.88 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00204/9.79, allocations: 0.7577 MB / 3.752 GB, free: 88.86 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/9.79, allocations: 7.188 kB / 3.752 GB, free: 88.86 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001388/9.791, allocations: 294.7 kB / 3.753 GB, free: 88.85 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005075/9.792, allocations: 145.6 kB / 3.753 GB, free: 88.85 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001332/9.793, allocations: 0.9343 MB / 3.754 GB, free: 88.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008323/9.794, allocations: 83.69 kB / 3.754 GB, free: 88.32 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-05/9.794, allocations: 37.75 kB / 3.754 GB, free: 88.32 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase,Valve.state_b.phase,Valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 55 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 18} Notification: Performance of prepare postOptimizeDAE: time 0.0002774/9.794, allocations: 126.4 kB / 3.754 GB, free: 88.21 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007875/9.795, allocations: 272.9 kB / 3.754 GB, free: 88.18 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003591/9.799, allocations: 2.596 MB / 3.757 GB, free: 87.96 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.46e-05/9.799, allocations: 31.2 kB / 3.757 GB, free: 87.96 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/9.799, allocations: 5.281 kB / 3.757 GB, free: 87.96 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/9.799, allocations: 0 / 3.757 GB, free: 87.96 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004587/9.803, allocations: 3.475 MB / 3.76 GB, free: 87.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.821e-06/9.804, allocations: 2.469 kB / 3.76 GB, free: 87.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00075/9.804, allocations: 158.8 kB / 3.76 GB, free: 87.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002401/9.805, allocations: 66.97 kB / 3.76 GB, free: 87.59 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.424e-05/9.805, allocations: 15.73 kB / 3.76 GB, free: 87.59 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006449/9.805, allocations: 1.216 MB / 3.761 GB, free: 86.48 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/9.805, allocations: 2.062 kB / 3.761 GB, free: 86.48 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004042/9.809, allocations: 2.708 MB / 3.764 GB, free: 86.17 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00507/9.814, allocations: 3.755 MB / 3.768 GB, free: 85.49 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005931/9.815, allocations: 274 kB / 3.768 GB, free: 85.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001224/9.815, allocations: 6.781 kB / 3.768 GB, free: 85.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006128/9.816, allocations: 62.78 kB / 3.768 GB, free: 85.34 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/9.816, allocations: 67.78 kB / 3.768 GB, free: 85.34 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.086e-05/9.816, allocations: 26.2 kB / 3.768 GB, free: 85.34 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0004311/9.816, allocations: 336.5 kB / 3.769 GB, free: 85.25 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008836/9.825, allocations: 1.666 MB / 3.77 GB, free: 85.25 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pump.medium.p,pump.medium.h) * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,Sink.medium.phase,pump.heatTransfer.states[1].phase,Source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01008/9.835, allocations: 1.899 MB / 3.772 GB, free: 85.14 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003053/9.838, allocations: 1.59 MB / 3.774 GB, free: 85.1 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/9.839, allocations: 3.625 kB / 3.774 GB, free: 85.1 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001374/9.84, allocations: 1.109 MB / 3.775 GB, free: 85.1 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001571/9.841, allocations: 258.8 kB / 3.775 GB, free: 85.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002917/9.844, allocations: 1.889 MB / 3.777 GB, free: 84.75 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006872/9.845, allocations: 1.159 MB / 3.778 GB, free: 84.04 MB / 0.5105 GB Notification: Performance of SimCode: time 9.62e-07/9.845, allocations: 3.906 kB / 3.778 GB, free: 84.04 MB / 0.5105 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpPowerCharacteristic_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpPowerCharacteristic.fmu > ModelicaTest_3.2.3_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic.pipe 2>&1)