Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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: translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.res1.phi|valLin.res3.phi|valEquPerLin.res1.phi|valEquPerLin.res3.phi|valTab.res1.phi|valTab.res3.phi",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.res1.phi|valLin.res3.phi|valEquPerLin.res1.phi|valEquPerLin.res3.phi|valTab.res1.phi|valTab.res3.phi",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 106 kB / 16.37 MB, free: 6.473 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.001379/0.001379, allocations: 195.8 kB / 17.31 MB, free: 5.82 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.37/1.37, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.524/2.524, allocations: 442.6 MB / 0.7165 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 56.19 kB / 0.8773 GB, free: 11.01 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3683/0.3695, allocations: 153 MB / 1.027 GB, free: 2.094 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.6586/1.028, allocations: 112.7 MB / 1.137 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.03011/1.058, allocations: 20.23 MB / 1.156 GB, free: 12.99 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004793/1.063, allocations: 106.3 kB / 1.157 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.003984/1.067, allocations: 1.283 MB / 1.158 GB, free: 12.15 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.01175/1.079, allocations: 3.69 MB / 1.161 GB, free: 9.965 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.008636/1.088, allocations: 3.122 MB / 1.165 GB, free: 8.059 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.01142/1.099, allocations: 7.229 MB / 1.172 GB, free: 3.801 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004225/1.103, allocations: 2.573 MB / 1.174 GB, free: 2.145 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006904/1.11, allocations: 2.812 MB / 1.177 GB, free: 460 kB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004411/1.115, allocations: 2.132 MB / 1.179 GB, free: 15.15 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.000696/1.115, allocations: 254.8 kB / 1.179 GB, free: 15.15 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004348/1.12, allocations: 1.647 MB / 1.181 GB, free: 14.34 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0008119/1.121, allocations: 0.6874 MB / 1.181 GB, free: 13.8 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.002192/1.123, allocations: 1.522 MB / 1.183 GB, free: 12.76 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.005558/1.128, allocations: 4.385 MB / 1.187 GB, free: 9.711 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/1.128, allocations: 2.625 kB / 1.187 GB, free: 9.711 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.114e-06/1.128, allocations: 0 / 1.187 GB, free: 9.711 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.603e-05/1.128, allocations: 4 kB / 1.187 GB, free: 9.707 MB / 0.8887 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.005562/1.134, allocations: 3.226 MB / 1.19 GB, free: 7.332 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/1.134, allocations: 11.03 kB / 1.19 GB, free: 7.332 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008161/1.135, allocations: 323.8 kB / 1.191 GB, free: 7.172 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00394/1.139, allocations: 2.202 MB / 1.193 GB, free: 5.516 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.465e-05/1.139, allocations: 129.1 kB / 1.193 GB, free: 5.457 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002133/1.139, allocations: 164.5 kB / 1.193 GB, free: 5.406 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00251/1.142, allocations: 1.606 MB / 1.195 GB, free: 4.406 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.181e-05/1.142, allocations: 3.156 kB / 1.195 GB, free: 4.406 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001202/1.142, allocations: 62.19 kB / 1.195 GB, free: 4.359 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.309e-05/1.142, allocations: 45.75 kB / 1.195 GB, free: 4.352 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001954/1.144, allocations: 1.148 MB / 1.196 GB, free: 3.598 MB / 0.8887 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.0111/1.155, allocations: 7.912 MB / 1.204 GB, free: 11.17 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007972/1.156, allocations: 474.3 kB / 1.204 GB, free: 10.7 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005025/1.156, allocations: 331.4 kB / 1.204 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000818/1.157, allocations: 0.7563 MB / 1.205 GB, free: 9.457 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.92e-05/1.157, allocations: 43.12 kB / 1.205 GB, free: 9.406 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=60): time 3.016e-06/1.157, allocations: 0 / 1.205 GB, free: 9.406 MB / 0.9044 GB Notification: Performance of matching and sorting (n=60): time 0.002584/1.16, allocations: 0.9842 MB / 1.206 GB, free: 8.418 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.63e-05/1.16, allocations: 55.97 kB / 1.206 GB, free: 8.348 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003911/1.164, allocations: 2.343 MB / 1.208 GB, free: 5.992 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0002293/1.164, allocations: 41.7 kB / 1.209 GB, free: 5.945 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009731/1.165, allocations: 1.153 MB / 1.21 GB, free: 4.781 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002409/1.165, allocations: 213 kB / 1.21 GB, free: 4.57 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000361/1.166, allocations: 258.6 kB / 1.21 GB, free: 4.312 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001344/1.166, allocations: 353.9 kB / 1.21 GB, free: 3.961 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006477/1.166, allocations: 361.9 kB / 1.211 GB, free: 3.602 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009466/1.167, allocations: 0.7424 MB / 1.211 GB, free: 2.703 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001399/1.169, allocations: 0.9863 MB / 1.212 GB, free: 1.609 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/1.169, allocations: 0 / 1.212 GB, free: 1.609 MB / 0.9044 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002394/1.171, allocations: 1.292 MB / 1.214 GB, free: 308 kB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/1.171, allocations: 8 kB / 1.214 GB, free: 300 kB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/1.171, allocations: 12.09 kB / 1.214 GB, free: 288 kB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.406e-05/1.171, allocations: 16 kB / 1.214 GB, free: 272 kB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009755/1.172, allocations: 255.5 kB / 1.214 GB, free: 16 kB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.52e-05/1.172, allocations: 19.98 kB / 1.214 GB, free: 15.99 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001427/1.174, allocations: 162.2 kB / 1.214 GB, free: 15.84 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.826e-05/1.174, allocations: 55.98 kB / 1.214 GB, free: 15.78 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001326/1.175, allocations: 0.7602 MB / 1.215 GB, free: 15.02 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009095/1.176, allocations: 0.7349 MB / 1.216 GB, free: 14.12 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001309/1.177, allocations: 0.9524 MB / 1.217 GB, free: 13.05 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.2e-06/1.177, allocations: 7.938 kB / 1.217 GB, free: 13.04 MB / 0.92 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002337/1.18, allocations: 1.251 MB / 1.218 GB, free: 11.78 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.975e-05/1.18, allocations: 18.02 kB / 1.218 GB, free: 11.77 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.237e-05/1.18, allocations: 8 kB / 1.218 GB, free: 11.76 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/1.18, allocations: 16 kB / 1.218 GB, free: 11.74 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009201/1.181, allocations: 243.6 kB / 1.218 GB, free: 11.5 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.001e-05/1.181, allocations: 19.94 kB / 1.218 GB, free: 11.48 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001688/1.183, allocations: 123.2 kB / 1.218 GB, free: 11.36 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.921e-05/1.183, allocations: 51.98 kB / 1.218 GB, free: 11.31 MB / 0.92 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.000302/1.183, allocations: 252.6 kB / 1.219 GB, free: 11.06 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000369/1.183, allocations: 240.9 kB / 1.219 GB, free: 10.82 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001712/1.185, allocations: 0.8935 MB / 1.22 GB, free: 9.918 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/1.185, allocations: 8 kB / 1.22 GB, free: 9.91 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/1.185, allocations: 0 / 1.22 GB, free: 9.91 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009659/1.186, allocations: 0.6814 MB / 1.22 GB, free: 9.203 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004147/1.19, allocations: 2.586 MB / 1.223 GB, free: 6.539 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.449e-06/1.19, allocations: 0 / 1.223 GB, free: 6.539 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005514/1.191, allocations: 127.8 kB / 1.223 GB, free: 6.414 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/1.191, allocations: 4 kB / 1.223 GB, free: 6.41 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.413e-05/1.191, allocations: 19.98 kB / 1.223 GB, free: 6.391 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.562e-06/1.191, allocations: 4 kB / 1.223 GB, free: 6.387 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/1.191, allocations: 0 / 1.223 GB, free: 6.387 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002097/1.193, allocations: 1.313 MB / 1.224 GB, free: 5.043 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007725/1.194, allocations: 418 kB / 1.225 GB, free: 4.613 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002393/1.194, allocations: 16 kB / 1.225 GB, free: 4.598 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000865/1.195, allocations: 51.8 kB / 1.225 GB, free: 4.547 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.335e-05/1.195, allocations: 44.44 kB / 1.225 GB, free: 4.504 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.376e-05/1.195, allocations: 31.97 kB / 1.225 GB, free: 4.473 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.002114/1.197, allocations: 1.569 MB / 1.226 GB, free: 2.898 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.1e-07/1.197, allocations: 4 kB / 1.226 GB, free: 2.895 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.00271/1.2, allocations: 1.107 MB / 1.227 GB, free: 1.785 MB / 0.92 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.001613/1.201, allocations: 0.7506 MB / 1.228 GB, free: 1.164 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002413/1.204, allocations: 1.363 MB / 1.229 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/1.204, allocations: 4 kB / 1.229 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0005072/1.204, allocations: 323 kB / 1.23 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00518/1.21, allocations: 1.383 MB / 1.231 GB, free: 14.15 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005831/1.215, allocations: 3.674 MB / 1.235 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001308/1.217, allocations: 1.59 MB / 1.236 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.002317/1.219, allocations: 0.5042 MB / 1.237 GB, free: 8.309 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004072/1.22, allocations: 175.4 kB / 1.237 GB, free: 8.137 MB / 0.9356 GB Notification: Performance of SimCode: time 1.032e-06/1.22, allocations: 0 / 1.237 GB, free: 8.137 MB / 0.9356 GB Notification: Performance of Templates: time 0.0733/1.293, allocations: 44.42 MB / 1.28 GB, free: 12.29 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches