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.001612/0.001612, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001998/0.001998, allocations: 194.7 kB / 16.14 MB, free: 6.691 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.415/1.415, allocations: 222.9 MB / 239.8 MB, free: 4.609 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.707/2.707, allocations: 437 MB / 0.7099 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001217/0.001217, allocations: 63.91 kB / 0.8685 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7833/0.7846, allocations: 151.6 MB / 1.017 GB, free: 2.898 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.117/0.9017, allocations: 111.9 MB / 1.126 GB, free: 2.621 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.03563/0.9373, allocations: 20.36 MB / 1.146 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006032/0.9434, allocations: 99.31 kB / 1.146 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.00489/0.9484, allocations: 1.049 MB / 1.147 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.01203/0.9605, allocations: 3.375 MB / 1.15 GB, free: 9.688 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.008318/0.9688, allocations: 2.842 MB / 1.153 GB, free: 6.883 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.01463/0.9834, allocations: 9.53 MB / 1.162 GB, free: 13.32 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005012/0.9885, allocations: 2.132 MB / 1.164 GB, free: 11.13 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007263/0.9958, allocations: 2.395 MB / 1.167 GB, free: 8.727 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005101/1.001, allocations: 2.127 MB / 1.169 GB, free: 6.59 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.001232/1.002, allocations: 120 kB / 1.169 GB, free: 6.473 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005372/1.008, allocations: 1.47 MB / 1.17 GB, free: 5 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.001471/1.009, allocations: 0.5795 MB / 1.171 GB, free: 4.418 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.004627/1.014, allocations: 1.375 MB / 1.172 GB, free: 3.035 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.008299/1.022, allocations: 4.237 MB / 1.176 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/1.022, allocations: 4 kB / 1.176 GB, free: 14.78 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.183e-06/1.022, allocations: 0 / 1.176 GB, free: 14.78 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.785e-05/1.022, allocations: 0 / 1.176 GB, free: 14.78 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.006068/1.028, allocations: 3.23 MB / 1.18 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/1.028, allocations: 15.98 kB / 1.18 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008453/1.029, allocations: 324.6 kB / 1.18 GB, free: 11.15 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003654/1.033, allocations: 2.155 MB / 1.182 GB, free: 8.922 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.044e-05/1.033, allocations: 123 kB / 1.182 GB, free: 8.801 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000227/1.033, allocations: 168 kB / 1.182 GB, free: 8.637 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002796/1.036, allocations: 1.615 MB / 1.184 GB, free: 6.961 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.32e-05/1.036, allocations: 0 / 1.184 GB, free: 6.961 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001372/1.036, allocations: 64 kB / 1.184 GB, free: 6.898 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.485e-05/1.036, allocations: 47.92 kB / 1.184 GB, free: 6.852 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002062/1.038, allocations: 1.147 MB / 1.185 GB, free: 5.699 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.01172/1.05, allocations: 7.885 MB / 1.193 GB, free: 13.3 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009005/1.051, allocations: 470 kB / 1.193 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000515/1.052, allocations: 323 kB / 1.193 GB, free: 12.52 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006417/1.052, allocations: 0.7563 MB / 1.194 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.062e-05/1.052, allocations: 43.06 kB / 1.194 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=60): time 2.935e-06/1.052, allocations: 0 / 1.194 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of matching and sorting (n=60): time 0.002554/1.055, allocations: 0.9881 MB / 1.195 GB, free: 10.55 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.491e-05/1.055, allocations: 59.97 kB / 1.195 GB, free: 10.48 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003664/1.059, allocations: 2.32 MB / 1.198 GB, free: 8.148 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.00022/1.059, allocations: 41.7 kB / 1.198 GB, free: 8.102 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001086/1.06, allocations: 1.165 MB / 1.199 GB, free: 6.926 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002399/1.06, allocations: 216.9 kB / 1.199 GB, free: 6.711 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003671/1.06, allocations: 250.7 kB / 1.199 GB, free: 6.461 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001291/1.061, allocations: 353.9 kB / 1.2 GB, free: 6.109 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006622/1.061, allocations: 357.9 kB / 1.2 GB, free: 5.754 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001046/1.062, allocations: 0.7502 MB / 1.201 GB, free: 4.844 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001671/1.064, allocations: 0.9863 MB / 1.202 GB, free: 3.742 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/1.064, allocations: 0 / 1.202 GB, free: 3.742 MB / 0.9512 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002608/1.067, allocations: 1.292 MB / 1.203 GB, free: 2.445 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/1.067, allocations: 10.34 kB / 1.203 GB, free: 2.438 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/1.067, allocations: 8 kB / 1.203 GB, free: 2.43 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.229e-05/1.067, allocations: 20.03 kB / 1.203 GB, free: 2.41 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000977/1.068, allocations: 247.6 kB / 1.203 GB, free: 2.168 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.115e-05/1.068, allocations: 19.92 kB / 1.203 GB, free: 2.148 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00204/1.07, allocations: 242.2 kB / 1.203 GB, free: 1.91 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-05/1.07, allocations: 55.98 kB / 1.203 GB, free: 1.855 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001488/1.071, allocations: 0.7563 MB / 1.204 GB, free: 1.094 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009145/1.072, allocations: 0.7348 MB / 1.205 GB, free: 208 kB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00132/1.074, allocations: 0.9562 MB / 1.206 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.194e-06/1.074, allocations: 7.984 kB / 1.206 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002239/1.076, allocations: 1.266 MB / 1.207 GB, free: 13.84 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/1.076, allocations: 8 kB / 1.207 GB, free: 13.83 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/1.076, allocations: 12 kB / 1.207 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/1.076, allocations: 12.28 kB / 1.207 GB, free: 13.81 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008659/1.077, allocations: 247.6 kB / 1.207 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.752e-05/1.077, allocations: 19.92 kB / 1.207 GB, free: 13.55 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00169/1.079, allocations: 183.3 kB / 1.207 GB, free: 13.37 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.226e-05/1.079, allocations: 55.98 kB / 1.208 GB, free: 13.31 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.0003717/1.079, allocations: 243.9 kB / 1.208 GB, free: 13.07 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003502/1.079, allocations: 245 kB / 1.208 GB, free: 12.82 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001752/1.081, allocations: 0.8896 MB / 1.209 GB, free: 11.93 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.216e-05/1.081, allocations: 4 kB / 1.209 GB, free: 11.92 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/1.081, allocations: 0 / 1.209 GB, free: 11.92 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009808/1.082, allocations: 0.6892 MB / 1.21 GB, free: 11.2 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004112/1.086, allocations: 2.57 MB / 1.212 GB, free: 8.555 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/1.086, allocations: 4 kB / 1.212 GB, free: 8.551 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005346/1.087, allocations: 127.8 kB / 1.212 GB, free: 8.426 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.558e-06/1.087, allocations: 4.094 kB / 1.212 GB, free: 8.422 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.43e-05/1.087, allocations: 19.98 kB / 1.212 GB, free: 8.402 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.905e-06/1.087, allocations: 4 kB / 1.212 GB, free: 8.398 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/1.087, allocations: 0 / 1.212 GB, free: 8.398 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001989/1.089, allocations: 1.313 MB / 1.213 GB, free: 7.055 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007769/1.09, allocations: 421.9 kB / 1.214 GB, free: 6.621 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002371/1.09, allocations: 15.94 kB / 1.214 GB, free: 6.605 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001074/1.091, allocations: 119.7 kB / 1.214 GB, free: 6.488 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/1.091, allocations: 44.44 kB / 1.214 GB, free: 6.441 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.778e-05/1.091, allocations: 35.97 kB / 1.214 GB, free: 6.406 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.002207/1.093, allocations: 1.55 MB / 1.216 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/1.094, allocations: 4 kB / 1.216 GB, free: 4.848 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.003165/1.097, allocations: 1.091 MB / 1.217 GB, free: 3.754 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.001824/1.099, allocations: 0.728 MB / 1.217 GB, free: 3.152 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.002604/1.101, allocations: 1.358 MB / 1.219 GB, free: 1.805 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 7.213e-06/1.101, allocations: 4 kB / 1.219 GB, free: 1.801 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0005094/1.102, allocations: 324.3 kB / 1.219 GB, free: 1.48 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006172/1.108, allocations: 1.386 MB / 1.22 GB, free: 124 kB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006227/1.114, allocations: 4.523 MB / 1.225 GB, free: 11.56 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001197/1.115, allocations: 1.594 MB / 1.226 GB, free: 9.926 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.002562/1.118, allocations: 0.5013 MB / 1.227 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000426/1.118, allocations: 171.4 kB / 1.227 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of SimCode: time 1.052e-06/1.118, allocations: 0 / 1.227 GB, free: 9.254 MB / 0.9825 GB Notification: Performance of Templates: time 0.7995/1.918, allocations: 45.24 MB / 1.271 GB, free: 214.5 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