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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001103/0.001104, allocations: 176.2 kB / 8.348 MB, free: 0.7266 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.734/1.734, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001055/0.001054, allocations: 79.81 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5778/0.5778, allocations: 48.77 MB / 358.8 MB, free: 53.16 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.531e-05/2.532e-05, allocations: 4 kB / 425.4 MB, free: 8.129 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1606/0.1606, allocations: 60.28 MB / 485.7 MB, free: 11.71 MB / 379.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.407/8.567, allocations: 2.85 GB / 3.324 GB, free: 135.1 MB / 0.5108 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001957/8.567, allocations: 82.16 kB / 3.325 GB, free: 135.1 MB / 0.5108 GB Notification: Performance of FrontEnd - DAE generated: time 2.493/11.06, allocations: 0.6707 GB / 3.995 GB, free: 48.2 MB / 0.5265 GB Notification: Performance of FrontEnd: time 1.813e-06/11.06, allocations: 0 / 3.995 GB, free: 48.2 MB / 0.5265 GB Notification: Performance of Transformations before backend: time 0.0001055/11.06, allocations: 24.41 kB / 3.995 GB, free: 48.19 MB / 0.5265 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 0.009049/11.07, allocations: 1.723 MB / 3.997 GB, free: 47.27 MB / 0.5265 GB Notification: Performance of prepare preOptimizeDAE: time 6.501e-05/11.07, allocations: 9.656 kB / 3.997 GB, free: 47.27 MB / 0.5265 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008055/11.07, allocations: 129.4 kB / 3.997 GB, free: 47.23 MB / 0.5265 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001873/11.07, allocations: 0.5905 MB / 3.998 GB, free: 46.94 MB / 0.5265 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.685e-05/11.07, allocations: 22.94 kB / 3.998 GB, free: 46.94 MB / 0.5265 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002454/11.07, allocations: 42.19 kB / 3.998 GB, free: 46.94 MB / 0.5265 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001137/11.07, allocations: 451.6 kB / 3.998 GB, free: 46.93 MB / 0.5265 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/11.07, allocations: 0.7852 MB / 3.999 GB, free: 46.59 MB / 0.5265 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.606e-05/11.07, allocations: 0 / 3.999 GB, free: 46.59 MB / 0.5265 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.444e-05/11.08, allocations: 2.375 kB / 3.999 GB, free: 46.59 MB / 0.5265 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.085e-05/11.08, allocations: 26.78 kB / 3.999 GB, free: 46.58 MB / 0.5265 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005306/11.08, allocations: 4.576 MB / 4.003 GB, free: 43.18 MB / 0.5265 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007861/11.08, allocations: 418.3 kB / 4.004 GB, free: 43.12 MB / 0.5265 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002623/11.08, allocations: 159.6 kB / 4.004 GB, free: 43.11 MB / 0.5265 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06351/11.15, allocations: 31.98 MB / 4.035 GB, free: 23.1 MB / 0.5265 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000689/11.15, allocations: 298.2 kB / 4.036 GB, free: 22.96 MB / 0.5265 GB Notification: Performance of pre-optimization done (n=41): time 2.805e-06/11.15, allocations: 3.938 kB / 4.036 GB, free: 22.96 MB / 0.5265 GB Notification: Performance of matching and sorting (n=41): time 0.001595/11.15, allocations: 0.5233 MB / 4.036 GB, free: 22.77 MB / 0.5265 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/11.15, allocations: 87.55 kB / 4.036 GB, free: 22.68 MB / 0.5265 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005028/11.15, allocations: 361.7 kB / 4.036 GB, free: 22.48 MB / 0.5265 GB Notification: Performance of collectPreVariables (initialization): time 7.676e-05/11.15, allocations: 29.7 kB / 4.037 GB, free: 22.45 MB / 0.5265 GB Notification: Performance of collectInitialEqns (initialization): time 0.000305/11.15, allocations: 381.5 kB / 4.037 GB, free: 22.16 MB / 0.5265 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001346/11.15, allocations: 136.9 kB / 4.037 GB, free: 22.05 MB / 0.5265 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.789e-05/11.15, allocations: 0 / 4.037 GB, free: 22.05 MB / 0.5265 GB Notification: Performance of setup shared object (initialization): time 0.000105/11.15, allocations: 367.5 kB / 4.037 GB, free: 21.71 MB / 0.5265 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002555/11.15, allocations: 131.9 kB / 4.037 GB, free: 21.66 MB / 0.5265 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000283/11.15, allocations: 241.8 kB / 4.038 GB, free: 21.48 MB / 0.5265 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003813/11.15, allocations: 140.2 kB / 4.038 GB, free: 21.44 MB / 0.5265 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/11.15, allocations: 0 / 4.038 GB, free: 21.44 MB / 0.5265 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.0009935/11.15, allocations: 490.6 kB / 4.038 GB, free: 21.24 MB / 0.5265 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003675/11.15, allocations: 1.155 MB / 4.039 GB, free: 20 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.444e-05/11.15, allocations: 7.75 kB / 4.039 GB, free: 20 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.232e-05/11.15, allocations: 6.125 kB / 4.039 GB, free: 20 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007674/11.15, allocations: 162.8 kB / 4.04 GB, free: 19.98 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.164e-05/11.15, allocations: 6.406 kB / 4.04 GB, free: 19.98 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001023/11.15, allocations: 153.5 kB / 4.04 GB, free: 19.96 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.315e-05/11.15, allocations: 31.59 kB / 4.04 GB, free: 19.95 MB / 0.5265 GB Notification: Performance of prepare postOptimizeDAE: time 9.838e-06/11.15, allocations: 6.438 kB / 4.04 GB, free: 19.94 MB / 0.5265 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007213/11.15, allocations: 383.6 kB / 4.04 GB, free: 19.82 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/11.15, allocations: 5.906 kB / 4.04 GB, free: 19.82 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.145e-06/11.15, allocations: 7.75 kB / 4.04 GB, free: 19.82 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005861/11.15, allocations: 158.2 kB / 4.04 GB, free: 19.8 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/11.15, allocations: 3.906 kB / 4.04 GB, free: 19.8 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009122/11.16, allocations: 160.6 kB / 4.04 GB, free: 19.77 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.359e-05/11.16, allocations: 17.59 kB / 4.04 GB, free: 19.77 MB / 0.5265 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.0001781/11.16, allocations: 129.3 kB / 4.041 GB, free: 19.65 MB / 0.5265 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007345/11.16, allocations: 369.7 kB / 4.041 GB, free: 19.5 MB / 0.5265 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/11.16, allocations: 65.41 kB / 4.041 GB, free: 19.47 MB / 0.5265 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001735/11.16, allocations: 1.564 MB / 4.043 GB, free: 18.7 MB / 0.5265 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.152e-05/11.16, allocations: 25.22 kB / 4.043 GB, free: 18.7 MB / 0.5265 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/11.16, allocations: 0 / 4.043 GB, free: 18.7 MB / 0.5265 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.815e-06/11.16, allocations: 3.562 kB / 4.043 GB, free: 18.7 MB / 0.5265 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00125/11.16, allocations: 0.9021 MB / 4.043 GB, free: 18.21 MB / 0.5265 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.014e-06/11.16, allocations: 4 kB / 4.043 GB, free: 18.2 MB / 0.5265 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005888/11.16, allocations: 143.2 kB / 4.044 GB, free: 18.19 MB / 0.5265 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.967e-06/11.16, allocations: 3.375 kB / 4.044 GB, free: 18.19 MB / 0.5265 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.081e-05/11.16, allocations: 6.688 kB / 4.044 GB, free: 18.19 MB / 0.5265 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.548e-06/11.16, allocations: 3.953 kB / 4.044 GB, free: 18.18 MB / 0.5265 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/11.16, allocations: 0 / 4.044 GB, free: 18.18 MB / 0.5265 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/11.16, allocations: 0.8538 MB / 4.044 GB, free: 17.76 MB / 0.5265 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003805/11.16, allocations: 212.4 kB / 4.045 GB, free: 17.58 MB / 0.5265 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/11.16, allocations: 7.609 kB / 4.045 GB, free: 17.57 MB / 0.5265 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008364/11.16, allocations: 126.2 kB / 4.045 GB, free: 17.57 MB / 0.5265 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001892/11.16, allocations: 76.17 kB / 4.045 GB, free: 17.55 MB / 0.5265 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-05/11.16, allocations: 18.53 kB / 4.045 GB, free: 17.54 MB / 0.5265 GB Notification: Performance of sorting global known variables: time 0.000333/11.16, allocations: 272.3 kB / 4.045 GB, free: 17.39 MB / 0.5265 GB Notification: Performance of sort global known variables: time 4.51e-07/11.16, allocations: 7.594 kB / 4.045 GB, free: 17.39 MB / 0.5265 GB Notification: Performance of remove unused functions: time 0.006045/11.17, allocations: 1.141 MB / 4.046 GB, free: 17.16 MB / 0.5265 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.01184/11.18, allocations: 3.503 MB / 4.05 GB, free: 15.75 MB / 0.5265 GB Notification: Performance of simCode: created initialization part: time 0.001911/11.18, allocations: 1.156 MB / 4.051 GB, free: 14.96 MB / 0.5265 GB Notification: Performance of simCode: created event and clocks part: time 7.854e-06/11.18, allocations: 0 / 4.051 GB, free: 14.96 MB / 0.5265 GB Notification: Performance of simCode: created simulation system equations: time 0.0006427/11.18, allocations: 438.8 kB / 4.051 GB, free: 14.75 MB / 0.5265 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001744/11.19, allocations: 238.3 kB / 4.051 GB, free: 14.7 MB / 0.5265 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00711/11.19, allocations: 1.662 MB / 4.053 GB, free: 13.97 MB / 0.5265 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005237/11.19, allocations: 1.035 MB / 4.054 GB, free: 13.25 MB / 0.5265 GB Notification: Performance of simCode: alias equations: time 0.001024/11.19, allocations: 400.3 kB / 4.054 GB, free: 13.21 MB / 0.5265 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004851/11.19, allocations: 335.9 kB / 4.055 GB, free: 12.94 MB / 0.5265 GB Notification: Performance of SimCode: time 1.843e-06/11.19, allocations: 3.938 kB / 4.055 GB, free: 12.94 MB / 0.5265 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5364/11.73, allocations: 43.59 MB / 4.097 GB, free: 65.51 MB / 0.5421 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002083/11.73, allocations: 127.5 kB / 4.097 GB, free: 65.32 MB / 0.5421 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.852/15.58, allocations: 0 / 4.097 GB, free: 65.32 MB / 0.5421 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)