Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_AdaptiveAverageTemp.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.DistributedParameterComponents.TestWaterFlow1DFV_AdaptiveAverageTemp,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFV_AdaptiveAverageTemp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_AdaptiveAverageTemp,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFV_AdaptiveAverageTemp",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.0009189/0.000919, allocations: 185.3 kB / 8.131 MB, free: 2.074 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9966/0.9966, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.0007769/0.000777, allocations: 87.38 kB / 261.7 MB, free: 13.56 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2934/0.2934, allocations: 48.75 MB / 358.4 MB, free: 53.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09632/0.3897, allocations: 66.37 MB / 424.8 MB, free: 8.117 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09558/0.4853, allocations: 60.25 MB / 485.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.156/4.641, allocations: 2.965 GB / 3.439 GB, free: 84.65 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002012/4.641, allocations: 78.83 kB / 3.439 GB, free: 84.59 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: 208 * Number of variables: 208 Notification: Performance of Generate backend data structure: time 0.9608/5.602, allocations: 362.4 MB / 3.793 GB, free: 57.96 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.265e-05/5.602, allocations: 11.03 kB / 3.793 GB, free: 57.96 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001311/5.604, allocations: 251.3 kB / 3.793 GB, free: 57.91 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001506/5.605, allocations: 0.7124 MB / 3.794 GB, free: 57.64 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.378e-05/5.605, allocations: 26.34 kB / 3.794 GB, free: 57.64 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/5.605, allocations: 48.33 kB / 3.794 GB, free: 57.64 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001451/5.607, allocations: 1.042 MB / 3.795 GB, free: 57.64 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001334/5.608, allocations: 1.057 MB / 3.796 GB, free: 57.46 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/5.608, allocations: 4.312 kB / 3.796 GB, free: 57.46 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.779e-05/5.608, allocations: 3.562 kB / 3.796 GB, free: 57.46 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.524e-05/5.608, allocations: 41.94 kB / 3.796 GB, free: 57.45 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004475/5.613, allocations: 4.629 MB / 3.801 GB, free: 54.87 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008418/5.614, allocations: 0.7572 MB / 3.802 GB, free: 54.84 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004113/5.614, allocations: 380.7 kB / 3.802 GB, free: 54.83 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1385/5.752, allocations: 80.15 MB / 3.88 GB, free: 36.21 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.195e-05/5.752, allocations: 46.38 kB / 3.88 GB, free: 36.16 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=72): time 2.735e-06/5.753, allocations: 0 / 3.88 GB, free: 36.16 MB / 0.5417 GB Notification: Performance of matching and sorting (n=72): time 0.003328/5.756, allocations: 1.28 MB / 3.881 GB, free: 35.79 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.114e-05/5.756, allocations: 59.88 kB / 3.881 GB, free: 35.73 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003981/5.756, allocations: 349.5 kB / 3.882 GB, free: 35.55 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.587e-05/5.756, allocations: 25.7 kB / 3.882 GB, free: 35.52 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/5.756, allocations: 317 kB / 3.882 GB, free: 35.27 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.000155/5.757, allocations: 242.9 kB / 3.882 GB, free: 35.09 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.287e-05/5.757, allocations: 0 / 3.882 GB, free: 35.09 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000112/5.757, allocations: 372.2 kB / 3.883 GB, free: 34.75 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004208/5.757, allocations: 336.6 kB / 3.883 GB, free: 34.63 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004645/5.758, allocations: 478.8 kB / 3.884 GB, free: 34.35 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008851/5.759, allocations: 437.3 kB / 3.884 GB, free: 34.21 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/5.759, allocations: 0 / 3.884 GB, free: 34.21 MB / 0.5417 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.003048/5.762, allocations: 1.541 MB / 3.885 GB, free: 33.73 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002672/5.762, allocations: 0.8813 MB / 3.886 GB, free: 32.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/5.762, allocations: 2.906 kB / 3.886 GB, free: 32.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002397/5.764, allocations: 0.7805 MB / 3.887 GB, free: 32.64 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003855/5.765, allocations: 89.88 kB / 3.887 GB, free: 32.63 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002743/5.768, allocations: 1.967 MB / 3.889 GB, free: 31.67 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007189/5.768, allocations: 101.1 kB / 3.889 GB, free: 31.64 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.797e-05/5.768, allocations: 35.8 kB / 3.889 GB, free: 31.63 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 6.713e-06/5.768, allocations: 7.062 kB / 3.889 GB, free: 31.62 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0021/5.77, allocations: 1.166 MB / 3.89 GB, free: 31.27 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/5.77, allocations: 0 / 3.89 GB, free: 31.27 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002351/5.773, allocations: 0.7772 MB / 3.891 GB, free: 31.1 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000327/5.773, allocations: 85.34 kB / 3.891 GB, free: 31.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002838/5.776, allocations: 1.972 MB / 3.893 GB, free: 30.13 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006368/5.777, allocations: 97.23 kB / 3.893 GB, free: 30.1 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.312e-05/5.777, allocations: 33.88 kB / 3.893 GB, free: 30.09 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 6 (hex.fluidState[4].phase,hex.fluidState[3].phase,hex.fluidState[2].phase,hex.fluidState[1].phase,T_out.fluidState.phase,T_in.fluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 41} Notification: Performance of prepare postOptimizeDAE: time 0.0001879/5.777, allocations: 113.5 kB / 3.893 GB, free: 29.98 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008626/5.778, allocations: 340.3 kB / 3.894 GB, free: 29.9 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003996/5.782, allocations: 3.077 MB / 3.897 GB, free: 28.68 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.266e-05/5.782, allocations: 29.77 kB / 3.897 GB, free: 28.67 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/5.782, allocations: 1.188 kB / 3.897 GB, free: 28.67 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/5.782, allocations: 11.17 kB / 3.897 GB, free: 28.67 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001567/5.783, allocations: 1.311 MB / 3.898 GB, free: 28.03 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/5.783, allocations: 0.5625 kB / 3.898 GB, free: 28.03 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006099/5.784, allocations: 138.8 kB / 3.898 GB, free: 28.02 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001209/5.785, allocations: 286.8 kB / 3.898 GB, free: 27.96 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.026e-05/5.785, allocations: 20.03 kB / 3.898 GB, free: 27.96 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003108/5.788, allocations: 2.305 MB / 3.901 GB, free: 26.39 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/5.789, allocations: 0 / 3.901 GB, free: 26.39 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.006023/5.795, allocations: 3.493 MB / 3.904 GB, free: 24.93 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006399/5.801, allocations: 4.768 MB / 3.909 GB, free: 21.45 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003637/5.801, allocations: 257.6 kB / 3.909 GB, free: 21.21 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001222/5.801, allocations: 8 kB / 3.909 GB, free: 21.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005889/5.802, allocations: 58.38 kB / 3.909 GB, free: 21.16 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001165/5.802, allocations: 54.2 kB / 3.909 GB, free: 21.13 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.959e-05/5.802, allocations: 31.98 kB / 3.909 GB, free: 21.11 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0002794/5.803, allocations: 269.2 kB / 3.909 GB, free: 20.87 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006039/5.809, allocations: 1.629 MB / 3.911 GB, free: 19.26 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (hex.p,hex.htilde[1],hex.htilde[2],hex.htilde[3]) * Number of discrete variables: 12 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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: 1 {(4,81.2%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00629/5.815, allocations: 1.791 MB / 3.913 GB, free: 17.82 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002862/5.818, allocations: 2.165 MB / 3.915 GB, free: 15.85 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/5.818, allocations: 0 / 3.915 GB, free: 15.85 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001399/5.819, allocations: 1.522 MB / 3.916 GB, free: 14.43 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00117/5.82, allocations: 240.7 kB / 3.917 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003323/5.824, allocations: 2.356 MB / 3.919 GB, free: 12.18 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001005/5.825, allocations: 1.237 MB / 3.92 GB, free: 11.07 MB / 0.5417 GB Notification: Performance of SimCode: time 2.81e-07/5.825, allocations: 0 / 3.92 GB, free: 11.07 MB / 0.5417 GB (rm -f ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_AdaptiveAverageTemp.pipe ; mkfifo ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_AdaptiveAverageTemp.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_AdaptiveAverageTemp.pipe >> ../files/ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_AdaptiveAverageTemp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFV_AdaptiveAverageTemp_fmu --startTime=0 --stopTime=200 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFV_AdaptiveAverageTemp.fmu > ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_AdaptiveAverageTemp.pipe 2>&1)