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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 91.7 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 187.2 kB / 17.2 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.796/1.796, allocations: 205.4 MB / 223.4 MB, free: 5.785 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.7698/0.7698, allocations: 48.78 MB / 320.4 MB, free: 3.812 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0009781/0.0009783, allocations: 16 kB / 391.2 MB, free: 14.22 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2005/0.2015, allocations: 60.25 MB / 451.5 MB, free: 1.832 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Test.WaterComponents.TestValves): time 0.3679/0.5695, allocations: 59.44 MB / 0.499 GB, free: 11.62 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01348/0.583, allocations: 10.35 MB / 0.5091 GB, free: 3.422 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001017/0.5841, allocations: 23.53 kB / 0.5091 GB, free: 3.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001231/0.5854, allocations: 325.9 kB / 0.5094 GB, free: 3.137 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001457/0.5868, allocations: 0.5076 MB / 0.5099 GB, free: 2.688 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01634/0.6032, allocations: 4.361 MB / 0.5142 GB, free: 15.33 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00247/0.6057, allocations: 0.8933 MB / 0.515 GB, free: 14.79 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001014/0.6067, allocations: 461.4 kB / 0.5155 GB, free: 14.49 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001077/0.6078, allocations: 432 kB / 0.5159 GB, free: 14.27 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009141/0.6087, allocations: 470 kB / 0.5163 GB, free: 13.99 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001172/0.6089, allocations: 38.91 kB / 0.5164 GB, free: 13.99 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01683/0.6257, allocations: 6.301 MB / 0.5225 GB, free: 9.645 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003193/0.6261, allocations: 135.4 kB / 0.5226 GB, free: 9.512 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006485/0.6267, allocations: 177.3 kB / 0.5228 GB, free: 9.332 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007577/0.6343, allocations: 2.851 MB / 0.5256 GB, free: 6.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.6344, allocations: 0 / 0.5256 GB, free: 6.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.158e-06/0.6344, allocations: 0 / 0.5256 GB, free: 6.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.309e-05/0.6344, allocations: 4 kB / 0.5256 GB, free: 6.477 MB / 398.1 MB 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.006523/0.6409, allocations: 1.668 MB / 0.5272 GB, free: 4.758 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.641, allocations: 12.02 kB / 0.5272 GB, free: 4.746 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001547/0.6412, allocations: 91.52 kB / 0.5273 GB, free: 4.648 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004657/0.6416, allocations: 118.9 kB / 0.5274 GB, free: 4.531 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008881/0.6425, allocations: 0.5375 MB / 0.528 GB, free: 3.953 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.053e-05/0.6426, allocations: 41.31 kB / 0.528 GB, free: 3.914 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.534e-05/0.6427, allocations: 48 kB / 0.5281 GB, free: 3.867 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001904/0.6446, allocations: 0.845 MB / 0.5289 GB, free: 2.98 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.6446, allocations: 0 / 0.5289 GB, free: 2.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.888e-05/0.6447, allocations: 31.94 kB / 0.5289 GB, free: 2.949 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.072e-05/0.6448, allocations: 12 kB / 0.5289 GB, free: 2.938 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002025/0.6468, allocations: 0.8586 MB / 0.5298 GB, free: 2.078 MB / 398.1 MB 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.004095/0.6509, allocations: 3.538 MB / 0.5332 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001143/0.6521, allocations: 437.3 kB / 0.5336 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0864/0.7385, allocations: 32.3 MB / 0.5652 GB, free: 9.645 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.873e-05/0.7386, allocations: 31.12 kB / 0.5652 GB, free: 9.605 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00065/0.7392, allocations: 103.5 kB / 0.5653 GB, free: 9.504 MB / 446.1 MB Notification: Performance of pre-optimization done (n=31): time 3.026e-06/0.7393, allocations: 0 / 0.5653 GB, free: 9.504 MB / 446.1 MB Notification: Performance of matching and sorting (n=31): time 0.009164/0.7484, allocations: 1.844 MB / 0.5671 GB, free: 7.629 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.539e-05/0.7485, allocations: 59.41 kB / 0.5672 GB, free: 7.559 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007663/0.7493, allocations: 0.6139 MB / 0.5678 GB, free: 6.938 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.611e-05/0.7494, allocations: 33.7 kB / 0.5678 GB, free: 6.898 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002547/0.7496, allocations: 340 kB / 0.5681 GB, free: 6.562 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.7497, allocations: 110.5 kB / 0.5682 GB, free: 6.453 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.419e-05/0.7498, allocations: 4 kB / 0.5682 GB, free: 6.449 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.7499, allocations: 318 kB / 0.5685 GB, free: 6.133 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004265/0.7503, allocations: 164.5 kB / 0.5687 GB, free: 5.969 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004377/0.7508, allocations: 206.4 kB / 0.5689 GB, free: 5.75 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004208/0.7512, allocations: 179.9 kB / 0.5691 GB, free: 5.574 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.7512, allocations: 0 / 0.5691 GB, free: 5.574 MB / 446.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00215/0.7534, allocations: 0.6259 MB / 0.5697 GB, free: 4.938 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003544/0.7537, allocations: 0.5412 MB / 0.5702 GB, free: 4.355 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.7538, allocations: 0 / 0.5702 GB, free: 4.355 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01227/0.7661, allocations: 1.112 MB / 0.5713 GB, free: 3.242 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004123/0.7665, allocations: 63.89 kB / 0.5713 GB, free: 3.18 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002559/0.7691, allocations: 0.9541 MB / 0.5723 GB, free: 2.199 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001104/0.7702, allocations: 47.88 kB / 0.5723 GB, free: 2.152 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.096e-05/0.7703, allocations: 27.97 kB / 0.5723 GB, free: 2.125 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.7704, allocations: 4 kB / 0.5723 GB, free: 2.121 MB / 446.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002014/0.7724, allocations: 456.2 kB / 0.5728 GB, free: 1.672 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.7724, allocations: 4 kB / 0.5728 GB, free: 1.668 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005235/0.773, allocations: 68.78 kB / 0.5729 GB, free: 1.598 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007251/0.7737, allocations: 104 kB / 0.573 GB, free: 1.496 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002303/0.776, allocations: 1.468 MB / 0.5744 GB, free: 15.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009945/0.777, allocations: 51.91 kB / 0.5744 GB, free: 15.85 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.675e-05/0.7771, allocations: 19.98 kB / 0.5745 GB, free: 15.83 MB / 462.1 MB 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 () * Number of clocked 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 {5 18} Notification: Performance of prepare postOptimizeDAE: time 0.0004434/0.7776, allocations: 245 kB / 0.5747 GB, free: 15.58 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001806/0.7778, allocations: 75.06 kB / 0.5748 GB, free: 15.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004406/0.7822, allocations: 2.064 MB / 0.5768 GB, free: 13.43 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-05/0.7823, allocations: 23.91 kB / 0.5768 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.7823, allocations: 4 kB / 0.5768 GB, free: 13.41 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.479e-05/0.7823, allocations: 3.984 kB / 0.5768 GB, free: 13.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001814/0.7841, allocations: 0.9426 MB / 0.5777 GB, free: 12.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.7841, allocations: 2.562 kB / 0.5777 GB, free: 12.41 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003204/0.7845, allocations: 39.97 kB / 0.5778 GB, free: 12.37 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008453/0.7929, allocations: 2.769 MB / 0.5805 GB, free: 9.602 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.049e-05/0.7931, allocations: 15.98 kB / 0.5805 GB, free: 9.586 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002419/0.7955, allocations: 2.057 MB / 0.5825 GB, free: 7.5 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.7956, allocations: 4 kB / 0.5825 GB, free: 7.496 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002294/0.7979, allocations: 1.763 MB / 0.5842 GB, free: 5.711 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002712/0.7981, allocations: 191.6 kB / 0.5844 GB, free: 5.504 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.8e-05/0.7982, allocations: 12 kB / 0.5844 GB, free: 5.492 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005014/0.7988, allocations: 55.77 kB / 0.5845 GB, free: 5.438 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.609e-05/0.7989, allocations: 36.38 kB / 0.5845 GB, free: 5.402 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.252e-05/0.7989, allocations: 12 kB / 0.5845 GB, free: 5.391 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0005308/0.7994, allocations: 443 kB / 0.5849 GB, free: 4.961 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.7995, allocations: 0 / 0.5849 GB, free: 4.961 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004064/0.8035, allocations: 1.097 MB / 0.586 GB, free: 3.863 MB / 462.1 MB 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 () * Number of clocked 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.007865/0.8114, allocations: 2.797 MB / 0.5887 GB, free: 1.039 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00268/0.8142, allocations: 0.9268 MB / 0.5896 GB, free: 100 kB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.8142, allocations: 320 / 0.5896 GB, free: 100 kB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001038/0.8153, allocations: 0.4998 MB / 0.5901 GB, free: 15.59 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002237/0.8175, allocations: 414 kB / 0.5905 GB, free: 15.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005169/0.8227, allocations: 3.425 MB / 0.5939 GB, free: 11.71 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005792/0.8233, allocations: 1.01 MB / 0.5949 GB, free: 10.67 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0007237/0.8241, allocations: 271.7 kB / 0.5951 GB, free: 10.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003522/0.8244, allocations: 299.3 kB / 0.5954 GB, free: 10.11 MB / 478.1 MB Notification: Performance of SimCode: time 1.694e-06/0.8244, allocations: 4 kB / 0.5954 GB, free: 10.11 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.325/1.149, allocations: 51.42 MB / 0.6456 GB, free: 166.4 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001938/1.15, allocations: 215 kB / 0.6458 GB, free: 166.2 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.847/6.997, allocations: 0 / 0.6458 GB, free: 166.2 MB / 0.4981 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) Environment - environmentSimulation: