Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps.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/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/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(ThermoPower.Test.WaterComponents.WaterPumps,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_WaterPumps",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.WaterPumps,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_WaterPumps",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.0009836/0.0009837, allocations: 181.1 kB / 8.136 MB, free: 2.184 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.128/1.128, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.0009686/0.0009687, allocations: 95.48 kB / 261.7 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3334/0.3334, allocations: 48.76 MB / 358.5 MB, free: 53.09 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1105/0.4439, allocations: 66.37 MB / 424.8 MB, free: 8.109 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1183/0.5622, allocations: 60.24 MB / 485.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.587/5.149, allocations: 2.888 GB / 3.362 GB, free: 142.8 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001806/5.149, allocations: 78.69 kB / 3.362 GB, free: 142.8 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: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 1.244/6.393, allocations: 496.1 MB / 3.846 GB, free: 42.9 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/6.393, allocations: 10.56 kB / 3.846 GB, free: 42.9 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006294/6.394, allocations: 134.3 kB / 3.846 GB, free: 42.85 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002336/6.396, allocations: 0.7638 MB / 3.847 GB, free: 42.43 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001325/6.396, allocations: 120.7 kB / 3.847 GB, free: 42.34 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001404/6.397, allocations: 41.86 kB / 3.847 GB, free: 42.34 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008594/6.397, allocations: 471.1 kB / 3.848 GB, free: 42.17 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009609/6.398, allocations: 0.7446 MB / 3.848 GB, free: 41.73 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/6.398, allocations: 7.5 kB / 3.848 GB, free: 41.72 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.883e-05/6.399, allocations: 3.5 kB / 3.848 GB, free: 41.72 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.425e-05/6.399, allocations: 20.06 kB / 3.848 GB, free: 41.72 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003471/6.402, allocations: 3.392 MB / 3.852 GB, free: 38.94 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009361/6.403, allocations: 432.6 kB / 3.852 GB, free: 38.79 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002981/6.403, allocations: 174.5 kB / 3.852 GB, free: 38.72 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05697/6.46, allocations: 32.14 MB / 3.884 GB, free: 18.53 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.853e-05/6.46, allocations: 38.94 kB / 3.884 GB, free: 18.48 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=53): time 3.016e-06/6.46, allocations: 3.719 kB / 3.884 GB, free: 18.48 MB / 0.5105 GB Notification: Performance of matching and sorting (n=53): time 0.002623/6.463, allocations: 0.6881 MB / 3.884 GB, free: 18.25 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.902e-05/6.463, allocations: 58.38 kB / 3.884 GB, free: 18.19 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004417/6.464, allocations: 375.2 kB / 3.885 GB, free: 17.99 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.571e-05/6.464, allocations: 31.73 kB / 3.885 GB, free: 17.96 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001157/6.464, allocations: 279.3 kB / 3.885 GB, free: 17.75 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001255/6.464, allocations: 177 kB / 3.885 GB, free: 17.61 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.922e-05/6.464, allocations: 0 / 3.885 GB, free: 17.61 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.359e-05/6.464, allocations: 370 kB / 3.886 GB, free: 17.27 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002201/6.464, allocations: 139.8 kB / 3.886 GB, free: 17.22 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002485/6.464, allocations: 245.2 kB / 3.886 GB, free: 17.05 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005863/6.465, allocations: 168.8 kB / 3.886 GB, free: 16.99 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/6.465, allocations: 10.88 kB / 3.886 GB, free: 16.98 MB / 0.5105 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002329/6.467, allocations: 0.7689 MB / 3.887 GB, free: 16.72 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002401/6.468, allocations: 1.137 MB / 3.888 GB, free: 15.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/6.468, allocations: 2.906 kB / 3.888 GB, free: 15.52 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001322/6.469, allocations: 321.1 kB / 3.888 GB, free: 15.44 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004248/6.469, allocations: 105.7 kB / 3.888 GB, free: 15.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001877/6.471, allocations: 2.076 MB / 3.89 GB, free: 13.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006968/6.472, allocations: 86.89 kB / 3.891 GB, free: 13.69 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.507e-05/6.472, allocations: 45.77 kB / 3.891 GB, free: 13.69 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.002e-05/6.472, allocations: 3.219 kB / 3.891 GB, free: 13.69 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001578/6.474, allocations: 0.5535 MB / 3.891 GB, free: 13.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/6.474, allocations: 5.125 kB / 3.891 GB, free: 13.52 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006407/6.474, allocations: 210.6 kB / 3.891 GB, free: 13.46 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004477/6.475, allocations: 118 kB / 3.891 GB, free: 13.45 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001105/6.476, allocations: 1.843 MB / 3.893 GB, free: 11.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006766/6.477, allocations: 84.14 kB / 3.893 GB, free: 11.78 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.112e-05/6.477, allocations: 27.48 kB / 3.893 GB, free: 11.77 MB / 0.5105 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: Pump2.dp:VARIABLE(unit = "Pa" ) "Outlet pressure minus inlet pressure" type: Real Pump2.w:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flow rate (total)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: Pump3.w:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flow rate (total)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: Pump1.w:VARIABLE(min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flow rate (total)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 (Pump3.int_Np,Pump2.int_Np,Pump1.int_Np,Pump3.inletFluidState.phase,Pump2.inletFluidState.phase,Pump1.inletFluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {3 6,3 6,3 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002329/6.477, allocations: 127 kB / 3.893 GB, free: 11.66 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003111/6.477, allocations: 129.6 kB / 3.894 GB, free: 11.61 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002403/6.48, allocations: 1.685 MB / 3.895 GB, free: 10.89 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.321e-05/6.48, allocations: 13.47 kB / 3.895 GB, free: 10.89 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/6.48, allocations: 2.938 kB / 3.895 GB, free: 10.89 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/6.48, allocations: 7.359 kB / 3.895 GB, free: 10.89 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008882/6.481, allocations: 0.7086 MB / 3.896 GB, free: 10.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/6.481, allocations: 0 / 3.896 GB, free: 10.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004168/6.481, allocations: 79.67 kB / 3.896 GB, free: 10.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001532/6.483, allocations: 1.078 MB / 3.897 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.449e-05/6.483, allocations: 13.28 kB / 3.897 GB, free: 10.28 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00171/6.484, allocations: 2.553 MB / 3.9 GB, free: 8.328 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/6.484, allocations: 0 / 3.9 GB, free: 8.328 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002227/6.487, allocations: 1.624 MB / 3.901 GB, free: 7.559 MB / 0.5105 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002948/6.49, allocations: 2.347 MB / 3.903 GB, free: 6.23 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003467/6.49, allocations: 199.7 kB / 3.904 GB, free: 6.066 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001242/6.49, allocations: 0.9375 kB / 3.904 GB, free: 6.066 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005559/6.491, allocations: 56.33 kB / 3.904 GB, free: 6.059 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001244/6.491, allocations: 37.72 kB / 3.904 GB, free: 6.055 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.12e-05/6.491, allocations: 24.38 kB / 3.904 GB, free: 6.051 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0003406/6.491, allocations: 277.9 kB / 3.904 GB, free: 5.906 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006746/6.498, allocations: 1.403 MB / 3.905 GB, free: 5.418 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (Pump1.h,Pump2.h,Pump3.h) * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 29 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 8,2 8,2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.007584/6.505, allocations: 1.924 MB / 3.907 GB, free: 4.871 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002039/6.508, allocations: 1.019 MB / 3.908 GB, free: 3.945 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/6.508, allocations: 3.938 kB / 3.908 GB, free: 3.941 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0008363/6.508, allocations: 0.6069 MB / 3.909 GB, free: 3.387 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001335/6.51, allocations: 248.4 kB / 3.909 GB, free: 3.223 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002409/6.512, allocations: 1.385 MB / 3.91 GB, free: 1.957 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004832/6.513, allocations: 1.061 MB / 3.912 GB, free: 0.9922 MB / 0.5105 GB Notification: Performance of SimCode: time 3.51e-07/6.513, allocations: 0 / 3.912 GB, free: 0.9922 MB / 0.5105 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_WaterPumps_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_WaterPumps.fmu > ThermoPower_ThermoPower.Test.WaterComponents.WaterPumps.pipe 2>&1)