Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_DB.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_DB,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFV_DB",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_DB,fileNamePrefix="ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFV_DB",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.0009349/0.0009349, allocations: 183.4 kB / 8.13 MB, free: 2.219 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.9915/0.9915, allocations: 205.2 MB / 213.7 MB, free: 13.86 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.0008085/0.0008085, allocations: 96.38 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.279/0.279, allocations: 48.76 MB / 358.4 MB, free: 53.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08915/0.3682, allocations: 66.37 MB / 424.8 MB, free: 8.109 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0882/0.4564, allocations: 60.25 MB / 485.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.008/4.465, allocations: 2.965 GB / 3.439 GB, free: 83.98 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002066/4.465, allocations: 77.94 kB / 3.439 GB, free: 83.91 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: 505 * Number of variables: 505 Notification: Performance of Generate backend data structure: time 1.025/5.49, allocations: 379.1 MB / 3.809 GB, free: 56.59 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.447e-05/5.49, allocations: 13.94 kB / 3.809 GB, free: 56.59 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003974/5.494, allocations: 0.5973 MB / 3.81 GB, free: 56.5 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003869/5.498, allocations: 1.306 MB / 3.811 GB, free: 56.18 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001078/5.498, allocations: 67.09 kB / 3.811 GB, free: 56.18 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007137/5.499, allocations: 114 kB / 3.811 GB, free: 56.18 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00584/5.505, allocations: 3.698 MB / 3.815 GB, free: 55.82 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004813/5.51, allocations: 2.935 MB / 3.818 GB, free: 54.77 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.367e-05/5.51, allocations: 0.75 kB / 3.818 GB, free: 54.77 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003148/5.51, allocations: 3.656 kB / 3.818 GB, free: 54.77 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.129e-05/5.51, allocations: 96.98 kB / 3.818 GB, free: 54.76 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01388/5.524, allocations: 12.56 MB / 3.83 GB, free: 46.48 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006066/5.53, allocations: 2.88 MB / 3.833 GB, free: 45.55 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001955/5.532, allocations: 1.423 MB / 3.834 GB, free: 45 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3412/5.873, allocations: 113 MB / 3.945 GB, free: 124.4 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.682e-05/5.873, allocations: 61.69 kB / 3.945 GB, free: 124.4 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=244): time 4.098e-06/5.873, allocations: 0 / 3.945 GB, free: 124.4 MB / 0.5417 GB Notification: Performance of matching and sorting (n=244): time 0.01094/5.884, allocations: 4.633 MB / 3.949 GB, free: 124.3 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.007e-05/5.884, allocations: 77.97 kB / 3.949 GB, free: 124.2 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004882/5.885, allocations: 396.1 kB / 3.95 GB, free: 124.1 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.0001496/5.885, allocations: 31.83 kB / 3.95 GB, free: 124.1 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001864/5.885, allocations: 467 kB / 3.95 GB, free: 123.9 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005507/5.886, allocations: 0.8053 MB / 3.951 GB, free: 123.5 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001376/5.886, allocations: 0 / 3.951 GB, free: 123.5 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001143/5.886, allocations: 426.1 kB / 3.951 GB, free: 123.2 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001485/5.888, allocations: 1.267 MB / 3.953 GB, free: 123.2 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00161/5.889, allocations: 1.517 MB / 3.954 GB, free: 123 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004362/5.894, allocations: 1.999 MB / 3.956 GB, free: 122.9 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/5.894, allocations: 0 / 3.956 GB, free: 122.9 MB / 0.5417 GB Notification: Performance of matching and sorting (n=274) (initialization): time 0.01025/5.904, allocations: 5.555 MB / 3.961 GB, free: 122.7 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002086/5.904, allocations: 1.403 MB / 3.963 GB, free: 121.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/5.904, allocations: 3.375 kB / 3.963 GB, free: 121.3 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01461/5.919, allocations: 4.088 MB / 3.967 GB, free: 121.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005012/5.919, allocations: 115.3 kB / 3.967 GB, free: 121.2 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01173/5.931, allocations: 7.459 MB / 3.974 GB, free: 120.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001632/5.933, allocations: 254.8 kB / 3.974 GB, free: 120.6 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002123/5.933, allocations: 94.95 kB / 3.975 GB, free: 120.6 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 8.055e-06/5.933, allocations: 7.312 kB / 3.975 GB, free: 120.6 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008477/5.941, allocations: 4.8 MB / 3.979 GB, free: 120.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/5.941, allocations: 3.906 kB / 3.979 GB, free: 120.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01469/5.956, allocations: 4.09 MB / 3.983 GB, free: 120.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004226/5.957, allocations: 108.3 kB / 3.983 GB, free: 120.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01209/5.969, allocations: 7.458 MB / 3.991 GB, free: 119.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001602/5.97, allocations: 228.7 kB / 3.991 GB, free: 119.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002273/5.97, allocations: 94.72 kB / 3.991 GB, free: 119.7 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 12 (hexFV.fluidState[10].phase,hexFV.fluidState[9].phase,hexFV.fluidState[8].phase,hexFV.fluidState[7].phase,hexFV.fluidState[6].phase,hexFV.fluidState[5].phase,hexFV.fluidState[4].phase,hexFV.fluidState[3].phase,hexFV.fluidState[2].phase,hexFV.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 (63): * Single equations (assignments): 62 * 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 {10 202} Notification: Performance of prepare postOptimizeDAE: time 0.0004711/5.971, allocations: 129.1 kB / 3.991 GB, free: 119.6 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001859/5.973, allocations: 0.6715 MB / 3.992 GB, free: 119.6 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01253/5.985, allocations: 8.733 MB / 4 GB, free: 119.2 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.479e-05/5.985, allocations: 61.16 kB / 4 GB, free: 119.2 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.495e-05/5.985, allocations: 7.625 kB / 4 GB, free: 119.2 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.541e-05/5.986, allocations: 10.31 kB / 4 GB, free: 119.2 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00412/5.99, allocations: 3.233 MB / 4.003 GB, free: 118.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/5.99, allocations: 2.625 kB / 4.003 GB, free: 118.9 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001736/5.991, allocations: 393.1 kB / 4.004 GB, free: 118.9 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003573/5.995, allocations: 0.9562 MB / 4.005 GB, free: 118.9 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002901/5.995, allocations: 65.7 kB / 4.005 GB, free: 118.9 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007706/6.003, allocations: 5.298 MB / 4.01 GB, free: 117.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/6.003, allocations: 0 / 4.01 GB, free: 117.5 MB / 0.5417 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01689/6.02, allocations: 10.14 MB / 4.02 GB, free: 114.8 MB / 0.5417 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02118/6.041, allocations: 13.35 MB / 4.033 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001177/6.042, allocations: 0.5837 MB / 4.034 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003814/6.043, allocations: 19.97 kB / 4.034 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001505/6.044, allocations: 116.5 kB / 4.034 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003008/6.045, allocations: 145.3 kB / 4.034 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002238/6.045, allocations: 86.45 kB / 4.034 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of sort global known variables: time 0.0003501/6.045, allocations: 302.7 kB / 4.034 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008053/6.053, allocations: 2.231 MB / 4.036 GB, free: 108.2 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (hexFV.p,hexFV.htilde[1],hexFV.htilde[2],hexFV.htilde[3],hexFV.htilde[4],hexFV.htilde[5],hexFV.htilde[6],hexFV.htilde[7],hexFV.htilde[8],hexFV.htilde[9]) * Number of discrete variables: 24 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (229): * Single equations (assignments): 216 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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 {(10,64.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007001/6.06, allocations: 1.825 MB / 4.038 GB, free: 108 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.009121/6.069, allocations: 6.711 MB / 4.045 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/6.069, allocations: 4 kB / 4.045 GB, free: 105.6 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.004137/6.074, allocations: 3.915 MB / 4.049 GB, free: 103.8 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002552/6.076, allocations: 497.5 kB / 4.049 GB, free: 103.8 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008646/6.085, allocations: 5.922 MB / 4.055 GB, free: 101.8 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001859/6.087, allocations: 1.935 MB / 4.057 GB, free: 100.9 MB / 0.5417 GB Notification: Performance of SimCode: time 9.71e-07/6.087, allocations: 0 / 4.057 GB, free: 100.9 MB / 0.5417 GB (rm -f ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_DB.pipe ; mkfifo ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_DB.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_DB.pipe >> ../files/ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_DB.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFV_DB_fmu --startTime=0 --stopTime=40 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_DistributedParameterComponents_TestWaterFlow1DFV_DB.fmu > ThermoPower_ThermoPower.Test.DistributedParameterComponents.TestWaterFlow1DFV_DB.pipe 2>&1)