Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpPowerCharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic,fileNamePrefix="ModelicaTest_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009691/0.0009692, allocations: 175.5 kB / 8.518 MB, free: 1.848 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.182/1.182, allocations: 221.4 MB / 230.3 MB, free: 7.688 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.0009295/0.0009295, allocations: 81.61 kB / 281.2 MB, free: 5.523 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1632/0.1632, allocations: 44.15 MB / 376.1 MB, free: 3.238 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1913/0.3545, allocations: 68.03 MB / 444.1 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.4599, allocations: 61.91 MB / 0.4942 GB, free: 1.531 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.537/4.996, allocations: 2.786 GB / 3.281 GB, free: 154.3 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/4.997, allocations: 86.61 kB / 3.281 GB, free: 154.3 MB / 0.5105 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.382/6.378, allocations: 442.6 MB / 3.713 GB, free: 73.86 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.392e-05/6.378, allocations: 16.86 kB / 3.713 GB, free: 73.86 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003287/6.382, allocations: 348.9 kB / 3.713 GB, free: 73.82 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001715/6.383, allocations: 0.5684 MB / 3.714 GB, free: 73.59 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.447e-05/6.383, allocations: 29 kB / 3.714 GB, free: 73.58 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001744/6.384, allocations: 34.25 kB / 3.714 GB, free: 73.58 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00117/6.385, allocations: 0.5514 MB / 3.714 GB, free: 73.58 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001082/6.386, allocations: 0.6705 MB / 3.715 GB, free: 73.39 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.332e-05/6.386, allocations: 3.562 kB / 3.715 GB, free: 73.39 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.479e-05/6.386, allocations: 0 / 3.715 GB, free: 73.39 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.923e-05/6.386, allocations: 23.56 kB / 3.715 GB, free: 73.39 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02046/6.407, allocations: 12.12 MB / 3.727 GB, free: 65.57 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007032/6.407, allocations: 341.9 kB / 3.727 GB, free: 65.55 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003669/6.408, allocations: 228 kB / 3.727 GB, free: 65.54 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1094/6.517, allocations: 55.7 MB / 3.782 GB, free: 30.86 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.908e-05/6.517, allocations: 35.88 kB / 3.782 GB, free: 30.82 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=47): time 3.045e-06/6.517, allocations: 3.062 kB / 3.782 GB, free: 30.82 MB / 0.5261 GB Notification: Performance of matching and sorting (n=51): time 0.006578/6.524, allocations: 1.863 MB / 3.784 GB, free: 30.43 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.357e-05/6.524, allocations: 113.6 kB / 3.784 GB, free: 30.3 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004962/6.524, allocations: 380.2 kB / 3.784 GB, free: 30.19 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.852e-05/6.524, allocations: 25.7 kB / 3.784 GB, free: 30.16 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001198/6.525, allocations: 274 kB / 3.785 GB, free: 29.99 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.000125/6.525, allocations: 174.3 kB / 3.785 GB, free: 29.88 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.596e-05/6.525, allocations: 0 / 3.785 GB, free: 29.88 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.731e-05/6.525, allocations: 368.5 kB / 3.785 GB, free: 29.56 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003256/6.525, allocations: 216.4 kB / 3.785 GB, free: 29.56 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003792/6.525, allocations: 382.7 kB / 3.786 GB, free: 29.38 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001247/6.527, allocations: 359 kB / 3.786 GB, free: 29.37 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/6.527, allocations: 7.906 kB / 3.786 GB, free: 29.36 MB / 0.5261 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.003028/6.53, allocations: 1.112 MB / 3.787 GB, free: 29.28 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003099/6.53, allocations: 1.748 MB / 3.789 GB, free: 27.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/6.53, allocations: 3.906 kB / 3.789 GB, free: 27.46 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001237/6.531, allocations: 317.2 kB / 3.789 GB, free: 27.44 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005166/6.532, allocations: 135.5 kB / 3.789 GB, free: 27.44 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001765/6.534, allocations: 1.028 MB / 3.79 GB, free: 26.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000828/6.535, allocations: 86.22 kB / 3.79 GB, free: 26.89 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.784e-05/6.535, allocations: 35.41 kB / 3.79 GB, free: 26.89 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.837e-06/6.535, allocations: 3.875 kB / 3.79 GB, free: 26.89 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002027/6.537, allocations: 0.7564 MB / 3.791 GB, free: 26.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/6.537, allocations: 6.469 kB / 3.791 GB, free: 26.86 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001389/6.538, allocations: 299.9 kB / 3.791 GB, free: 26.85 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005196/6.539, allocations: 149.1 kB / 3.791 GB, free: 26.84 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001319/6.54, allocations: 0.9317 MB / 3.792 GB, free: 26.31 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007545/6.541, allocations: 88.41 kB / 3.792 GB, free: 26.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.619e-05/6.541, allocations: 37.52 kB / 3.792 GB, free: 26.3 MB / 0.5261 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.0001825/6.541, allocations: 119.8 kB / 3.793 GB, free: 26.19 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007822/6.542, allocations: 272.8 kB / 3.793 GB, free: 26.16 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003171/6.545, allocations: 2.602 MB / 3.795 GB, free: 25.93 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.413e-05/6.545, allocations: 29 kB / 3.795 GB, free: 25.93 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/6.545, allocations: 3.609 kB / 3.795 GB, free: 25.93 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.138e-06/6.545, allocations: 3.938 kB / 3.795 GB, free: 25.93 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003933/6.549, allocations: 3.473 MB / 3.799 GB, free: 25.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/6.549, allocations: 0 / 3.799 GB, free: 25.55 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007217/6.55, allocations: 159.8 kB / 3.799 GB, free: 25.54 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002298/6.55, allocations: 64.16 kB / 3.799 GB, free: 25.53 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.976e-05/6.55, allocations: 17.56 kB / 3.799 GB, free: 25.53 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005439/6.551, allocations: 1.22 MB / 3.8 GB, free: 24.42 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/6.551, allocations: 2.875 kB / 3.8 GB, free: 24.42 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003498/6.554, allocations: 2.708 MB / 3.803 GB, free: 24.11 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004393/6.558, allocations: 3.768 MB / 3.807 GB, free: 23.42 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004513/6.559, allocations: 265.9 kB / 3.807 GB, free: 23.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001794/6.559, allocations: 7.5 kB / 3.807 GB, free: 23.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006948/6.56, allocations: 67.08 kB / 3.807 GB, free: 23.26 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/6.56, allocations: 57.72 kB / 3.807 GB, free: 23.26 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.683e-05/6.56, allocations: 30.89 kB / 3.807 GB, free: 23.26 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.0003902/6.56, allocations: 333.9 kB / 3.807 GB, free: 23.17 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.008207/6.569, allocations: 1.667 MB / 3.809 GB, free: 22.97 MB / 0.5261 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.01056/6.579, allocations: 1.896 MB / 3.811 GB, free: 22.56 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003898/6.583, allocations: 1.596 MB / 3.812 GB, free: 22.53 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.536e-06/6.583, allocations: 2.031 kB / 3.812 GB, free: 22.53 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001829/6.585, allocations: 1.111 MB / 3.813 GB, free: 22.52 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001836/6.587, allocations: 273 kB / 3.814 GB, free: 22.51 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004072/6.591, allocations: 1.875 MB / 3.816 GB, free: 22.09 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00107/6.592, allocations: 1.168 MB / 3.817 GB, free: 21.37 MB / 0.5261 GB Notification: Performance of SimCode: time 1.874e-06/6.592, allocations: 0 / 3.817 GB, free: 21.37 MB / 0.5261 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpPowerCharacteristic_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpPowerCharacteristic.fmu > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic.pipe 2>&1)