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.001183/0.001183, allocations: 175.5 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.776/1.776, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.0008709/0.0008714, allocations: 78.73 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3787/0.3787, allocations: 48.78 MB / 364.3 MB, free: 6.863 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.04e-05/4.042e-05, allocations: 7.984 kB / 432.6 MB, free: 16.65 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1616/0.1616, allocations: 60.24 MB / 492.8 MB, free: 4.285 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.586/8.748, allocations: 2.906 GB / 3.387 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000203/8.748, allocations: 86.59 kB / 3.388 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.9231/9.671, allocations: 297.1 MB / 3.678 GB, free: 17.75 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.763e-06/9.672, allocations: 0 / 3.678 GB, free: 17.75 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.262e-05/9.672, allocations: 12 kB / 3.678 GB, free: 17.73 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.005291/9.677, allocations: 1.076 MB / 3.679 GB, free: 16.61 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.572e-05/9.677, allocations: 11.97 kB / 3.679 GB, free: 16.6 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001571/9.677, allocations: 70.53 kB / 3.679 GB, free: 16.52 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004978/9.678, allocations: 87.39 kB / 3.679 GB, free: 16.44 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007506/9.678, allocations: 358.8 kB / 3.679 GB, free: 16.05 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/9.678, allocations: 24.78 kB / 3.679 GB, free: 16.02 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.582e-05/9.678, allocations: 36.69 kB / 3.679 GB, free: 15.99 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008412/9.679, allocations: 465 kB / 3.68 GB, free: 15.48 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/9.679, allocations: 0 / 3.68 GB, free: 15.48 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.743e-05/9.679, allocations: 23.98 kB / 3.68 GB, free: 15.46 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.387e-06/9.679, allocations: 8 kB / 3.68 GB, free: 15.45 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005553/9.68, allocations: 282.9 kB / 3.68 GB, free: 15.17 MB / 0.5105 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.001938/9.682, allocations: 2.159 MB / 3.682 GB, free: 12.78 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005571/9.683, allocations: 258.7 kB / 3.682 GB, free: 12.52 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001353/9.683, allocations: 92.89 kB / 3.683 GB, free: 12.43 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.382/10.06, allocations: 31.97 MB / 3.714 GB, free: 59.54 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/10.06, allocations: 38.39 kB / 3.714 GB, free: 59.5 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=25): time 2.264e-06/10.06, allocations: 0 / 3.714 GB, free: 59.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=33): time 0.004691/10.07, allocations: 1.385 MB / 3.715 GB, free: 59.2 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.826e-05/10.07, allocations: 57.97 kB / 3.715 GB, free: 59.14 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003462/10.07, allocations: 279.2 kB / 3.715 GB, free: 59.03 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.812e-05/10.07, allocations: 32.33 kB / 3.716 GB, free: 59 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000124/10.07, allocations: 205.6 kB / 3.716 GB, free: 58.89 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 9.484e-05/10.07, allocations: 117.2 kB / 3.716 GB, free: 58.84 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.856e-05/10.07, allocations: 8.438 kB / 3.716 GB, free: 58.84 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.231e-05/10.07, allocations: 348.1 kB / 3.716 GB, free: 58.52 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002353/10.07, allocations: 100.9 kB / 3.716 GB, free: 58.52 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002528/10.07, allocations: 153.6 kB / 3.716 GB, free: 58.47 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002525/10.07, allocations: 125.9 kB / 3.717 GB, free: 58.47 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/10.07, allocations: 1.094 kB / 3.717 GB, free: 58.47 MB / 0.5105 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001056/10.07, allocations: 419 kB / 3.717 GB, free: 58.39 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001387/10.07, allocations: 0.5355 MB / 3.717 GB, free: 57.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/10.07, allocations: 1.5 kB / 3.717 GB, free: 57.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000523/10.07, allocations: 92.52 kB / 3.718 GB, free: 57.83 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003834/10.07, allocations: 81.33 kB / 3.718 GB, free: 57.83 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006674/10.07, allocations: 1.116 MB / 3.719 GB, free: 56.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003595/10.07, allocations: 35.75 kB / 3.719 GB, free: 56.79 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.443e-05/10.07, allocations: 16.28 kB / 3.719 GB, free: 56.79 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.487e-06/10.07, allocations: 4.719 kB / 3.719 GB, free: 56.79 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007182/10.08, allocations: 341 kB / 3.719 GB, free: 56.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/10.08, allocations: 2.312 kB / 3.719 GB, free: 56.77 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004323/10.08, allocations: 95.28 kB / 3.719 GB, free: 56.75 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003185/10.08, allocations: 76.12 kB / 3.719 GB, free: 56.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006188/10.08, allocations: 1.119 MB / 3.72 GB, free: 55.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003257/10.08, allocations: 34.88 kB / 3.72 GB, free: 55.71 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.437e-05/10.08, allocations: 17.17 kB / 3.72 GB, free: 55.71 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 () * 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.0001252/10.08, allocations: 122 kB / 3.721 GB, free: 55.61 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.565e-05/10.08, allocations: 42.33 kB / 3.721 GB, free: 55.59 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001763/10.08, allocations: 1.155 MB / 3.722 GB, free: 55.47 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.627e-05/10.08, allocations: 12.28 kB / 3.722 GB, free: 55.47 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/10.08, allocations: 1.375 kB / 3.722 GB, free: 55.47 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/10.08, allocations: 4.922 kB / 3.722 GB, free: 55.47 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007715/10.08, allocations: 0.675 MB / 3.722 GB, free: 55.27 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/10.08, allocations: 0 / 3.722 GB, free: 55.27 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003245/10.08, allocations: 68.12 kB / 3.722 GB, free: 55.27 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00058/10.08, allocations: 143 kB / 3.723 GB, free: 55.25 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.856e-05/10.08, allocations: 14.31 kB / 3.723 GB, free: 55.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007041/10.08, allocations: 1.187 MB / 3.724 GB, free: 54.21 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/10.08, allocations: 0 / 3.724 GB, free: 54.21 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001635/10.08, allocations: 1.181 MB / 3.725 GB, free: 54 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001969/10.08, allocations: 159.7 kB / 3.725 GB, free: 53.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.664e-05/10.08, allocations: 8.781 kB / 3.725 GB, free: 53.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002736/10.08, allocations: 30.42 kB / 3.725 GB, free: 53.88 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.742e-05/10.08, allocations: 20.98 kB / 3.725 GB, free: 53.88 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.421e-05/10.08, allocations: 10.66 kB / 3.725 GB, free: 53.88 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0002474/10.08, allocations: 222.2 kB / 3.725 GB, free: 53.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.61e-07/10.08, allocations: 3.125 kB / 3.725 GB, free: 53.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.005291/10.09, allocations: 0.9617 MB / 3.726 GB, free: 53.8 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 () * 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.009968/10.1, allocations: 2.946 MB / 3.729 GB, free: 53.05 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001722/10.1, allocations: 0.6538 MB / 3.73 GB, free: 53.04 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/10.1, allocations: 1 kB / 3.73 GB, free: 53.04 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0006554/10.1, allocations: 379 kB / 3.73 GB, free: 53.03 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001253/10.1, allocations: 211.5 kB / 3.73 GB, free: 53.01 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004947/10.11, allocations: 1.377 MB / 3.732 GB, free: 52.75 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003734/10.11, allocations: 0.8685 MB / 3.733 GB, free: 52.05 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0006487/10.11, allocations: 206.2 kB / 3.733 GB, free: 52.05 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002285/10.11, allocations: 182.2 kB / 3.733 GB, free: 52.04 MB / 0.5105 GB Notification: Performance of SimCode: time 1.413e-06/10.11, allocations: 0 / 3.733 GB, free: 52.04 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06057/10.17, allocations: 40.24 MB / 3.772 GB, free: 50.55 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000169/10.17, allocations: 172.5 kB / 3.772 GB, free: 50.33 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.34/13.51, allocations: 7.844 kB / 3.772 GB, free: 50.33 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)