Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001105/0.001105, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001249/0.001249, allocations: 193.8 kB / 16.25 MB, free: 6.629 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.479/1.479, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.689/2.689, allocations: 437 MB / 0.71 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001581/0.001581, allocations: 63.91 kB / 0.8687 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8806/0.8822, allocations: 151.6 MB / 1.017 GB, free: 2.734 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1098/0.992, allocations: 111.7 MB / 1.126 GB, free: 2.711 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.0342/1.026, allocations: 20.12 MB / 1.145 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00577/1.032, allocations: 103.3 kB / 1.146 GB, free: 14.45 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.004335/1.036, allocations: 1.092 MB / 1.147 GB, free: 13.35 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.012/1.049, allocations: 3.423 MB / 1.15 GB, free: 9.918 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.008515/1.057, allocations: 2.875 MB / 1.153 GB, free: 7.082 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.01143/1.069, allocations: 7.263 MB / 1.16 GB, free: 15.8 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005333/1.074, allocations: 2.537 MB / 1.162 GB, free: 13.2 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009682/1.084, allocations: 2.811 MB / 1.165 GB, free: 10.38 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00453/1.088, allocations: 2.198 MB / 1.167 GB, free: 8.176 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.001222/1.089, allocations: 252 kB / 1.167 GB, free: 7.93 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00499/1.094, allocations: 1.661 MB / 1.169 GB, free: 6.266 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.001417/1.096, allocations: 0.6928 MB / 1.17 GB, free: 5.57 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.003746/1.1, allocations: 1.512 MB / 1.171 GB, free: 4.051 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.008732/1.108, allocations: 4.35 MB / 1.176 GB, free: 15.69 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/1.108, allocations: 4 kB / 1.176 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.392e-06/1.108, allocations: 0 / 1.176 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 0.0001866/1.109, allocations: 4 kB / 1.176 GB, free: 15.68 MB / 0.9356 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.008633/1.117, allocations: 3.222 MB / 1.179 GB, free: 12.39 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/1.117, allocations: 15.98 kB / 1.179 GB, free: 12.38 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001211/1.119, allocations: 320.6 kB / 1.179 GB, free: 12.06 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004363/1.123, allocations: 2.151 MB / 1.181 GB, free: 9.836 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.943e-05/1.123, allocations: 127 kB / 1.181 GB, free: 9.711 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002166/1.123, allocations: 172 kB / 1.181 GB, free: 9.543 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002744/1.126, allocations: 1.612 MB / 1.183 GB, free: 7.867 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.789e-05/1.126, allocations: 0 / 1.183 GB, free: 7.867 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001359/1.126, allocations: 64 kB / 1.183 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.266e-05/1.126, allocations: 39.94 kB / 1.183 GB, free: 7.766 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002034/1.128, allocations: 1.147 MB / 1.184 GB, free: 6.613 MB / 0.9356 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.141, allocations: 7.885 MB / 1.192 GB, free: 14.22 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008932/1.142, allocations: 477.9 kB / 1.192 GB, free: 13.75 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005531/1.142, allocations: 328.3 kB / 1.193 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008029/1.143, allocations: 0.7524 MB / 1.193 GB, free: 12.51 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.898e-05/1.143, allocations: 39.12 kB / 1.193 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=60): time 2.725e-06/1.143, allocations: 3.938 kB / 1.193 GB, free: 12.45 MB / 0.9512 GB Notification: Performance of matching and sorting (n=60): time 0.002587/1.146, allocations: 0.9958 MB / 1.194 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.544e-05/1.146, allocations: 59.97 kB / 1.194 GB, free: 11.38 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004329/1.15, allocations: 2.312 MB / 1.197 GB, free: 9.055 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001974/1.15, allocations: 45.7 kB / 1.197 GB, free: 9.004 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001186/1.152, allocations: 1.153 MB / 1.198 GB, free: 7.84 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002758/1.152, allocations: 213 kB / 1.198 GB, free: 7.629 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004989/1.152, allocations: 262.5 kB / 1.198 GB, free: 7.367 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001512/1.152, allocations: 349.9 kB / 1.199 GB, free: 7.02 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007436/1.153, allocations: 357.9 kB / 1.199 GB, free: 6.664 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001029/1.154, allocations: 0.7541 MB / 1.2 GB, free: 5.75 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001541/1.156, allocations: 0.9784 MB / 1.201 GB, free: 4.656 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/1.156, allocations: 4 kB / 1.201 GB, free: 4.652 MB / 0.9512 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002627/1.158, allocations: 1.291 MB / 1.202 GB, free: 3.355 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.372e-05/1.158, allocations: 8 kB / 1.202 GB, free: 3.348 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.792e-05/1.159, allocations: 8 kB / 1.202 GB, free: 3.34 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.968e-05/1.159, allocations: 16 kB / 1.202 GB, free: 3.324 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001095/1.16, allocations: 255.6 kB / 1.202 GB, free: 3.074 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.631e-05/1.16, allocations: 19.88 kB / 1.202 GB, free: 3.055 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001984/1.162, allocations: 242.7 kB / 1.202 GB, free: 2.816 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/1.162, allocations: 55.98 kB / 1.203 GB, free: 2.762 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001402/1.163, allocations: 0.7602 MB / 1.203 GB, free: 1.996 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001105/1.164, allocations: 0.7387 MB / 1.204 GB, free: 1.102 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001401/1.166, allocations: 0.9523 MB / 1.205 GB, free: 28 kB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.818e-06/1.166, allocations: 4 kB / 1.205 GB, free: 24 kB / 0.9512 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002641/1.168, allocations: 1.261 MB / 1.206 GB, free: 14.75 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.573e-05/1.168, allocations: 10.66 kB / 1.206 GB, free: 14.74 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/1.168, allocations: 12 kB / 1.206 GB, free: 14.73 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/1.168, allocations: 12 kB / 1.206 GB, free: 14.72 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009363/1.169, allocations: 251.6 kB / 1.206 GB, free: 14.47 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.503e-05/1.169, allocations: 15.94 kB / 1.206 GB, free: 14.46 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002009/1.171, allocations: 183.1 kB / 1.207 GB, free: 14.28 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000106/1.172, allocations: 56.27 kB / 1.207 GB, free: 14.22 MB / 0.9669 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.0003429/1.172, allocations: 247.9 kB / 1.207 GB, free: 13.97 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006655/1.173, allocations: 237 kB / 1.207 GB, free: 13.74 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002027/1.175, allocations: 0.905 MB / 1.208 GB, free: 12.83 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.799e-05/1.175, allocations: 7.984 kB / 1.208 GB, free: 12.82 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/1.175, allocations: 0 / 1.208 GB, free: 12.82 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00106/1.176, allocations: 0.6814 MB / 1.209 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00503/1.181, allocations: 2.574 MB / 1.211 GB, free: 9.457 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/1.181, allocations: 0 / 1.211 GB, free: 9.457 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000567/1.181, allocations: 131.8 kB / 1.211 GB, free: 9.328 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.099e-05/1.181, allocations: 4 kB / 1.211 GB, free: 9.324 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.648e-05/1.182, allocations: 15.94 kB / 1.211 GB, free: 9.309 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.941e-06/1.182, allocations: 4 kB / 1.211 GB, free: 9.305 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/1.182, allocations: 0 / 1.211 GB, free: 9.305 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002344/1.184, allocations: 1.317 MB / 1.213 GB, free: 7.957 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001245/1.185, allocations: 410 kB / 1.213 GB, free: 7.535 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005157/1.186, allocations: 16 kB / 1.213 GB, free: 7.52 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001537/1.187, allocations: 119.7 kB / 1.213 GB, free: 7.402 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/1.187, allocations: 56.31 kB / 1.213 GB, free: 7.344 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001589/1.188, allocations: 27.98 kB / 1.213 GB, free: 7.316 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.002627/1.19, allocations: 1.554 MB / 1.215 GB, free: 5.758 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.11e-07/1.19, allocations: 0 / 1.215 GB, free: 5.758 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.003482/1.194, allocations: 1.091 MB / 1.216 GB, free: 4.664 MB / 0.9669 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.001846/1.196, allocations: 0.7325 MB / 1.217 GB, free: 4.059 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.003179/1.199, allocations: 1.445 MB / 1.218 GB, free: 2.625 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/1.199, allocations: 64 / 1.218 GB, free: 2.625 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0006017/1.199, allocations: 331 kB / 1.218 GB, free: 2.297 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006809/1.206, allocations: 1.386 MB / 1.22 GB, free: 0.9688 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007825/1.214, allocations: 4.533 MB / 1.224 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001494/1.216, allocations: 1.594 MB / 1.226 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.002385/1.218, allocations: 498.7 kB / 1.226 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005008/1.218, allocations: 167.4 kB / 1.226 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of SimCode: time 7.52e-07/1.218, allocations: 0 / 1.226 GB, free: 10.11 MB / 0.9825 GB Notification: Performance of Templates: time 0.566/1.784, allocations: 46.12 MB / 1.271 GB, free: 214.2 MB / 0.9981 GB make -j1 -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches