Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.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.ValveZeroFlow2,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.WaterComponents.ValveZeroFlow2,fileNamePrefix="ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow2",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.0009456/0.0009456, allocations: 177.1 kB / 8.35 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.678/1.678, allocations: 205.3 MB / 214.1 MB, free: 14.12 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.0009235/0.0009236, allocations: 87.55 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.5587/0.5587, allocations: 48.77 MB / 358.8 MB, free: 53.11 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.294e-05/2.298e-05, allocations: 4 kB / 425.4 MB, free: 8.141 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1442/0.1442, allocations: 60.26 MB / 485.6 MB, free: 11.73 MB / 379.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.517/8.662, allocations: 2.905 GB / 3.38 GB, free: 138.1 MB / 0.5108 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003132/8.662, allocations: 79.88 kB / 3.38 GB, free: 138.1 MB / 0.5108 GB Notification: Performance of FrontEnd - DAE generated: time 0.9784/9.641, allocations: 294.5 MB / 3.667 GB, free: 62.09 MB / 0.5108 GB Notification: Performance of FrontEnd: time 1.292e-06/9.641, allocations: 0 / 3.667 GB, free: 62.09 MB / 0.5108 GB Notification: Performance of Transformations before backend: time 2.9e-05/9.641, allocations: 13.55 kB / 3.667 GB, free: 62.08 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.004319/9.645, allocations: 1.077 MB / 3.669 GB, free: 61.41 MB / 0.5108 GB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/9.645, allocations: 9.562 kB / 3.669 GB, free: 61.41 MB / 0.5108 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003846/9.645, allocations: 87.77 kB / 3.669 GB, free: 61.38 MB / 0.5108 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000507/9.646, allocations: 366.5 kB / 3.669 GB, free: 61.09 MB / 0.5108 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/9.646, allocations: 9.531 kB / 3.669 GB, free: 61.09 MB / 0.5108 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.818e-05/9.646, allocations: 21 kB / 3.669 GB, free: 61.09 MB / 0.5108 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003789/9.646, allocations: 225.7 kB / 3.669 GB, free: 61.01 MB / 0.5108 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004586/9.647, allocations: 361.1 kB / 3.67 GB, free: 60.78 MB / 0.5108 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/9.647, allocations: 3.938 kB / 3.67 GB, free: 60.77 MB / 0.5108 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.229e-05/9.647, allocations: 6.188 kB / 3.67 GB, free: 60.77 MB / 0.5108 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.847e-06/9.647, allocations: 6.469 kB / 3.67 GB, free: 60.77 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.001497/9.648, allocations: 2.069 MB / 3.672 GB, free: 58.93 MB / 0.5108 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003396/9.649, allocations: 204.6 kB / 3.672 GB, free: 58.82 MB / 0.5108 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001181/9.649, allocations: 86.02 kB / 3.672 GB, free: 58.79 MB / 0.5108 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05359/9.702, allocations: 31.97 MB / 3.703 GB, free: 38.59 MB / 0.5108 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/9.703, allocations: 35.19 kB / 3.703 GB, free: 38.54 MB / 0.5108 GB Notification: Performance of pre-optimization done (n=25): time 2.825e-06/9.703, allocations: 0 / 3.703 GB, free: 38.54 MB / 0.5108 GB Notification: Performance of matching and sorting (n=33): time 0.003406/9.706, allocations: 1.151 MB / 3.704 GB, free: 37.96 MB / 0.5108 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.14e-05/9.706, allocations: 51.41 kB / 3.704 GB, free: 37.9 MB / 0.5108 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002053/9.706, allocations: 216.3 kB / 3.704 GB, free: 37.76 MB / 0.5108 GB Notification: Performance of collectPreVariables (initialization): time 2.157e-05/9.706, allocations: 25.7 kB / 3.705 GB, free: 37.73 MB / 0.5108 GB Notification: Performance of collectInitialEqns (initialization): time 8.973e-05/9.706, allocations: 208.3 kB / 3.705 GB, free: 37.56 MB / 0.5108 GB Notification: Performance of collectInitialBindings (initialization): time 6.166e-05/9.706, allocations: 114.7 kB / 3.705 GB, free: 37.47 MB / 0.5108 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.705e-05/9.706, allocations: 0 / 3.705 GB, free: 37.47 MB / 0.5108 GB Notification: Performance of setup shared object (initialization): time 7.635e-05/9.707, allocations: 344.4 kB / 3.705 GB, free: 37.14 MB / 0.5108 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001363/9.707, allocations: 97.41 kB / 3.705 GB, free: 37.1 MB / 0.5108 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001543/9.707, allocations: 147.6 kB / 3.705 GB, free: 37 MB / 0.5108 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002987/9.707, allocations: 134.3 kB / 3.706 GB, free: 36.95 MB / 0.5108 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/9.707, allocations: 7.594 kB / 3.706 GB, free: 36.94 MB / 0.5108 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008305/9.708, allocations: 393.2 kB / 3.706 GB, free: 36.77 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001268/9.708, allocations: 0.5357 MB / 3.706 GB, free: 36.2 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/9.708, allocations: 4 kB / 3.706 GB, free: 36.2 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003977/9.709, allocations: 80.5 kB / 3.707 GB, free: 36.17 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000327/9.709, allocations: 80.38 kB / 3.707 GB, free: 36.16 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006525/9.71, allocations: 1.127 MB / 3.708 GB, free: 35.08 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002871/9.71, allocations: 30.86 kB / 3.708 GB, free: 35.07 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.922e-05/9.71, allocations: 18.5 kB / 3.708 GB, free: 35.07 MB / 0.5108 GB Notification: Performance of prepare postOptimizeDAE: time 9.819e-06/9.71, allocations: 7.5 kB / 3.708 GB, free: 35.06 MB / 0.5108 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006468/9.711, allocations: 318 kB / 3.708 GB, free: 34.94 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.865e-06/9.711, allocations: 0 / 3.708 GB, free: 34.94 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003306/9.711, allocations: 98.52 kB / 3.708 GB, free: 34.9 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002679/9.711, allocations: 78.52 kB / 3.708 GB, free: 34.89 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006536/9.712, allocations: 1.122 MB / 3.709 GB, free: 33.8 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002436/9.712, allocations: 31.77 kB / 3.709 GB, free: 33.8 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.282e-05/9.712, allocations: 14.28 kB / 3.709 GB, free: 33.79 MB / 0.5108 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (Valve.fluidState.phase,Tank2.liquidState.phase,Tank1.liquidState.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001213/9.712, allocations: 109.7 kB / 3.709 GB, free: 33.68 MB / 0.5108 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007824/9.713, allocations: 356.1 kB / 3.71 GB, free: 33.52 MB / 0.5108 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.586e-05/9.713, allocations: 36.47 kB / 3.71 GB, free: 33.5 MB / 0.5108 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001406/9.715, allocations: 1.126 MB / 3.711 GB, free: 32.97 MB / 0.5108 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.436e-05/9.715, allocations: 10.81 kB / 3.711 GB, free: 32.97 MB / 0.5108 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/9.715, allocations: 0 / 3.711 GB, free: 32.97 MB / 0.5108 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/9.715, allocations: 3.656 kB / 3.711 GB, free: 32.97 MB / 0.5108 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006273/9.715, allocations: 0.5955 MB / 3.712 GB, free: 32.61 MB / 0.5108 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/9.715, allocations: 7.375 kB / 3.712 GB, free: 32.61 MB / 0.5108 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003268/9.716, allocations: 74.75 kB / 3.712 GB, free: 32.59 MB / 0.5108 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004375/9.716, allocations: 132.6 kB / 3.712 GB, free: 32.55 MB / 0.5108 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.348e-05/9.716, allocations: 3.969 kB / 3.712 GB, free: 32.55 MB / 0.5108 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006839/9.717, allocations: 1.25 MB / 3.713 GB, free: 31.4 MB / 0.5108 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/9.717, allocations: 4 kB / 3.713 GB, free: 31.4 MB / 0.5108 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00124/9.718, allocations: 1.152 MB / 3.714 GB, free: 30.8 MB / 0.5108 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/9.718, allocations: 146.2 kB / 3.714 GB, free: 30.67 MB / 0.5108 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.107e-05/9.718, allocations: 8.031 kB / 3.714 GB, free: 30.66 MB / 0.5108 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002337/9.718, allocations: 22.92 kB / 3.714 GB, free: 30.66 MB / 0.5108 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.401e-05/9.719, allocations: 26.14 kB / 3.714 GB, free: 30.65 MB / 0.5108 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.079e-05/9.719, allocations: 10.72 kB / 3.714 GB, free: 30.65 MB / 0.5108 GB Notification: Performance of sorting global known variables: time 0.0001275/9.719, allocations: 169.3 kB / 3.714 GB, free: 30.54 MB / 0.5108 GB Notification: Performance of sort global known variables: time 1.51e-07/9.719, allocations: 0 / 3.714 GB, free: 30.54 MB / 0.5108 GB Notification: Performance of remove unused functions: time 0.004188/9.723, allocations: 0.9201 MB / 3.715 GB, free: 30.38 MB / 0.5108 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Tank1.y,Tank1.h,Tank2.y,Tank2.h) * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008039/9.731, allocations: 3.025 MB / 3.718 GB, free: 28.95 MB / 0.5108 GB Notification: Performance of simCode: created initialization part: time 0.001393/9.732, allocations: 0.6297 MB / 3.719 GB, free: 28.72 MB / 0.5108 GB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/9.732, allocations: 0 / 3.719 GB, free: 28.72 MB / 0.5108 GB Notification: Performance of simCode: created simulation system equations: time 0.0005345/9.733, allocations: 365.7 kB / 3.719 GB, free: 28.56 MB / 0.5108 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009935/9.734, allocations: 152.5 kB / 3.719 GB, free: 28.52 MB / 0.5108 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004274/9.738, allocations: 1.331 MB / 3.721 GB, free: 27.81 MB / 0.5108 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003132/9.739, allocations: 0.8654 MB / 3.722 GB, free: 27.11 MB / 0.5108 GB Notification: Performance of simCode: alias equations: time 0.0005072/9.739, allocations: 208.2 kB / 3.722 GB, free: 27.06 MB / 0.5108 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002254/9.739, allocations: 178.9 kB / 3.722 GB, free: 26.91 MB / 0.5108 GB Notification: Performance of SimCode: time 1.143e-06/9.739, allocations: 0 / 3.722 GB, free: 26.91 MB / 0.5108 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3685/10.11, allocations: 31.71 MB / 3.753 GB, free: 72.58 MB / 0.5108 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001543/10.11, allocations: 139.5 kB / 3.753 GB, free: 72.39 MB / 0.5108 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.19/13.3, allocations: 1.281 kB / 3.753 GB, free: 72.39 MB / 0.5108 GB (rm -f ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe ; mkfifo ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe >> ../files/ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow2_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_WaterComponents_ValveZeroFlow2.fmu > ThermoPower_ThermoPower.Test.WaterComponents.ValveZeroFlow2.pipe 2>&1)