Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.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.TestSplitRev,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestSplitRev",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestSplitRev,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestSplitRev",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.0009522/0.0009522, allocations: 181.5 kB / 8.129 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 1.086/1.086, allocations: 205.2 MB / 213.7 MB, free: 13.92 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.0008871/0.0008871, allocations: 93.97 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3495/0.3495, allocations: 48.76 MB / 358.4 MB, free: 53.11 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1082/0.4578, allocations: 66.37 MB / 424.8 MB, free: 8.117 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1085/0.5663, allocations: 60.26 MB / 485.1 MB, free: 11.72 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.4/4.966, allocations: 2.85 GB / 3.324 GB, free: 14.96 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000288/4.967, allocations: 75.61 kB / 3.324 GB, free: 14.89 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 1.992/6.959, allocations: 0.6742 GB / 3.998 GB, free: 45.51 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/6.959, allocations: 7.5 kB / 3.998 GB, free: 45.51 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004456/6.959, allocations: 126.2 kB / 3.998 GB, free: 45.46 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001131/6.96, allocations: 0.5995 MB / 3.999 GB, free: 45.18 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.948e-05/6.96, allocations: 19.5 kB / 3.999 GB, free: 45.18 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.86e-05/6.96, allocations: 47.91 kB / 3.999 GB, free: 45.18 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007819/6.961, allocations: 447.6 kB / 3.999 GB, free: 45.18 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009282/6.962, allocations: 0.7855 MB / 4 GB, free: 44.85 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.094e-05/6.962, allocations: 4.219 kB / 4 GB, free: 44.85 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.03e-05/6.962, allocations: 5.438 kB / 4 GB, free: 44.85 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.316e-05/6.962, allocations: 17.06 kB / 4 GB, free: 44.85 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003746/6.966, allocations: 4.686 MB / 4.005 GB, free: 41.41 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005366/6.967, allocations: 365.4 kB / 4.005 GB, free: 41.36 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002285/6.967, allocations: 166 kB / 4.005 GB, free: 41.35 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05439/7.021, allocations: 32.02 MB / 4.036 GB, free: 21.95 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004679/7.022, allocations: 268.6 kB / 4.037 GB, free: 21.88 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=41): time 2.365e-06/7.022, allocations: 0 / 4.037 GB, free: 21.88 MB / 0.5261 GB Notification: Performance of matching and sorting (n=41): time 0.001306/7.023, allocations: 0.5074 MB / 4.037 GB, free: 21.81 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.899e-05/7.023, allocations: 84.27 kB / 4.037 GB, free: 21.72 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004266/7.023, allocations: 364.6 kB / 4.038 GB, free: 21.6 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.964e-05/7.024, allocations: 33.39 kB / 4.038 GB, free: 21.57 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001739/7.024, allocations: 315 kB / 4.038 GB, free: 21.38 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 8.764e-05/7.024, allocations: 119.2 kB / 4.038 GB, free: 21.3 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.287e-05/7.024, allocations: 3.719 kB / 4.038 GB, free: 21.3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.844e-05/7.024, allocations: 368.2 kB / 4.038 GB, free: 20.98 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002407/7.024, allocations: 149.1 kB / 4.039 GB, free: 20.98 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002641/7.024, allocations: 236.9 kB / 4.039 GB, free: 20.88 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003621/7.025, allocations: 156.7 kB / 4.039 GB, free: 20.88 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/7.025, allocations: 0 / 4.039 GB, free: 20.88 MB / 0.5261 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001219/7.026, allocations: 0.5975 MB / 4.04 GB, free: 20.81 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001728/7.026, allocations: 1.051 MB / 4.041 GB, free: 19.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/7.026, allocations: 3.219 kB / 4.041 GB, free: 19.72 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/7.026, allocations: 7.594 kB / 4.041 GB, free: 19.72 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007164/7.027, allocations: 176.1 kB / 4.041 GB, free: 19.72 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.085e-06/7.027, allocations: 7.734 kB / 4.041 GB, free: 19.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008987/7.028, allocations: 180.3 kB / 4.041 GB, free: 19.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.067e-05/7.028, allocations: 22.58 kB / 4.041 GB, free: 19.7 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 5.921e-06/7.028, allocations: 7.344 kB / 4.041 GB, free: 19.7 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007194/7.029, allocations: 348.5 kB / 4.041 GB, free: 19.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/7.029, allocations: 0 / 4.041 GB, free: 19.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.625e-06/7.029, allocations: 6.938 kB / 4.041 GB, free: 19.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006057/7.029, allocations: 182.3 kB / 4.041 GB, free: 19.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/7.029, allocations: 8.625 kB / 4.041 GB, free: 19.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008528/7.03, allocations: 164.3 kB / 4.042 GB, free: 19.68 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.682e-05/7.03, allocations: 16.66 kB / 4.042 GB, free: 19.68 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition2,$whenCondition1,$PRE.Sine1.T_start,Sine1.T_start,$PRE.Sine1.count,Sine1.count,$PRE.Sine2.T_start,Sine2.T_start,$PRE.Sine2.count,Sine2.count,$whenCondition4,$whenCondition3,$PRE.Sine3.T_start,Sine3.T_start,$PRE.Sine3.count,Sine3.count,$PRE.Sine4.T_start,Sine4.T_start,$PRE.Sine4.count,Sine4.count,T3.fluidState.phase,T2.fluidState.phase,T1.fluidState.phase,T6.fluidState.phase,T5.fluidState.phase,T4.fluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001552/7.03, allocations: 138.3 kB / 4.042 GB, free: 19.57 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004415/7.031, allocations: 176.5 kB / 4.042 GB, free: 19.54 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001758/7.033, allocations: 1.849 MB / 4.044 GB, free: 19.36 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.231e-05/7.033, allocations: 29.88 kB / 4.044 GB, free: 19.36 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/7.033, allocations: 0 / 4.044 GB, free: 19.36 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.874e-06/7.033, allocations: 0 / 4.044 GB, free: 19.36 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/7.034, allocations: 0.9227 MB / 4.045 GB, free: 19.17 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/7.034, allocations: 3.906 kB / 4.045 GB, free: 19.17 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006318/7.034, allocations: 148 kB / 4.045 GB, free: 19.17 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/7.034, allocations: 4.75 kB / 4.045 GB, free: 19.17 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.091e-05/7.034, allocations: 11.22 kB / 4.045 GB, free: 19.17 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.948e-06/7.035, allocations: 11 kB / 4.045 GB, free: 19.17 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/7.035, allocations: 0 / 4.045 GB, free: 19.17 MB / 0.5261 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001655/7.036, allocations: 1.449 MB / 4.046 GB, free: 18.96 MB / 0.5261 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001682/7.038, allocations: 1.883 MB / 4.048 GB, free: 18.37 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002666/7.038, allocations: 195.1 kB / 4.048 GB, free: 18.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001082/7.038, allocations: 10.66 kB / 4.048 GB, free: 18.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000746/7.039, allocations: 145.3 kB / 4.048 GB, free: 18.22 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001695/7.039, allocations: 80.28 kB / 4.049 GB, free: 18.22 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-05/7.039, allocations: 15.27 kB / 4.049 GB, free: 18.22 MB / 0.5261 GB Notification: Performance of sort global known variables: time 0.000219/7.039, allocations: 271.9 kB / 4.049 GB, free: 18.13 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.005951/7.045, allocations: 1.433 MB / 4.05 GB, free: 17.94 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$whenCondition4,$whenCondition3,Sine3.T_start,Sine3.count,Sine4.T_start,Sine4.count,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$whenCondition2,$whenCondition1,Sine1.T_start,Sine1.count,Sine2.T_start,Sine2.count) * Number of discrete states: 4 (Sine2.count,Sine1.count,Sine4.count,Sine3.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007163/7.053, allocations: 2.175 MB / 4.052 GB, free: 17.66 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001691/7.054, allocations: 1.318 MB / 4.054 GB, free: 17.39 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/7.054, allocations: 0 / 4.054 GB, free: 17.39 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0008881/7.055, allocations: 0.8348 MB / 4.054 GB, free: 17.39 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001219/7.056, allocations: 224.1 kB / 4.055 GB, free: 17.38 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002943/7.059, allocations: 1.53 MB / 4.056 GB, free: 17.05 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008443/7.06, allocations: 1.107 MB / 4.057 GB, free: 32.33 MB / 0.5417 GB Notification: Performance of SimCode: time 3.21e-07/7.06, allocations: 0 / 4.057 GB, free: 32.33 MB / 0.5417 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestSplitRev_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestSplitRev.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestSplitRev.pipe 2>&1)