Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves",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.0009563/0.0009563, allocations: 91.12 kB / 15.06 MB, free: 1.078 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.00091/0.0009101, allocations: 172.7 kB / 15.95 MB, free: 192 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.739/1.739, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.243/1.243, allocations: 143.4 MB / 434.4 MB, free: 13.65 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004848/0.0004849, allocations: 11.98 kB / 0.5161 GB, free: 11.16 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2462/0.2468, allocations: 83.41 MB / 0.5975 GB, free: 7.691 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.4515/0.6984, allocations: 104.1 MB / 0.6992 GB, free: 6.926 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.03878/0.7372, allocations: 19.1 MB / 0.7178 GB, free: 9.219 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.007394/0.7447, allocations: 94.09 kB / 0.7179 GB, free: 9.176 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.005119/0.7498, allocations: 0.8914 MB / 0.7188 GB, free: 8.699 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.01406/0.7639, allocations: 2.873 MB / 0.7216 GB, free: 7.055 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.009987/0.7739, allocations: 2.385 MB / 0.7239 GB, free: 5.457 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.01615/0.7901, allocations: 8.121 MB / 0.7318 GB, free: 0.6445 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005272/0.7954, allocations: 1.814 MB / 0.7336 GB, free: 15.53 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008375/0.8038, allocations: 2.241 MB / 0.7358 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005444/0.8093, allocations: 1.922 MB / 0.7377 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0009657/0.8103, allocations: 88 kB / 0.7378 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004888/0.8152, allocations: 1.154 MB / 0.7389 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001132/0.8164, allocations: 493.7 kB / 0.7394 GB, free: 10.85 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0016/0.818, allocations: 0.5628 MB / 0.7399 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.005341/0.8234, allocations: 3.494 MB / 0.7433 GB, free: 6.777 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.8234, allocations: 0 / 0.7433 GB, free: 6.777 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.455e-06/0.8234, allocations: 0 / 0.7433 GB, free: 6.777 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001735/0.8236, allocations: 3.938 kB / 0.7433 GB, free: 6.773 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.005851/0.8294, allocations: 2.726 MB / 0.746 GB, free: 3.984 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 5.529e-05/0.8295, allocations: 8.031 kB / 0.746 GB, free: 3.977 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007175/0.8302, allocations: 215.5 kB / 0.7462 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001389/0.8316, allocations: 328.2 kB / 0.7465 GB, free: 3.43 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004895/0.8365, allocations: 2.071 MB / 0.7485 GB, free: 1.289 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001314/0.8367, allocations: 130.9 kB / 0.7487 GB, free: 1.16 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003877/0.8371, allocations: 167.9 kB / 0.7488 GB, free: 0.9961 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00355/0.8407, allocations: 1.6 MB / 0.7504 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.332e-05/0.8407, allocations: 4 kB / 0.7504 GB, free: 15.33 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001796/0.8409, allocations: 64 kB / 0.7504 GB, free: 15.27 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.726e-05/0.841, allocations: 43.98 kB / 0.7505 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002367/0.8433, allocations: 1.143 MB / 0.7516 GB, free: 14.07 MB / 0.5762 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.01269/0.8561, allocations: 7.92 MB / 0.7593 GB, free: 5.641 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009311/0.857, allocations: 478 kB / 0.7598 GB, free: 5.168 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005854/0.8576, allocations: 327.5 kB / 0.7601 GB, free: 4.848 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000819/0.8585, allocations: 0.7602 MB / 0.7609 GB, free: 3.922 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.384e-05/0.8586, allocations: 47.06 kB / 0.7609 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=60): time 2.444e-06/0.8586, allocations: 0 / 0.7609 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of matching and sorting (n=60): time 0.002396/0.861, allocations: 0.9921 MB / 0.7619 GB, free: 2.871 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.99e-05/0.861, allocations: 59.97 kB / 0.7619 GB, free: 2.797 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004396/0.8655, allocations: 2.292 MB / 0.7642 GB, free: 0.4922 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0002066/0.8657, allocations: 53.7 kB / 0.7642 GB, free: 444 kB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.001303/0.867, allocations: 1.149 MB / 0.7653 GB, free: 15.27 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002842/0.8673, allocations: 216.9 kB / 0.7655 GB, free: 15.06 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.571e-05/0.8674, allocations: 20 kB / 0.7656 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001513/0.8676, allocations: 345.9 kB / 0.7659 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000709/0.8683, allocations: 338.5 kB / 0.7662 GB, free: 14.36 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001046/0.8693, allocations: 0.7384 MB / 0.7669 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009297/0.8703, allocations: 462.8 kB / 0.7674 GB, free: 13.02 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.345e-05/0.8703, allocations: 4 kB / 0.7674 GB, free: 13.01 MB / 0.5919 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002805/0.8731, allocations: 1.283 MB / 0.7686 GB, free: 11.72 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004879/0.8736, allocations: 340.2 kB / 0.769 GB, free: 11.27 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.883e-05/0.8737, allocations: 8 kB / 0.769 GB, free: 11.26 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.134e-05/0.8737, allocations: 20 kB / 0.769 GB, free: 11.24 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0011/0.8748, allocations: 251.6 kB / 0.7692 GB, free: 11 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.404e-05/0.8749, allocations: 19.92 kB / 0.7692 GB, free: 10.98 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002292/0.8772, allocations: 246.2 kB / 0.7695 GB, free: 10.73 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001409/0.8774, allocations: 55.92 kB / 0.7695 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.016e-05/0.8774, allocations: 4 kB / 0.7695 GB, free: 10.68 MB / 0.5919 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001964/0.8793, allocations: 1.027 MB / 0.7705 GB, free: 9.648 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.521e-05/0.8794, allocations: 8 kB / 0.7705 GB, free: 9.641 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.465e-05/0.8794, allocations: 15.95 kB / 0.7706 GB, free: 9.625 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009268/0.8804, allocations: 251.6 kB / 0.7708 GB, free: 9.379 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.254e-05/0.8804, allocations: 16.64 kB / 0.7708 GB, free: 9.363 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002255/0.8827, allocations: 230.8 kB / 0.771 GB, free: 9.137 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001361/0.8828, allocations: 47.98 kB / 0.7711 GB, free: 9.09 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (141): * Single equations (assignments): 141 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001433/0.8842, allocations: 0.5841 MB / 0.7717 GB, free: 8.496 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006679/0.8849, allocations: 229.1 kB / 0.7719 GB, free: 8.27 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002159/0.8871, allocations: 0.8967 MB / 0.7727 GB, free: 7.375 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.212e-05/0.8871, allocations: 19.88 kB / 0.7728 GB, free: 7.355 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.8871, allocations: 0 / 0.7728 GB, free: 7.355 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001129/0.8883, allocations: 0.697 MB / 0.7734 GB, free: 6.625 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005301/0.8936, allocations: 2.578 MB / 0.776 GB, free: 3.969 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.727e-06/0.8936, allocations: 3.953 kB / 0.776 GB, free: 3.965 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005473/0.8942, allocations: 131.8 kB / 0.7761 GB, free: 3.836 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.56e-05/0.8942, allocations: 4 kB / 0.7761 GB, free: 3.832 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.758e-05/0.8943, allocations: 15.98 kB / 0.7761 GB, free: 3.816 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.8943, allocations: 4 kB / 0.7761 GB, free: 3.812 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.8943, allocations: 4 kB / 0.7761 GB, free: 3.809 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002166/0.8965, allocations: 1.325 MB / 0.7774 GB, free: 2.453 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001261/0.8977, allocations: 461.7 kB / 0.7779 GB, free: 1.98 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000606/0.8983, allocations: 15.98 kB / 0.7779 GB, free: 1.965 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00153/0.8999, allocations: 115.6 kB / 0.778 GB, free: 1.852 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.9, allocations: 44.5 kB / 0.778 GB, free: 1.809 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.72e-05/0.9001, allocations: 31.97 kB / 0.7781 GB, free: 1.777 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.002797/0.9029, allocations: 1.527 MB / 0.7795 GB, free: 252 kB / 0.5919 GB Notification: Performance of sort global known variables: time 2.11e-07/0.9029, allocations: 4 kB / 0.7795 GB, free: 248 kB / 0.5919 GB Notification: Performance of remove unused functions: time 0.004195/0.9071, allocations: 1.095 MB / 0.7806 GB, free: 15.14 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (valLin.vol.dynBal.U,valEquPerLin.vol.dynBal.U,valTab.vol.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 61 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004784/0.9119, allocations: 2.488 MB / 0.783 GB, free: 12.77 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00289/0.9148, allocations: 1.354 MB / 0.7844 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/0.9148, allocations: 3.938 kB / 0.7844 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0005761/0.9154, allocations: 331.2 kB / 0.7847 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007053/0.9225, allocations: 1.39 MB / 0.786 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03296/0.9555, allocations: 13.72 MB / 0.7994 GB, free: 10.77 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001665/0.9572, allocations: 1.594 MB / 0.801 GB, free: 9.141 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.002601/0.9598, allocations: 0.4913 MB / 0.8015 GB, free: 8.648 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001483/0.9613, allocations: 0.9601 MB / 0.8024 GB, free: 7.688 MB / 0.6231 GB Notification: Performance of SimCode: time 5.41e-07/0.9613, allocations: 0 / 0.8024 GB, free: 7.688 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4936/1.455, allocations: 65.41 MB / 0.8663 GB, free: 198.7 MB / 0.67 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001787/1.455, allocations: 251.3 kB / 0.8665 GB, free: 198.4 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.42/5.875, allocations: 0 / 0.8665 GB, free: 198.4 MB / 0.67 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) Environment - environmentSimulation: