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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001571/0.001571, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002047/0.002047, allocations: 200 kB / 16.79 MB, free: 6.828 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.558/1.558, allocations: 222.9 MB / 240.5 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.688/2.688, allocations: 437 MB / 0.7106 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001577/0.001577, allocations: 67.89 kB / 0.8692 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7618/0.7634, allocations: 151.6 MB / 1.017 GB, free: 2.801 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1267/0.8901, allocations: 111.9 MB / 1.127 GB, free: 2.52 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.03222/0.9224, allocations: 20.35 MB / 1.146 GB, free: 14.13 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005345/0.9278, allocations: 95.38 kB / 1.147 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.004331/0.9322, allocations: 1.049 MB / 1.148 GB, free: 12.98 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0105/0.9428, allocations: 3.375 MB / 1.151 GB, free: 9.594 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.007818/0.9506, allocations: 2.843 MB / 1.154 GB, free: 6.789 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.01228/0.9629, allocations: 9.53 MB / 1.163 GB, free: 13.23 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004516/0.9675, allocations: 2.132 MB / 1.165 GB, free: 11.04 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006652/0.9741, allocations: 2.395 MB / 1.167 GB, free: 8.633 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004671/0.9788, allocations: 2.131 MB / 1.169 GB, free: 6.492 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.001015/0.9799, allocations: 120 kB / 1.17 GB, free: 6.375 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00476/0.9847, allocations: 1.47 MB / 1.171 GB, free: 4.902 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.001217/0.9859, allocations: 0.5718 MB / 1.172 GB, free: 4.328 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.003263/0.9892, allocations: 1.383 MB / 1.173 GB, free: 2.938 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.005252/0.9945, allocations: 3.395 MB / 1.176 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 8.946e-06/0.9945, allocations: 0 / 1.176 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.863e-06/0.9945, allocations: 0 / 1.176 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 0.0001631/0.9947, allocations: 0 / 1.176 GB, free: 15.54 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.007891/1.003, allocations: 3.222 MB / 1.179 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/1.003, allocations: 11.98 kB / 1.179 GB, free: 12.23 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001198/1.004, allocations: 328.6 kB / 1.18 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004635/1.009, allocations: 2.158 MB / 1.182 GB, free: 9.684 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001287/1.009, allocations: 123 kB / 1.182 GB, free: 9.562 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004361/1.009, allocations: 167.9 kB / 1.182 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003498/1.013, allocations: 1.608 MB / 1.184 GB, free: 7.727 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.188e-05/1.013, allocations: 7.938 kB / 1.184 GB, free: 7.719 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001612/1.013, allocations: 60 kB / 1.184 GB, free: 7.66 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.097e-05/1.013, allocations: 47.94 kB / 1.184 GB, free: 7.613 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002295/1.015, allocations: 1.147 MB / 1.185 GB, free: 6.461 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.01233/1.028, allocations: 7.877 MB / 1.193 GB, free: 14.07 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008565/1.028, allocations: 481.9 kB / 1.193 GB, free: 13.6 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005126/1.029, allocations: 323 kB / 1.193 GB, free: 13.28 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007046/1.03, allocations: 0.7602 MB / 1.194 GB, free: 12.36 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.49e-05/1.03, allocations: 43.12 kB / 1.194 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=60): time 2.575e-06/1.03, allocations: 0 / 1.194 GB, free: 12.3 MB / 0.9512 GB Notification: Performance of matching and sorting (n=60): time 0.002396/1.032, allocations: 0.9842 MB / 1.195 GB, free: 11.31 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.588e-05/1.032, allocations: 55.97 kB / 1.195 GB, free: 11.24 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004034/1.036, allocations: 2.32 MB / 1.197 GB, free: 8.91 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.000177/1.036, allocations: 53.7 kB / 1.197 GB, free: 8.852 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.00108/1.038, allocations: 1.153 MB / 1.199 GB, free: 7.688 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002621/1.038, allocations: 216.9 kB / 1.199 GB, free: 7.473 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004407/1.038, allocations: 262.6 kB / 1.199 GB, free: 7.211 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001599/1.038, allocations: 341.9 kB / 1.199 GB, free: 6.871 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007457/1.039, allocations: 361.9 kB / 1.2 GB, free: 6.512 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001064/1.04, allocations: 0.7463 MB / 1.2 GB, free: 5.605 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001516/1.042, allocations: 0.9863 MB / 1.201 GB, free: 4.504 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.063e-05/1.042, allocations: 4 kB / 1.201 GB, free: 4.5 MB / 0.9512 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002672/1.045, allocations: 1.287 MB / 1.203 GB, free: 3.207 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/1.045, allocations: 8 kB / 1.203 GB, free: 3.199 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.966e-05/1.045, allocations: 8.781 kB / 1.203 GB, free: 3.191 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.067e-05/1.045, allocations: 15.94 kB / 1.203 GB, free: 3.176 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009907/1.046, allocations: 259.6 kB / 1.203 GB, free: 2.922 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.271e-05/1.046, allocations: 19.92 kB / 1.203 GB, free: 2.902 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002094/1.048, allocations: 234.2 kB / 1.203 GB, free: 2.672 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000128/1.048, allocations: 55.98 kB / 1.203 GB, free: 2.617 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001575/1.049, allocations: 0.7641 MB / 1.204 GB, free: 1.848 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001019/1.051, allocations: 0.731 MB / 1.205 GB, free: 0.9609 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001463/1.052, allocations: 0.9484 MB / 1.206 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.835e-06/1.052, allocations: 4 kB / 1.206 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.00251/1.055, allocations: 1.274 MB / 1.207 GB, free: 14.6 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.672e-05/1.055, allocations: 9.25 kB / 1.207 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/1.055, allocations: 8 kB / 1.207 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/1.055, allocations: 16 kB / 1.207 GB, free: 14.57 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009264/1.056, allocations: 243.6 kB / 1.207 GB, free: 14.33 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.494e-05/1.056, allocations: 23.92 kB / 1.207 GB, free: 14.31 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001975/1.058, allocations: 183.2 kB / 1.207 GB, free: 14.13 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.516e-05/1.058, allocations: 51.98 kB / 1.207 GB, free: 14.08 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.0003485/1.058, allocations: 255.8 kB / 1.208 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006459/1.059, allocations: 237 kB / 1.208 GB, free: 13.59 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001925/1.061, allocations: 0.8935 MB / 1.209 GB, free: 12.68 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.456e-05/1.061, allocations: 8 kB / 1.209 GB, free: 12.68 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/1.061, allocations: 0 / 1.209 GB, free: 12.68 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001035/1.062, allocations: 0.6852 MB / 1.209 GB, free: 11.96 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004891/1.067, allocations: 2.57 MB / 1.212 GB, free: 9.312 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/1.067, allocations: 0 / 1.212 GB, free: 9.312 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005481/1.067, allocations: 123.8 kB / 1.212 GB, free: 9.191 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.496e-06/1.067, allocations: 7.938 kB / 1.212 GB, free: 9.184 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.495e-05/1.067, allocations: 19.98 kB / 1.212 GB, free: 9.164 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/1.067, allocations: 8.094 kB / 1.212 GB, free: 9.156 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/1.067, allocations: 0 / 1.212 GB, free: 9.156 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002269/1.07, allocations: 1.317 MB / 1.213 GB, free: 7.809 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009506/1.07, allocations: 417.9 kB / 1.214 GB, free: 7.379 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004836/1.071, allocations: 15.94 kB / 1.214 GB, free: 7.363 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001315/1.072, allocations: 115.7 kB / 1.214 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/1.072, allocations: 40.45 kB / 1.214 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.865e-05/1.072, allocations: 31.97 kB / 1.214 GB, free: 7.176 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.002336/1.075, allocations: 1.55 MB / 1.215 GB, free: 5.621 MB / 0.9669 GB Notification: Performance of sort global known variables: time 3e-07/1.075, allocations: 0 / 1.215 GB, free: 5.621 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.00303/1.078, allocations: 1.099 MB / 1.217 GB, free: 4.52 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.001803/1.08, allocations: 0.7326 MB / 1.217 GB, free: 3.918 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.002568/1.082, allocations: 1.355 MB / 1.219 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/1.082, allocations: 0 / 1.219 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0005526/1.083, allocations: 327 kB / 1.219 GB, free: 2.25 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006627/1.09, allocations: 1.38 MB / 1.22 GB, free: 0.8945 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006851/1.096, allocations: 4.598 MB / 1.225 GB, free: 12.25 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001189/1.098, allocations: 1.586 MB / 1.226 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006723/1.098, allocations: 175.4 kB / 1.226 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of SimCode: time 1.082e-06/1.098, allocations: 4 kB / 1.226 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of Templates: time 0.519/1.617, allocations: 39.57 MB / 1.265 GB, free: 208.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/jenkins1/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