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.002802/0.002802, allocations: 179.5 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.126/2.126, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.000996/0.0009963, allocations: 93.86 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.6248/0.6248, allocations: 48.78 MB / 367.9 MB, free: 47.44 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004818/0.0004817, allocations: 8 kB / 438.7 MB, free: 10.88 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1624/0.1629, allocations: 60.23 MB / 499 MB, free: 14.51 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.455/8.618, allocations: 2.851 GB / 3.338 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002433/8.618, allocations: 83.22 kB / 3.338 GB, free: 104.7 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 2.493/11.11, allocations: 0.6785 GB / 4.017 GB, free: 28.96 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.154e-06/11.11, allocations: 0 / 4.017 GB, free: 28.96 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.185e-05/11.11, allocations: 25.78 kB / 4.017 GB, free: 28.95 MB / 0.5261 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.008863/11.12, allocations: 1.813 MB / 4.019 GB, free: 27.7 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.175e-05/11.12, allocations: 14.19 kB / 4.019 GB, free: 27.7 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002496/11.12, allocations: 116.6 kB / 4.019 GB, free: 27.59 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003939/11.12, allocations: 133.6 kB / 4.019 GB, free: 27.53 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001203/11.12, allocations: 0.585 MB / 4.019 GB, free: 27.04 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.117e-05/11.12, allocations: 65.94 kB / 4.02 GB, free: 26.98 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.339e-05/11.12, allocations: 64 kB / 4.02 GB, free: 26.91 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002034/11.12, allocations: 1.145 MB / 4.021 GB, free: 25.67 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/11.12, allocations: 0 / 4.021 GB, free: 25.67 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.111e-05/11.12, allocations: 36 kB / 4.021 GB, free: 25.64 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/11.12, allocations: 16 kB / 4.021 GB, free: 25.62 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002163/11.13, allocations: 0.8894 MB / 4.022 GB, free: 24.75 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004365/11.13, allocations: 4.728 MB / 4.026 GB, free: 19.64 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002274/11.13, allocations: 0.8136 MB / 4.027 GB, free: 18.83 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5164/11.65, allocations: 31.87 MB / 4.058 GB, free: 59.03 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002089/11.65, allocations: 0.5485 MB / 4.059 GB, free: 58.96 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=41): time 4.509e-06/11.65, allocations: 0 / 4.059 GB, free: 58.96 MB / 0.5417 GB Notification: Performance of matching and sorting (n=41): time 0.00514/11.66, allocations: 1.215 MB / 4.06 GB, free: 58.93 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.945e-05/11.66, allocations: 87.25 kB / 4.06 GB, free: 58.83 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009307/11.66, allocations: 496.5 kB / 4.06 GB, free: 58.71 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 9.867e-05/11.66, allocations: 40.86 kB / 4.06 GB, free: 58.68 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004333/11.66, allocations: 372.4 kB / 4.061 GB, free: 58.57 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001886/11.66, allocations: 135.6 kB / 4.061 GB, free: 58.51 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.045e-05/11.66, allocations: 8.125 kB / 4.061 GB, free: 58.51 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001827/11.66, allocations: 380.8 kB / 4.061 GB, free: 58.2 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001113/11.66, allocations: 311.8 kB / 4.062 GB, free: 58.2 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001144/11.66, allocations: 412.1 kB / 4.062 GB, free: 58.1 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001134/11.66, allocations: 425.8 kB / 4.062 GB, free: 57.97 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/11.66, allocations: 1.406 kB / 4.062 GB, free: 57.97 MB / 0.5417 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.002924/11.67, allocations: 0.9417 MB / 4.063 GB, free: 57.78 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003759/11.67, allocations: 1.158 MB / 4.064 GB, free: 56.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/11.67, allocations: 5.406 kB / 4.064 GB, free: 56.57 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.757e-05/11.67, allocations: 4.781 kB / 4.064 GB, free: 56.57 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008084/11.67, allocations: 163.6 kB / 4.065 GB, free: 56.57 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.846e-05/11.67, allocations: 7.016 kB / 4.065 GB, free: 56.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001317/11.67, allocations: 186.1 kB / 4.065 GB, free: 56.55 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.07e-05/11.67, allocations: 25.22 kB / 4.065 GB, free: 56.55 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/11.67, allocations: 3.844 kB / 4.065 GB, free: 56.55 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002355/11.67, allocations: 0.8515 MB / 4.066 GB, free: 56.42 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.088e-06/11.67, allocations: 2.5 kB / 4.066 GB, free: 56.42 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/11.67, allocations: 4.781 kB / 4.066 GB, free: 56.42 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006644/11.67, allocations: 160.7 kB / 4.066 GB, free: 56.42 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/11.67, allocations: 4.953 kB / 4.066 GB, free: 56.42 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001129/11.67, allocations: 179.7 kB / 4.066 GB, free: 56.41 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.253e-05/11.67, allocations: 24.11 kB / 4.066 GB, free: 56.41 MB / 0.5417 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 () * Number of clocked 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.0005781/11.67, allocations: 278.9 kB / 4.066 GB, free: 56.21 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/11.67, allocations: 72.73 kB / 4.066 GB, free: 56.18 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003034/11.68, allocations: 1.928 MB / 4.068 GB, free: 56.01 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.062e-05/11.68, allocations: 27.89 kB / 4.068 GB, free: 56.01 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/11.68, allocations: 3.75 kB / 4.068 GB, free: 56.01 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/11.68, allocations: 0 / 4.068 GB, free: 56.01 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001219/11.68, allocations: 1.029 MB / 4.069 GB, free: 55.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/11.68, allocations: 4.406 kB / 4.069 GB, free: 55.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005872/11.68, allocations: 134.6 kB / 4.069 GB, free: 55.79 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.293e-06/11.68, allocations: 5.906 kB / 4.069 GB, free: 55.79 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.682e-05/11.68, allocations: 13.7 kB / 4.069 GB, free: 55.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/11.68, allocations: 5.906 kB / 4.069 GB, free: 55.79 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/11.68, allocations: 0.6875 kB / 4.069 GB, free: 55.79 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00215/11.68, allocations: 1.215 MB / 4.071 GB, free: 55.61 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003842/11.68, allocations: 214.6 kB / 4.071 GB, free: 55.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.928e-05/11.68, allocations: 17.17 kB / 4.071 GB, free: 55.46 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007273/11.68, allocations: 138.8 kB / 4.071 GB, free: 55.46 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001847/11.68, allocations: 73.73 kB / 4.071 GB, free: 55.46 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.969e-05/11.68, allocations: 20.39 kB / 4.071 GB, free: 55.46 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0005035/11.68, allocations: 388.9 kB / 4.071 GB, free: 55.37 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.4e-07/11.68, allocations: 0.5625 kB / 4.071 GB, free: 55.37 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00637/11.69, allocations: 1.203 MB / 4.073 GB, free: 55.35 MB / 0.5417 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) * Number of clocked states: 0 () * 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.0116/11.7, allocations: 3.557 MB / 4.076 GB, free: 54.5 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003508/11.7, allocations: 1.685 MB / 4.078 GB, free: 53.98 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/11.7, allocations: 2.25 kB / 4.078 GB, free: 53.98 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001231/11.71, allocations: 0.5892 MB / 4.078 GB, free: 53.97 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001929/11.71, allocations: 346.3 kB / 4.079 GB, free: 53.96 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0122/11.72, allocations: 6.835 MB / 4.085 GB, free: 50.74 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004686/11.72, allocations: 1.037 MB / 4.086 GB, free: 50.04 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.001039/11.72, allocations: 377.3 kB / 4.087 GB, free: 50.03 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005167/11.72, allocations: 339.6 kB / 4.087 GB, free: 50.02 MB / 0.5417 GB Notification: Performance of SimCode: time 1.773e-06/11.72, allocations: 2.297 kB / 4.087 GB, free: 50.02 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1364/11.86, allocations: 56.08 MB / 4.142 GB, free: 47.67 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001703/11.86, allocations: 167 kB / 4.142 GB, free: 47.43 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.556/16.41, allocations: 3.938 kB / 4.142 GB, free: 47.43 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)