Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_D.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_D,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFV_D",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_D,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFV_D",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.0009968/0.0009968, allocations: 182.9 kB / 8.135 MB, free: 2.223 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.1/1.1, 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.0008322/0.0008323, allocations: 83.39 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.305/0.305, allocations: 48.75 MB / 358.4 MB, free: 53.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09875/0.4038, allocations: 66.38 MB / 424.8 MB, free: 8.113 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.5054, allocations: 60.26 MB / 485.1 MB, free: 11.72 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.241/4.746, allocations: 2.959 GB / 3.433 GB, free: 66.36 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002198/4.747, allocations: 75.97 kB / 3.433 GB, free: 66.29 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: 216 * Number of variables: 216 Notification: Performance of Generate backend data structure: time 0.8406/5.587, allocations: 291.5 MB / 3.718 GB, free: 59.23 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/5.587, allocations: 11.44 kB / 3.718 GB, free: 59.23 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001397/5.589, allocations: 268.9 kB / 3.718 GB, free: 59.18 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001512/5.59, allocations: 0.6928 MB / 3.719 GB, free: 58.96 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.073e-05/5.59, allocations: 26.5 kB / 3.719 GB, free: 58.96 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000118/5.59, allocations: 50.62 kB / 3.719 GB, free: 58.96 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001429/5.592, allocations: 1.116 MB / 3.72 GB, free: 58.96 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/5.593, allocations: 1.105 MB / 3.721 GB, free: 58.78 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/5.593, allocations: 0 / 3.721 GB, free: 58.78 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.537e-05/5.593, allocations: 3.5 kB / 3.721 GB, free: 58.78 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.67e-05/5.593, allocations: 45.28 kB / 3.721 GB, free: 58.78 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004701/5.598, allocations: 5.244 MB / 3.726 GB, free: 55.73 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007243/5.599, allocations: 0.6973 MB / 3.727 GB, free: 55.71 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003577/5.599, allocations: 350.1 kB / 3.727 GB, free: 55.7 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1075/5.707, allocations: 64.03 MB / 3.79 GB, free: 31.99 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/5.707, allocations: 44.19 kB / 3.79 GB, free: 31.95 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=67): time 2.575e-06/5.707, allocations: 0 / 3.79 GB, free: 31.95 MB / 0.5261 GB Notification: Performance of matching and sorting (n=67): time 0.003254/5.71, allocations: 1.312 MB / 3.791 GB, free: 31.84 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.775e-05/5.71, allocations: 59.75 kB / 3.791 GB, free: 31.77 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003662/5.71, allocations: 367.9 kB / 3.791 GB, free: 31.66 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.784e-05/5.711, allocations: 29.7 kB / 3.791 GB, free: 31.63 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/5.711, allocations: 335.2 kB / 3.792 GB, free: 31.44 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001323/5.711, allocations: 228.7 kB / 3.792 GB, free: 31.29 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.699e-05/5.711, allocations: 0 / 3.792 GB, free: 31.29 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001183/5.711, allocations: 369.9 kB / 3.792 GB, free: 30.98 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003773/5.711, allocations: 330.8 kB / 3.793 GB, free: 30.97 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004257/5.712, allocations: 478.8 kB / 3.793 GB, free: 30.82 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007554/5.713, allocations: 426.5 kB / 3.793 GB, free: 30.82 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/5.713, allocations: 0 / 3.793 GB, free: 30.82 MB / 0.5261 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00286/5.715, allocations: 1.527 MB / 3.795 GB, free: 30.72 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002567/5.716, allocations: 0.9586 MB / 3.796 GB, free: 29.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.423e-06/5.716, allocations: 3.219 kB / 3.796 GB, free: 29.71 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001879/5.718, allocations: 0.6117 MB / 3.797 GB, free: 29.69 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003551/5.718, allocations: 92.33 kB / 3.797 GB, free: 29.69 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002661/5.721, allocations: 1.86 MB / 3.798 GB, free: 29.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006647/5.721, allocations: 108.5 kB / 3.799 GB, free: 29.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.305e-05/5.721, allocations: 33.61 kB / 3.799 GB, free: 29.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 6.993e-06/5.721, allocations: 7.281 kB / 3.799 GB, free: 29.09 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002022/5.723, allocations: 1.138 MB / 3.8 GB, free: 29.06 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-06/5.723, allocations: 3.75 kB / 3.8 GB, free: 29.06 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001833/5.725, allocations: 0.6125 MB / 3.8 GB, free: 29.04 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003328/5.726, allocations: 93.05 kB / 3.8 GB, free: 29.04 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002683/5.728, allocations: 1.853 MB / 3.802 GB, free: 28.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000659/5.729, allocations: 101.4 kB / 3.802 GB, free: 28.45 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.943e-05/5.729, allocations: 27.34 kB / 3.802 GB, free: 28.45 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 5 (hex.fluidState[5].phase,hex.fluidState[4].phase,hex.fluidState[3].phase,hex.fluidState[2].phase,hex.fluidState[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 49 * 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 {5 37} Notification: Performance of prepare postOptimizeDAE: time 0.0002107/5.729, allocations: 122 kB / 3.802 GB, free: 28.34 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008232/5.73, allocations: 338.7 kB / 3.803 GB, free: 28.31 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003329/5.733, allocations: 3.025 MB / 3.806 GB, free: 28.11 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.972e-05/5.733, allocations: 29.23 kB / 3.806 GB, free: 28.11 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.925e-06/5.733, allocations: 3.875 kB / 3.806 GB, free: 28.11 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/5.733, allocations: 3.938 kB / 3.806 GB, free: 28.11 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001114/5.735, allocations: 1.26 MB / 3.807 GB, free: 27.91 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.957e-06/5.735, allocations: 0.5625 kB / 3.807 GB, free: 27.91 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003633/5.735, allocations: 102.1 kB / 3.807 GB, free: 27.91 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001479/5.736, allocations: 415.1 kB / 3.807 GB, free: 27.88 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.59e-05/5.737, allocations: 25.95 kB / 3.807 GB, free: 27.87 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004274/5.741, allocations: 3.972 MB / 3.811 GB, free: 41.39 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/5.741, allocations: 1 kB / 3.811 GB, free: 41.39 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00542/5.746, allocations: 3.412 MB / 3.815 GB, free: 41.08 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006413/5.753, allocations: 4.622 MB / 3.819 GB, free: 40.41 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000367/5.753, allocations: 238.1 kB / 3.819 GB, free: 40.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001058/5.753, allocations: 11.73 kB / 3.819 GB, free: 40.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005088/5.754, allocations: 60.47 kB / 3.819 GB, free: 40.25 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.797e-05/5.754, allocations: 44.7 kB / 3.82 GB, free: 40.25 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.551e-05/5.754, allocations: 30.31 kB / 3.82 GB, free: 40.25 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0003143/5.754, allocations: 273.7 kB / 3.82 GB, free: 40.16 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.006042/5.76, allocations: 1.462 MB / 3.821 GB, free: 39.95 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (hex.p,hex.htilde[1],hex.htilde[2],hex.htilde[3],hex.htilde[4]) * Number of discrete variables: 10 ($cse2.phase,$cse2.region,$cse5.phase,$cse5.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 (63): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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: 2 {(5,76.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00475/5.765, allocations: 1.477 MB / 3.823 GB, free: 39.64 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002997/5.768, allocations: 2.197 MB / 3.825 GB, free: 39.59 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.486e-06/5.768, allocations: 1.25 kB / 3.825 GB, free: 39.59 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001698/5.77, allocations: 1.627 MB / 3.826 GB, free: 39.38 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0012/5.771, allocations: 232.4 kB / 3.827 GB, free: 39.36 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002994/5.774, allocations: 2.392 MB / 3.829 GB, free: 38.83 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007609/5.775, allocations: 1.227 MB / 3.83 GB, free: 38.11 MB / 0.5417 GB Notification: Performance of SimCode: time 3.6e-07/5.775, allocations: 4 kB / 3.83 GB, free: 38.11 MB / 0.5417 GB (rm -f ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_D.pipe ; mkfifo ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_D.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_D.pipe >> ../files/ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_D.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFV_D_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFV_D.fmu > ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_D.pipe 2>&1)