Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001354/0.001354, allocations: 104.9 kB / 15.98 MB, free: 6.355 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.001328/0.001328, allocations: 196.5 kB / 16.91 MB, free: 6.188 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.358/1.358, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.558/2.558, allocations: 469.8 MB / 0.7427 GB, free: 3.629 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001893, allocations: 63.97 kB / 0.9087 GB, free: 14.17 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3346/0.3365, allocations: 159.1 MB / 1.064 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.6245/0.9611, allocations: 111.6 MB / 1.173 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.03399/0.9951, allocations: 20.11 MB / 1.193 GB, free: 14.68 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005188/1, allocations: 96.5 kB / 1.193 GB, free: 14.64 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.004463/1.005, allocations: 1.097 MB / 1.194 GB, free: 13.74 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.01115/1.016, allocations: 3.426 MB / 1.197 GB, free: 11.06 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.008259/1.024, allocations: 2.883 MB / 1.2 GB, free: 8.965 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.01153/1.036, allocations: 7.253 MB / 1.207 GB, free: 4.742 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004445/1.04, allocations: 2.532 MB / 1.21 GB, free: 3.109 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00788/1.048, allocations: 2.832 MB / 1.212 GB, free: 1.422 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004508/1.053, allocations: 2.195 MB / 1.215 GB, free: 88 kB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0008671/1.054, allocations: 252.5 kB / 1.215 GB, free: 72 kB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004685/1.058, allocations: 1.657 MB / 1.216 GB, free: 14.41 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.001017/1.059, allocations: 0.6928 MB / 1.217 GB, free: 13.71 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.002557/1.062, allocations: 1.516 MB / 1.219 GB, free: 12.19 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.005038/1.067, allocations: 3.438 MB / 1.222 GB, free: 8.746 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/1.067, allocations: 0 / 1.222 GB, free: 8.746 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.373e-06/1.067, allocations: 8 kB / 1.222 GB, free: 8.738 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.298e-05/1.067, allocations: 0 / 1.222 GB, free: 8.738 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.005844/1.073, allocations: 3.227 MB / 1.225 GB, free: 5.445 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.143e-05/1.073, allocations: 12.03 kB / 1.225 GB, free: 5.434 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008954/1.074, allocations: 320.8 kB / 1.225 GB, free: 5.117 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00403/1.078, allocations: 2.159 MB / 1.228 GB, free: 2.887 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/1.078, allocations: 131 kB / 1.228 GB, free: 2.758 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002436/1.078, allocations: 164 kB / 1.228 GB, free: 2.598 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002893/1.081, allocations: 1.609 MB / 1.229 GB, free: 0.9258 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.89e-05/1.081, allocations: 7.906 kB / 1.229 GB, free: 0.918 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001302/1.081, allocations: 60 kB / 1.229 GB, free: 0.8594 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.905e-05/1.082, allocations: 43.94 kB / 1.23 GB, free: 0.8164 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002101/1.084, allocations: 1.147 MB / 1.231 GB, free: 15.66 MB / 0.9512 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.01161/1.095, allocations: 7.878 MB / 1.238 GB, free: 7.277 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008582/1.096, allocations: 481.8 kB / 1.239 GB, free: 6.797 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005206/1.097, allocations: 326.8 kB / 1.239 GB, free: 6.473 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000709/1.097, allocations: 0.7602 MB / 1.24 GB, free: 5.547 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.01e-05/1.097, allocations: 39.12 kB / 1.24 GB, free: 5.5 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=60): time 2.364e-06/1.097, allocations: 7.938 kB / 1.24 GB, free: 5.492 MB / 0.9512 GB Notification: Performance of matching and sorting (n=60): time 0.002224/1.1, allocations: 0.9881 MB / 1.241 GB, free: 4.496 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.463e-05/1.1, allocations: 67.91 kB / 1.241 GB, free: 4.418 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003448/1.103, allocations: 2.308 MB / 1.243 GB, free: 2.098 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001935/1.103, allocations: 49.7 kB / 1.243 GB, free: 2.043 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.00111/1.105, allocations: 1.157 MB / 1.244 GB, free: 0.875 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002671/1.105, allocations: 216.9 kB / 1.245 GB, free: 0.6602 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003903/1.105, allocations: 258.6 kB / 1.245 GB, free: 408 kB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001778/1.105, allocations: 345.9 kB / 1.245 GB, free: 56 kB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007131/1.106, allocations: 358 kB / 1.245 GB, free: 15.7 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001079/1.107, allocations: 0.7525 MB / 1.246 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001529/1.109, allocations: 0.9746 MB / 1.247 GB, free: 13.7 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.864e-06/1.109, allocations: 4 kB / 1.247 GB, free: 13.69 MB / 0.9669 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002541/1.111, allocations: 1.291 MB / 1.248 GB, free: 12.39 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.548e-05/1.111, allocations: 8 kB / 1.248 GB, free: 12.38 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.485e-05/1.111, allocations: 8 kB / 1.248 GB, free: 12.38 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.899e-05/1.111, allocations: 16 kB / 1.248 GB, free: 12.36 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009925/1.112, allocations: 259.5 kB / 1.249 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.184e-05/1.112, allocations: 16.41 kB / 1.249 GB, free: 12.09 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001761/1.114, allocations: 246.2 kB / 1.249 GB, free: 11.85 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/1.114, allocations: 55.98 kB / 1.249 GB, free: 11.79 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001404/1.116, allocations: 0.7576 MB / 1.25 GB, free: 11.03 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001028/1.117, allocations: 0.7349 MB / 1.25 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001458/1.118, allocations: 0.9485 MB / 1.251 GB, free: 9.074 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.208e-06/1.118, allocations: 0 / 1.251 GB, free: 9.074 MB / 0.9669 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002498/1.121, allocations: 1.259 MB / 1.253 GB, free: 7.805 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/1.121, allocations: 11.98 kB / 1.253 GB, free: 7.793 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.622e-05/1.121, allocations: 16 kB / 1.253 GB, free: 7.777 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/1.121, allocations: 16.03 kB / 1.253 GB, free: 7.762 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009272/1.122, allocations: 247.6 kB / 1.253 GB, free: 7.52 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.988e-05/1.122, allocations: 15.94 kB / 1.253 GB, free: 7.504 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001796/1.124, allocations: 183.1 kB / 1.253 GB, free: 7.324 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.18e-05/1.124, allocations: 55.98 kB / 1.253 GB, free: 7.27 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.0003689/1.124, allocations: 243.9 kB / 1.253 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004852/1.125, allocations: 244.9 kB / 1.254 GB, free: 6.781 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001873/1.126, allocations: 0.8858 MB / 1.254 GB, free: 5.887 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.211e-05/1.127, allocations: 7.938 kB / 1.254 GB, free: 5.879 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/1.127, allocations: 0 / 1.254 GB, free: 5.879 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001088/1.128, allocations: 0.6931 MB / 1.255 GB, free: 5.152 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004296/1.132, allocations: 2.57 MB / 1.258 GB, free: 2.508 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/1.132, allocations: 0 / 1.258 GB, free: 2.508 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005436/1.133, allocations: 131.8 kB / 1.258 GB, free: 2.379 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/1.133, allocations: 3.938 kB / 1.258 GB, free: 2.375 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.223e-05/1.133, allocations: 16 kB / 1.258 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.012e-06/1.133, allocations: 4 kB / 1.258 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/1.133, allocations: 0 / 1.258 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002223/1.135, allocations: 1.317 MB / 1.259 GB, free: 1.008 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008618/1.136, allocations: 417.9 kB / 1.259 GB, free: 0.5781 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002591/1.136, allocations: 12 kB / 1.259 GB, free: 0.5664 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/1.137, allocations: 123.7 kB / 1.26 GB, free: 456 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001146/1.137, allocations: 48.44 kB / 1.26 GB, free: 408 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.746e-05/1.137, allocations: 27.98 kB / 1.26 GB, free: 380 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.002421/1.14, allocations: 1.554 MB / 1.261 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of sort global known variables: time 4.01e-07/1.14, allocations: 0 / 1.261 GB, free: 14.81 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.003062/1.143, allocations: 1.091 MB / 1.262 GB, free: 13.72 MB / 0.9825 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.002172/1.145, allocations: 0.7365 MB / 1.263 GB, free: 13.12 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.003037/1.148, allocations: 1.453 MB / 1.264 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/1.148, allocations: 8 kB / 1.264 GB, free: 11.67 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0005742/1.149, allocations: 327 kB / 1.265 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006127/1.155, allocations: 1.386 MB / 1.266 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007417/1.162, allocations: 4.589 MB / 1.271 GB, free: 5.375 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001369/1.164, allocations: 1.586 MB / 1.272 GB, free: 3.754 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006212/1.164, allocations: 183.4 kB / 1.272 GB, free: 3.574 MB / 0.9825 GB Notification: Performance of SimCode: time 9.72e-07/1.164, allocations: 3.938 kB / 1.272 GB, free: 3.57 MB / 0.9825 GB Notification: Performance of Templates: time 0.06096/1.225, allocations: 39.24 MB / 1.311 GB, free: 12.66 MB / 1.029 GB make -j1 -f Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches