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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: 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_9_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_9_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.00169/0.00169, allocations: 101.5 kB / 16.41 MB, free: 6.461 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.002104/0.002104, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.348/1.348, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.257/2.257, allocations: 390.3 MB / 0.6655 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 75.88 kB / 0.9515 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.962/0.9634, allocations: 140.4 MB / 1.089 GB, free: 5.547 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.146/1.109, allocations: 112.7 MB / 1.199 GB, free: 3.824 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.03558/1.145, allocations: 20.24 MB / 1.218 GB, free: 3.281 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006273/1.151, allocations: 109.2 kB / 1.219 GB, free: 3.238 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.00495/1.156, allocations: 1.28 MB / 1.22 GB, free: 2.148 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.01308/1.17, allocations: 3.683 MB / 1.223 GB, free: 15.21 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.008822/1.178, allocations: 3.124 MB / 1.226 GB, free: 12.83 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.01776/1.196, allocations: 7.212 MB / 1.233 GB, free: 8.59 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007402/1.204, allocations: 2.576 MB / 1.236 GB, free: 6.934 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008635/1.212, allocations: 2.889 MB / 1.239 GB, free: 4.113 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004747/1.217, allocations: 2.124 MB / 1.241 GB, free: 1.98 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.001164/1.218, allocations: 256 kB / 1.241 GB, free: 1.73 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005547/1.224, allocations: 1.65 MB / 1.243 GB, free: 80 kB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.001493/1.225, allocations: 0.6928 MB / 1.243 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.004061/1.229, allocations: 1.508 MB / 1.245 GB, free: 13.87 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.009213/1.239, allocations: 4.391 MB / 1.249 GB, free: 9.465 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/1.239, allocations: 0 / 1.249 GB, free: 9.465 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.144e-06/1.239, allocations: 0 / 1.249 GB, free: 9.465 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0001823/1.239, allocations: 0 / 1.249 GB, free: 9.465 MB / 0.9825 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.007607/1.247, allocations: 3.234 MB / 1.252 GB, free: 6.164 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/1.247, allocations: 8.031 kB / 1.252 GB, free: 6.156 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001231/1.248, allocations: 332.5 kB / 1.253 GB, free: 5.828 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004614/1.252, allocations: 2.198 MB / 1.255 GB, free: 3.559 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001104/1.253, allocations: 127 kB / 1.255 GB, free: 3.434 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000376/1.253, allocations: 164 kB / 1.255 GB, free: 3.273 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003717/1.257, allocations: 1.615 MB / 1.257 GB, free: 1.594 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.191e-05/1.257, allocations: 0 / 1.257 GB, free: 1.594 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001809/1.257, allocations: 67.98 kB / 1.257 GB, free: 1.527 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.559e-05/1.257, allocations: 43.92 kB / 1.257 GB, free: 1.484 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002309/1.259, allocations: 1.151 MB / 1.258 GB, free: 336 kB / 0.9825 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.01242/1.272, allocations: 7.916 MB / 1.266 GB, free: 7.898 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008763/1.273, allocations: 481.7 kB / 1.266 GB, free: 7.422 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004971/1.273, allocations: 327 kB / 1.266 GB, free: 7.102 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006824/1.274, allocations: 0.7485 MB / 1.267 GB, free: 6.188 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.43e-05/1.274, allocations: 43.12 kB / 1.267 GB, free: 6.133 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=60): time 2.605e-06/1.274, allocations: 0 / 1.267 GB, free: 6.133 MB / 0.9981 GB Notification: Performance of matching and sorting (n=60): time 0.002352/1.276, allocations: 0.9919 MB / 1.268 GB, free: 5.133 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.824e-05/1.276, allocations: 59.97 kB / 1.268 GB, free: 5.062 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004165/1.281, allocations: 2.339 MB / 1.27 GB, free: 2.711 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002052/1.281, allocations: 45.7 kB / 1.27 GB, free: 2.66 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001154/1.282, allocations: 1.146 MB / 1.272 GB, free: 1.504 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002558/1.282, allocations: 220.9 kB / 1.272 GB, free: 1.285 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004269/1.283, allocations: 258.6 kB / 1.272 GB, free: 1.023 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001565/1.283, allocations: 349.9 kB / 1.272 GB, free: 0.6758 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006814/1.283, allocations: 361.9 kB / 1.273 GB, free: 328 kB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001128/1.285, allocations: 0.7463 MB / 1.273 GB, free: 15.41 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001536/1.286, allocations: 0.9863 MB / 1.274 GB, free: 14.31 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-05/1.286, allocations: 4 kB / 1.274 GB, free: 14.3 MB / 1.014 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002908/1.289, allocations: 1.299 MB / 1.276 GB, free: 13 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.692e-05/1.289, allocations: 8 kB / 1.276 GB, free: 12.99 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.631e-05/1.289, allocations: 8 kB / 1.276 GB, free: 12.98 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.55e-05/1.289, allocations: 12 kB / 1.276 GB, free: 12.97 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009944/1.29, allocations: 251.6 kB / 1.276 GB, free: 12.72 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.7e-05/1.29, allocations: 23.91 kB / 1.276 GB, free: 12.7 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001883/1.292, allocations: 170.4 kB / 1.276 GB, free: 12.53 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001201/1.292, allocations: 51.98 kB / 1.276 GB, free: 12.48 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001614/1.294, allocations: 0.7602 MB / 1.277 GB, free: 11.71 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001004/1.295, allocations: 0.7349 MB / 1.278 GB, free: 10.82 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001469/1.296, allocations: 0.9602 MB / 1.279 GB, free: 9.746 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.562e-06/1.296, allocations: 0 / 1.279 GB, free: 9.746 MB / 1.014 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002602/1.299, allocations: 1.258 MB / 1.28 GB, free: 8.48 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/1.299, allocations: 10.19 kB / 1.28 GB, free: 8.473 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.576e-05/1.299, allocations: 8 kB / 1.28 GB, free: 8.465 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.011e-05/1.299, allocations: 16 kB / 1.28 GB, free: 8.449 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000905/1.3, allocations: 255.6 kB / 1.28 GB, free: 8.199 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.831e-05/1.3, allocations: 19.92 kB / 1.28 GB, free: 8.18 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001794/1.302, allocations: 123.7 kB / 1.28 GB, free: 8.059 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/1.302, allocations: 51.98 kB / 1.28 GB, free: 8.008 MB / 1.014 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.0003721/1.302, allocations: 247.8 kB / 1.281 GB, free: 7.758 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006732/1.303, allocations: 237 kB / 1.281 GB, free: 7.523 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00201/1.305, allocations: 0.8897 MB / 1.282 GB, free: 6.621 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.696e-05/1.305, allocations: 4 kB / 1.282 GB, free: 6.617 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.755e-06/1.305, allocations: 3.938 kB / 1.282 GB, free: 6.613 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001092/1.306, allocations: 0.6853 MB / 1.282 GB, free: 5.895 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005459/1.312, allocations: 2.586 MB / 1.285 GB, free: 3.238 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.351e-06/1.312, allocations: 0 / 1.285 GB, free: 3.238 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005584/1.312, allocations: 120 kB / 1.285 GB, free: 3.121 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.371e-05/1.312, allocations: 8 kB / 1.285 GB, free: 3.113 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.193e-05/1.312, allocations: 19.98 kB / 1.285 GB, free: 3.094 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.062e-06/1.312, allocations: 0 / 1.285 GB, free: 3.094 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.282e-06/1.312, allocations: 7.938 kB / 1.285 GB, free: 3.086 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002475/1.315, allocations: 1.321 MB / 1.286 GB, free: 1.734 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/1.316, allocations: 414 kB / 1.287 GB, free: 1.309 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005559/1.316, allocations: 16 kB / 1.287 GB, free: 1.293 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001283/1.318, allocations: 43.88 kB / 1.287 GB, free: 1.25 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.855e-05/1.318, allocations: 48.45 kB / 1.287 GB, free: 1.199 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.151e-05/1.318, allocations: 35.97 kB / 1.287 GB, free: 1.164 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.00288/1.321, allocations: 1.569 MB / 1.288 GB, free: 15.59 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.6e-07/1.321, allocations: 0 / 1.288 GB, free: 15.59 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.00376/1.325, allocations: 1.115 MB / 1.289 GB, free: 14.47 MB / 1.029 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.00197/1.327, allocations: 0.7519 MB / 1.29 GB, free: 13.86 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.002926/1.329, allocations: 1.358 MB / 1.291 GB, free: 12.5 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/1.33, allocations: 4 kB / 1.291 GB, free: 12.49 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0005785/1.33, allocations: 323 kB / 1.292 GB, free: 12.18 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006749/1.337, allocations: 1.385 MB / 1.293 GB, free: 10.84 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007115/1.344, allocations: 3.726 MB / 1.297 GB, free: 7.066 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001677/1.346, allocations: 1.586 MB / 1.298 GB, free: 5.445 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007721/1.347, allocations: 187.3 kB / 1.299 GB, free: 5.262 MB / 1.029 GB Notification: Performance of SimCode: time 1.283e-06/1.347, allocations: 3.938 kB / 1.299 GB, free: 5.258 MB / 1.029 GB Notification: Performance of Templates: time 0.06618/1.413, allocations: 39.85 MB / 1.337 GB, free: 13.75 MB / 1.076 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (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 & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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