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.001411/0.001411, allocations: 180.6 kB / 16.38 MB, free: 5.762 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.166/2.166, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001082/0.001082, allocations: 95.92 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.6966/0.6966, allocations: 48.77 MB / 367.9 MB, free: 47.39 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000373/0.000373, allocations: 8 kB / 438.7 MB, free: 10.89 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1944/0.1948, allocations: 60.24 MB / 499 MB, free: 14.51 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.241/8.436, allocations: 2.906 GB / 3.394 GB, free: 117.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003014/8.436, allocations: 86.7 kB / 3.394 GB, free: 117.6 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.009/9.445, allocations: 298.3 MB / 3.685 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of FrontEnd: time 3.115e-06/9.445, allocations: 0 / 3.685 GB, free: 24.18 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 3.577e-05/9.445, allocations: 23.7 kB / 3.685 GB, free: 24.16 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.005683/9.451, allocations: 1.124 MB / 3.686 GB, free: 22.99 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 6.769e-05/9.451, allocations: 8.031 kB / 3.686 GB, free: 22.98 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.613e-05/9.451, allocations: 70.53 kB / 3.686 GB, free: 22.9 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003919/9.451, allocations: 91.39 kB / 3.686 GB, free: 22.81 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005612/9.452, allocations: 350.5 kB / 3.687 GB, free: 22.43 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.163e-05/9.452, allocations: 20.66 kB / 3.687 GB, free: 22.41 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.669e-05/9.452, allocations: 36.69 kB / 3.687 GB, free: 22.38 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007447/9.453, allocations: 467.1 kB / 3.687 GB, free: 21.88 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/9.453, allocations: 0 / 3.687 GB, free: 21.88 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.485e-05/9.453, allocations: 16 kB / 3.687 GB, free: 21.86 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/9.453, allocations: 8 kB / 3.687 GB, free: 21.85 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005647/9.453, allocations: 290.3 kB / 3.687 GB, free: 21.57 MB / 0.5105 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.001729/9.455, allocations: 2.175 MB / 3.689 GB, free: 19.18 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005999/9.456, allocations: 255.6 kB / 3.69 GB, free: 18.92 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.46/9.916, allocations: 31.85 MB / 3.721 GB, free: 59.24 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.569e-05/9.916, allocations: 38.86 kB / 3.721 GB, free: 59.2 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=25): time 3.567e-06/9.916, allocations: 0 / 3.721 GB, free: 59.2 MB / 0.5105 GB Notification: Performance of matching and sorting (n=33): time 0.005248/9.921, allocations: 1.473 MB / 3.722 GB, free: 58.9 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.625e-05/9.921, allocations: 54.97 kB / 3.722 GB, free: 58.84 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003471/9.922, allocations: 285.9 kB / 3.723 GB, free: 58.73 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.911e-05/9.922, allocations: 32.89 kB / 3.723 GB, free: 58.7 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001507/9.922, allocations: 204.4 kB / 3.723 GB, free: 58.6 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 9.678e-05/9.922, allocations: 116.1 kB / 3.723 GB, free: 58.54 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.891e-05/9.922, allocations: 11.41 kB / 3.723 GB, free: 58.54 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.353e-05/9.922, allocations: 349.7 kB / 3.723 GB, free: 58.23 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002264/9.922, allocations: 108.1 kB / 3.723 GB, free: 58.23 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000237/9.923, allocations: 170.4 kB / 3.724 GB, free: 58.18 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002306/9.923, allocations: 134.1 kB / 3.724 GB, free: 58.17 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/9.923, allocations: 0 / 3.724 GB, free: 58.17 MB / 0.5105 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000985/9.924, allocations: 444.5 kB / 3.724 GB, free: 58.11 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001836/9.924, allocations: 0.5407 MB / 3.725 GB, free: 57.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/9.924, allocations: 0 / 3.725 GB, free: 57.55 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004825/9.925, allocations: 88.05 kB / 3.725 GB, free: 57.54 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003485/9.925, allocations: 87.12 kB / 3.725 GB, free: 57.54 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007546/9.926, allocations: 1.106 MB / 3.726 GB, free: 56.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003948/9.926, allocations: 47.22 kB / 3.726 GB, free: 56.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.139e-05/9.926, allocations: 13.97 kB / 3.726 GB, free: 56.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/9.926, allocations: 3.375 kB / 3.726 GB, free: 56.5 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007301/9.927, allocations: 368.5 kB / 3.726 GB, free: 56.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.815e-06/9.927, allocations: 1.031 kB / 3.726 GB, free: 56.48 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003998/9.927, allocations: 94.81 kB / 3.726 GB, free: 56.46 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002807/9.928, allocations: 76.84 kB / 3.726 GB, free: 56.46 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006001/9.928, allocations: 1.114 MB / 3.728 GB, free: 55.42 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002719/9.928, allocations: 32.38 kB / 3.728 GB, free: 55.42 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.363e-05/9.928, allocations: 13.44 kB / 3.728 GB, free: 55.42 MB / 0.5105 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 () * Number of clocked 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.0002193/9.929, allocations: 245.3 kB / 3.728 GB, free: 55.23 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.491e-05/9.929, allocations: 42.14 kB / 3.728 GB, free: 55.21 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001561/9.93, allocations: 1.173 MB / 3.729 GB, free: 55.09 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.424e-05/9.93, allocations: 13.81 kB / 3.729 GB, free: 55.09 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.113e-05/9.93, allocations: 1.531 kB / 3.729 GB, free: 55.09 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/9.93, allocations: 3.609 kB / 3.729 GB, free: 55.09 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007437/9.931, allocations: 0.6715 MB / 3.73 GB, free: 54.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/9.931, allocations: 0.7969 kB / 3.73 GB, free: 54.89 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003261/9.932, allocations: 68.22 kB / 3.73 GB, free: 54.89 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006367/9.932, allocations: 145.7 kB / 3.73 GB, free: 54.88 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.432e-05/9.932, allocations: 9.484 kB / 3.73 GB, free: 54.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008252/9.933, allocations: 1.193 MB / 3.731 GB, free: 53.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/9.933, allocations: 0 / 3.731 GB, free: 53.84 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001758/9.935, allocations: 1.22 MB / 3.732 GB, free: 53.62 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002169/9.935, allocations: 160.3 kB / 3.732 GB, free: 53.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.822e-05/9.935, allocations: 6.719 kB / 3.732 GB, free: 53.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002693/9.935, allocations: 25.69 kB / 3.732 GB, free: 53.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.608e-05/9.935, allocations: 24.62 kB / 3.732 GB, free: 53.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.592e-05/9.936, allocations: 14.92 kB / 3.732 GB, free: 53.5 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0002346/9.936, allocations: 226.3 kB / 3.733 GB, free: 53.41 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.122e-06/9.936, allocations: 0 / 3.733 GB, free: 53.41 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005657/9.941, allocations: 0.9615 MB / 3.734 GB, free: 53.41 MB / 0.5105 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 () * Number of clocked 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.009558/9.951, allocations: 2.978 MB / 3.737 GB, free: 52.66 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001596/9.953, allocations: 0.6805 MB / 3.737 GB, free: 52.65 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/9.953, allocations: 0 / 3.737 GB, free: 52.65 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0006061/9.953, allocations: 387 kB / 3.738 GB, free: 52.64 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001171/9.954, allocations: 201.8 kB / 3.738 GB, free: 52.64 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007117/9.962, allocations: 3.963 MB / 3.742 GB, free: 50.92 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003004/9.962, allocations: 0.8604 MB / 3.742 GB, free: 50.22 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0004501/9.962, allocations: 202.4 kB / 3.743 GB, free: 50.22 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002217/9.963, allocations: 177.6 kB / 3.743 GB, free: 50.21 MB / 0.5105 GB Notification: Performance of SimCode: time 1.503e-06/9.963, allocations: 0 / 3.743 GB, free: 50.21 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09954/10.06, allocations: 37.35 MB / 3.779 GB, free: 48.54 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002329/10.06, allocations: 194 kB / 3.78 GB, free: 48.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.473/13.54, allocations: 0 / 3.78 GB, free: 48.3 MB / 0.5105 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)