Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.TestValves.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.TestValves,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.TestValves,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_TestValves",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.001464/0.001464, allocations: 176.4 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.544/1.544, 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.0008806/0.0008806, allocations: 84.5 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5138/0.5138, allocations: 48.78 MB / 358.8 MB, free: 53.17 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.058e-05/2.06e-05, allocations: 4 kB / 425.4 MB, free: 8.133 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1375, allocations: 60.25 MB / 485.6 MB, free: 11.73 MB / 379.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.044/8.182, allocations: 2.865 GB / 3.339 GB, free: 6.906 MB / 0.5108 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003152/8.182, allocations: 71.97 kB / 3.34 GB, free: 6.836 MB / 0.5108 GB Notification: Performance of FrontEnd - DAE generated: time 2.04/10.22, allocations: 428.1 MB / 3.758 GB, free: 57.28 MB / 0.5108 GB Notification: Performance of FrontEnd: time 1.503e-06/10.22, allocations: 0 / 3.758 GB, free: 57.28 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 6.492e-05/10.22, allocations: 21.12 kB / 3.758 GB, free: 57.28 MB / 0.5108 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.007858/10.23, allocations: 1.442 MB / 3.759 GB, free: 56.81 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 7.867e-05/10.23, allocations: 9.625 kB / 3.759 GB, free: 56.81 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007941/10.23, allocations: 131.8 kB / 3.759 GB, free: 56.77 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001536/10.23, allocations: 0.5961 MB / 3.76 GB, free: 56.53 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.146e-05/10.23, allocations: 18.03 kB / 3.76 GB, free: 56.53 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.422e-05/10.23, allocations: 32.84 kB / 3.76 GB, free: 56.53 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00133/10.23, allocations: 0.7828 MB / 3.761 GB, free: 56.52 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008452/10.24, allocations: 0.6155 MB / 3.761 GB, free: 56.27 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/10.24, allocations: 2.25 kB / 3.761 GB, free: 56.27 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.545e-05/10.24, allocations: 7.672 kB / 3.761 GB, free: 56.27 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.306e-05/10.24, allocations: 14.94 kB / 3.761 GB, free: 56.27 MB / 0.5108 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00309/10.24, allocations: 3.077 MB / 3.764 GB, free: 54.12 MB / 0.5108 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005093/10.24, allocations: 294.8 kB / 3.765 GB, free: 54.1 MB / 0.5108 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002156/10.24, allocations: 166.5 kB / 3.765 GB, free: 54.09 MB / 0.5108 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05747/10.3, allocations: 31.97 MB / 3.796 GB, free: 34.75 MB / 0.5108 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.828e-05/10.3, allocations: 36 kB / 3.796 GB, free: 34.71 MB / 0.5108 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001246/10.3, allocations: 124.2 kB / 3.796 GB, free: 34.7 MB / 0.5108 GB Notification: Performance of pre-optimization done (n=31): time 4.548e-06/10.3, allocations: 0 / 3.796 GB, free: 34.7 MB / 0.5108 GB Notification: Performance of matching and sorting (n=31): time 0.003864/10.3, allocations: 0.7214 MB / 3.797 GB, free: 34.62 MB / 0.5108 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.503e-05/10.3, allocations: 51.41 kB / 3.797 GB, free: 34.56 MB / 0.5108 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006164/10.3, allocations: 399.7 kB / 3.797 GB, free: 34.45 MB / 0.5108 GB Notification: Performance of collectPreVariables (initialization): time 4.275e-05/10.3, allocations: 25.7 kB / 3.797 GB, free: 34.42 MB / 0.5108 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002584/10.3, allocations: 354 kB / 3.798 GB, free: 34.29 MB / 0.5108 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/10.3, allocations: 99.16 kB / 3.798 GB, free: 34.23 MB / 0.5108 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.942e-05/10.3, allocations: 0 / 3.798 GB, free: 34.23 MB / 0.5108 GB Notification: Performance of setup shared object (initialization): time 0.0001114/10.3, allocations: 367.5 kB / 3.798 GB, free: 33.92 MB / 0.5108 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002553/10.3, allocations: 109 kB / 3.798 GB, free: 33.92 MB / 0.5108 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003424/10.3, allocations: 154.6 kB / 3.798 GB, free: 33.87 MB / 0.5108 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000782/10.3, allocations: 151.7 kB / 3.798 GB, free: 33.87 MB / 0.5108 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/10.3, allocations: 1.156 kB / 3.798 GB, free: 33.87 MB / 0.5108 GB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001765/10.31, allocations: 0.5194 MB / 3.799 GB, free: 33.79 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001482/10.31, allocations: 0.5317 MB / 3.799 GB, free: 33.24 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/10.31, allocations: 1.438 kB / 3.799 GB, free: 33.24 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008278/10.32, allocations: 0.9373 MB / 3.8 GB, free: 33.23 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003577/10.32, allocations: 54.47 kB / 3.8 GB, free: 33.23 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002421/10.32, allocations: 1.011 MB / 3.801 GB, free: 32.7 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009556/10.32, allocations: 45.52 kB / 3.801 GB, free: 32.7 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.266e-05/10.32, allocations: 20.33 kB / 3.801 GB, free: 32.7 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/10.32, allocations: 6.438 kB / 3.801 GB, free: 32.7 MB / 0.5108 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001188/10.32, allocations: 345.4 kB / 3.802 GB, free: 32.68 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/10.32, allocations: 0.5625 kB / 3.802 GB, free: 32.68 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004312/10.32, allocations: 77.48 kB / 3.802 GB, free: 32.67 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005501/10.32, allocations: 96.78 kB / 3.802 GB, free: 32.67 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002123/10.32, allocations: 1.641 MB / 3.804 GB, free: 31.39 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009015/10.32, allocations: 46.7 kB / 3.804 GB, free: 31.38 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-05/10.32, allocations: 18.97 kB / 3.804 GB, free: 31.38 MB / 0.5108 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: SourceP2.flange.m_flow:VARIABLE(flow=true min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flow rate from the connection point into the component" type: Real SourceP1.flange.m_flow:VARIABLE(flow=true min = -100000.0 max = 100000.0 unit = "kg/s" ) "Mass flow rate from the connection point into the component" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 5 (V5.fluidState.phase,V4.fluidState.phase,V3.fluidState.phase,V2.fluidState.phase,V1.fluidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * 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 {6 17} Notification: Performance of prepare postOptimizeDAE: time 0.0002891/10.32, allocations: 109.5 kB / 3.804 GB, free: 31.28 MB / 0.5108 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002928/10.33, allocations: 0.5952 MB / 3.804 GB, free: 31.2 MB / 0.5108 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001545/10.33, allocations: 63.97 kB / 3.804 GB, free: 31.16 MB / 0.5108 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003978/10.33, allocations: 1.997 MB / 3.806 GB, free: 31 MB / 0.5108 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.811e-05/10.33, allocations: 19.06 kB / 3.806 GB, free: 31 MB / 0.5108 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/10.33, allocations: 0 / 3.806 GB, free: 31 MB / 0.5108 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.381e-05/10.33, allocations: 11.38 kB / 3.806 GB, free: 30.99 MB / 0.5108 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001633/10.33, allocations: 0.8227 MB / 3.807 GB, free: 30.8 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/10.33, allocations: 3.375 kB / 3.807 GB, free: 30.8 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002828/10.33, allocations: 47.25 kB / 3.807 GB, free: 30.8 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007785/10.34, allocations: 2.936 MB / 3.81 GB, free: 30.73 MB / 0.5108 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.822e-05/10.34, allocations: 2.156 kB / 3.81 GB, free: 30.73 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004194/10.35, allocations: 2.268 MB / 3.812 GB, free: 30.16 MB / 0.5108 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.318e-06/10.35, allocations: 6.5 kB / 3.812 GB, free: 30.15 MB / 0.5108 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004216/10.35, allocations: 1.704 MB / 3.814 GB, free: 29.87 MB / 0.5108 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004535/10.35, allocations: 169.8 kB / 3.814 GB, free: 29.71 MB / 0.5108 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001138/10.35, allocations: 0 / 3.814 GB, free: 29.71 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006411/10.35, allocations: 50.7 kB / 3.814 GB, free: 29.71 MB / 0.5108 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/10.35, allocations: 37.91 kB / 3.814 GB, free: 29.7 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.363e-05/10.35, allocations: 19.39 kB / 3.814 GB, free: 29.7 MB / 0.5108 GB Notification: Performance of sorting global known variables: time 0.0006745/10.35, allocations: 303.7 kB / 3.814 GB, free: 29.61 MB / 0.5108 GB Notification: Performance of sort global known variables: time 2.7e-07/10.35, allocations: 0 / 3.814 GB, free: 29.61 MB / 0.5108 GB Notification: Performance of remove unused functions: time 0.007076/10.36, allocations: 1.114 MB / 3.816 GB, free: 29.44 MB / 0.5108 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($cse3.phase,$cse3.region,$cse8.phase,$cse8.region,$cse13.phase,$cse13.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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 35} Notification: Performance of Backend phase and start with SimCode phase: time 0.01276/10.37, allocations: 3.372 MB / 3.819 GB, free: 28.46 MB / 0.5108 GB Notification: Performance of simCode: created initialization part: time 0.00271/10.38, allocations: 0.7747 MB / 3.82 GB, free: 28.34 MB / 0.5108 GB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/10.38, allocations: 0.625 kB / 3.82 GB, free: 28.34 MB / 0.5108 GB Notification: Performance of simCode: created simulation system equations: time 0.001197/10.38, allocations: 438.6 kB / 3.82 GB, free: 28.32 MB / 0.5108 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002528/10.38, allocations: 278.2 kB / 3.82 GB, free: 28.3 MB / 0.5108 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006697/10.39, allocations: 1.536 MB / 3.822 GB, free: 27.8 MB / 0.5108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004794/10.39, allocations: 1.014 MB / 3.823 GB, free: 27.09 MB / 0.5108 GB Notification: Performance of simCode: alias equations: time 0.0009732/10.39, allocations: 285.8 kB / 3.823 GB, free: 27.07 MB / 0.5108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004216/10.39, allocations: 295.1 kB / 3.823 GB, free: 27.06 MB / 0.5108 GB Notification: Performance of SimCode: time 1.954e-06/10.39, allocations: 0 / 3.823 GB, free: 27.06 MB / 0.5108 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09412/10.48, allocations: 42.74 MB / 3.865 GB, free: 24.69 MB / 0.5108 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001786/10.48, allocations: 132.6 kB / 3.865 GB, free: 24.5 MB / 0.5108 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.467/13.95, allocations: 0 / 3.865 GB, free: 24.5 MB / 0.5108 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.TestValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_TestValves_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_TestValves.fmu > ThermoPower_ThermoPower.Test.WaterComponents.TestValves.pipe 2>&1)