Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,fileNamePrefix="Buildings_9_Buildings_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.0009034/0.0009034, allocations: 89.89 kB / 15.36 MB, free: 0.7383 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.005343/0.005343, allocations: 170.2 kB / 16.26 MB, free: 6.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.281/1.281, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.217/2.217, allocations: 390.9 MB / 0.6664 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003051/0.0003051, allocations: 12 kB / 0.8161 GB, free: 13.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5792/0.5795, allocations: 142.4 MB / 0.9552 GB, free: 7.594 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.0949/0.6744, allocations: 110.2 MB / 1.063 GB, free: 0.8359 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.02958/0.704, allocations: 20.11 MB / 1.082 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003663/0.7077, allocations: 95.31 kB / 1.082 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003322/0.7111, allocations: 1.033 MB / 1.083 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.008859/0.72, allocations: 3.379 MB / 1.087 GB, free: 8.168 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.006563/0.7265, allocations: 2.874 MB / 1.09 GB, free: 5.332 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01009/0.7366, allocations: 9.533 MB / 1.099 GB, free: 11.77 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003375/0.74, allocations: 2.071 MB / 1.101 GB, free: 9.648 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004901/0.745, allocations: 2.313 MB / 1.103 GB, free: 7.324 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003648/0.7486, allocations: 2.041 MB / 1.105 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0006744/0.7493, allocations: 88 kB / 1.105 GB, free: 5.188 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00403/0.7534, allocations: 1.439 MB / 1.107 GB, free: 3.746 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0009736/0.7544, allocations: 0.5209 MB / 1.107 GB, free: 3.223 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.002636/0.757, allocations: 1.338 MB / 1.108 GB, free: 1.871 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.007188/0.7642, allocations: 4.154 MB / 1.113 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.7642, allocations: 3.938 kB / 1.113 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.053e-06/0.7643, allocations: 0 / 1.113 GB, free: 13.7 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001576/0.7644, allocations: 4 kB / 1.113 GB, free: 13.7 MB / 0.8731 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.005477/0.7699, allocations: 2.682 MB / 1.115 GB, free: 10.95 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.77, allocations: 12.03 kB / 1.115 GB, free: 10.93 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004622/0.7704, allocations: 219.7 kB / 1.115 GB, free: 10.71 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008935/0.7713, allocations: 328.4 kB / 1.116 GB, free: 10.38 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003407/0.7748, allocations: 2.158 MB / 1.118 GB, free: 8.152 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.856e-05/0.7749, allocations: 123 kB / 1.118 GB, free: 8.031 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002146/0.7751, allocations: 168 kB / 1.118 GB, free: 7.867 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002559/0.7776, allocations: 1.612 MB / 1.12 GB, free: 6.191 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.513e-05/0.7777, allocations: 4 kB / 1.12 GB, free: 6.188 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001234/0.7778, allocations: 63.98 kB / 1.12 GB, free: 6.125 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.441e-05/0.7779, allocations: 47.92 kB / 1.12 GB, free: 6.078 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001936/0.7798, allocations: 1.155 MB / 1.121 GB, free: 4.918 MB / 0.8731 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.009513/0.7893, allocations: 7.901 MB / 1.129 GB, free: 12.5 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007456/0.7901, allocations: 0.4935 MB / 1.129 GB, free: 12 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004832/0.7906, allocations: 330.9 kB / 1.129 GB, free: 11.68 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005706/0.7912, allocations: 0.7524 MB / 1.13 GB, free: 10.76 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.7912, allocations: 43.12 kB / 1.13 GB, free: 10.71 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=60): time 2.805e-06/0.7912, allocations: 0 / 1.13 GB, free: 10.71 MB / 0.8887 GB Notification: Performance of matching and sorting (n=60): time 0.001792/0.793, allocations: 1.011 MB / 1.131 GB, free: 9.688 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.793e-05/0.7931, allocations: 59.97 kB / 1.131 GB, free: 9.617 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002739/0.7958, allocations: 2.312 MB / 1.133 GB, free: 7.293 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 8.357e-05/0.7959, allocations: 45.7 kB / 1.134 GB, free: 7.242 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008747/0.7968, allocations: 1.145 MB / 1.135 GB, free: 6.086 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001841/0.797, allocations: 220.9 kB / 1.135 GB, free: 5.867 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/0.7971, allocations: 101.7 kB / 1.135 GB, free: 5.762 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001381/0.7973, allocations: 353.9 kB / 1.135 GB, free: 5.41 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000626/0.7979, allocations: 354.5 kB / 1.136 GB, free: 5.062 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008843/0.7988, allocations: 0.7619 MB / 1.136 GB, free: 4.145 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001338/0.8001, allocations: 0.9941 MB / 1.137 GB, free: 3.039 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.151e-06/0.8002, allocations: 3.938 kB / 1.137 GB, free: 3.035 MB / 0.8887 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.00206/0.8022, allocations: 1.296 MB / 1.139 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.000201/0.8024, allocations: 358.5 kB / 1.139 GB, free: 1.262 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.8024, allocations: 8 kB / 1.139 GB, free: 1.254 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.433e-05/0.8025, allocations: 16 kB / 1.139 GB, free: 1.238 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009386/0.8034, allocations: 247.6 kB / 1.139 GB, free: 0.9961 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.132e-05/0.8035, allocations: 19.94 kB / 1.139 GB, free: 0.9766 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001654/0.8051, allocations: 254.2 kB / 1.139 GB, free: 0.7266 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.929e-05/0.8052, allocations: 51.92 kB / 1.14 GB, free: 0.6758 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 7.895e-06/0.8052, allocations: 13.75 kB / 1.14 GB, free: 0.6641 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00163/0.8069, allocations: 1.031 MB / 1.141 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.8069, allocations: 8 kB / 1.141 GB, free: 15.63 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.8069, allocations: 16 kB / 1.141 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009026/0.8078, allocations: 256 kB / 1.141 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.671e-05/0.8078, allocations: 19.94 kB / 1.141 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001517/0.8094, allocations: 222.5 kB / 1.141 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.866e-05/0.8095, allocations: 55.98 kB / 1.141 GB, free: 15.07 MB / 0.9044 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001112/0.8106, allocations: 0.5749 MB / 1.142 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002968/0.8109, allocations: 240.9 kB / 1.142 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001665/0.8125, allocations: 0.8975 MB / 1.143 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.508e-05/0.8126, allocations: 4 kB / 1.143 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.8126, allocations: 4 kB / 1.143 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001037/0.8136, allocations: 0.6931 MB / 1.143 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003532/0.8172, allocations: 2.582 MB / 1.146 GB, free: 9.945 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.8172, allocations: 4 kB / 1.146 GB, free: 9.941 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005091/0.8177, allocations: 127.9 kB / 1.146 GB, free: 9.816 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.8177, allocations: 0 / 1.146 GB, free: 9.816 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.037e-05/0.8178, allocations: 16.09 kB / 1.146 GB, free: 9.801 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.8178, allocations: 8 kB / 1.146 GB, free: 9.793 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.8178, allocations: 3.984 kB / 1.146 GB, free: 9.789 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001816/0.8196, allocations: 1.348 MB / 1.147 GB, free: 8.41 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006203/0.8202, allocations: 453.8 kB / 1.148 GB, free: 7.945 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002137/0.8205, allocations: 15.98 kB / 1.148 GB, free: 7.93 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001104/0.8216, allocations: 115.4 kB / 1.148 GB, free: 7.82 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.562e-05/0.8217, allocations: 48.44 kB / 1.148 GB, free: 7.773 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.199e-05/0.8217, allocations: 35.97 kB / 1.148 GB, free: 7.738 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.002008/0.8238, allocations: 1.55 MB / 1.15 GB, free: 6.184 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8238, allocations: 0 / 1.15 GB, free: 6.184 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.00244/0.8262, allocations: 1.103 MB / 1.151 GB, free: 5.078 MB / 0.9044 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003522/0.8297, allocations: 2.503 MB / 1.153 GB, free: 2.68 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.002291/0.832, allocations: 1.378 MB / 1.154 GB, free: 1.305 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.8321, allocations: 0 / 1.154 GB, free: 1.305 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0004931/0.8326, allocations: 335.3 kB / 1.155 GB, free: 0.9766 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006526/0.8391, allocations: 1.388 MB / 1.156 GB, free: 15.61 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02848/0.8676, allocations: 18.22 MB / 1.174 GB, free: 11.84 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001092/0.8687, allocations: 1.594 MB / 1.175 GB, free: 10.21 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.002017/0.8708, allocations: 0.4937 MB / 1.176 GB, free: 9.719 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001092/0.8719, allocations: 0.9639 MB / 1.177 GB, free: 8.754 MB / 0.9356 GB Notification: Performance of SimCode: time 7.92e-07/0.8719, allocations: 3.938 kB / 1.177 GB, free: 8.75 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1003/0.9722, allocations: 63.7 MB / 1.239 GB, free: 9.719 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001957/0.9724, allocations: 250.9 kB / 1.239 GB, free: 9.465 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.285/5.258, allocations: 4 kB / 1.239 GB, free: 9.461 MB / 0.9981 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.fmu > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches