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.0008889/0.0008888, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.007081/0.007081, allocations: 170.8 kB / 16.26 MB, free: 6.676 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.468/1.468, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.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.752/2.752, allocations: 390.9 MB / 0.6663 GB, free: 2.398 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000434/0.000434, allocations: 19.97 kB / 0.816 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7481/0.7486, allocations: 142.4 MB / 0.955 GB, free: 8.062 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.108/0.8566, allocations: 110.2 MB / 1.063 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.03049/0.8872, allocations: 20.12 MB / 1.082 GB, free: 12.88 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005291/0.8925, allocations: 91.38 kB / 1.082 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.004266/0.8968, allocations: 1.037 MB / 1.083 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0113/0.9081, allocations: 3.383 MB / 1.087 GB, free: 8.352 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.007874/0.916, allocations: 2.86 MB / 1.089 GB, free: 5.531 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01262/0.9287, allocations: 9.54 MB / 1.099 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003908/0.9326, allocations: 2.071 MB / 1.101 GB, free: 9.84 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006372/0.939, allocations: 2.321 MB / 1.103 GB, free: 7.508 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0047/0.9437, allocations: 2.034 MB / 1.105 GB, free: 5.465 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0005523/0.9443, allocations: 92 kB / 1.105 GB, free: 5.375 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00373/0.9481, allocations: 1.45 MB / 1.107 GB, free: 3.922 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0006093/0.9487, allocations: 0.517 MB / 1.107 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001857/0.9506, allocations: 1.33 MB / 1.108 GB, free: 2.059 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.005565/0.9561, allocations: 4.162 MB / 1.112 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.9562, allocations: 0 / 1.112 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of FrontEnd: time 3.667e-06/0.9562, allocations: 0 / 1.112 GB, free: 13.88 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 8.842e-05/0.9563, allocations: 0 / 1.112 GB, free: 13.88 MB / 0.8731 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.00561/0.9619, allocations: 2.685 MB / 1.115 GB, free: 11.13 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.962, allocations: 12.03 kB / 1.115 GB, free: 11.12 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007868/0.9628, allocations: 320.6 kB / 1.115 GB, free: 10.8 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003904/0.9667, allocations: 2.162 MB / 1.117 GB, free: 8.566 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001059/0.9668, allocations: 123 kB / 1.118 GB, free: 8.445 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002376/0.967, allocations: 168 kB / 1.118 GB, free: 8.281 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002849/0.9699, allocations: 1.616 MB / 1.119 GB, free: 6.602 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.779e-05/0.9699, allocations: 3.938 kB / 1.119 GB, free: 6.598 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001325/0.9701, allocations: 64 kB / 1.119 GB, free: 6.535 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.923e-05/0.9701, allocations: 39.94 kB / 1.119 GB, free: 6.496 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002133/0.9723, allocations: 1.163 MB / 1.121 GB, free: 5.328 MB / 0.8731 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.01115/0.9834, allocations: 7.908 MB / 1.128 GB, free: 12.91 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008649/0.9843, allocations: 497.4 kB / 1.129 GB, free: 12.42 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005264/0.9849, allocations: 323 kB / 1.129 GB, free: 12.1 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007431/0.9856, allocations: 0.7641 MB / 1.13 GB, free: 11.17 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.2e-05/0.9857, allocations: 39.12 kB / 1.13 GB, free: 11.12 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=60): time 2.826e-06/0.9857, allocations: 0 / 1.13 GB, free: 11.12 MB / 0.8887 GB Notification: Performance of matching and sorting (n=60): time 0.002128/0.9878, allocations: 1.004 MB / 1.131 GB, free: 10.11 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.633e-05/0.9879, allocations: 59.97 kB / 1.131 GB, free: 10.04 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003302/0.9912, allocations: 2.316 MB / 1.133 GB, free: 7.711 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001616/0.9914, allocations: 45.7 kB / 1.133 GB, free: 7.66 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.001068/0.9924, allocations: 1.153 MB / 1.134 GB, free: 6.496 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002108/0.9927, allocations: 216.9 kB / 1.135 GB, free: 6.281 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001468/0.9928, allocations: 105.7 kB / 1.135 GB, free: 6.172 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001476/0.993, allocations: 345.9 kB / 1.135 GB, free: 5.828 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006867/0.9937, allocations: 358.4 kB / 1.135 GB, free: 5.477 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009834/0.9947, allocations: 0.7502 MB / 1.136 GB, free: 4.57 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001517/0.9962, allocations: 0.9941 MB / 1.137 GB, free: 3.465 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.9962, allocations: 4 kB / 1.137 GB, free: 3.461 MB / 0.8887 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002378/0.9986, allocations: 1.307 MB / 1.138 GB, free: 2.145 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.000232/0.9988, allocations: 344 kB / 1.139 GB, free: 1.691 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.9988, allocations: 11.94 kB / 1.139 GB, free: 1.68 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.866e-05/0.9989, allocations: 16 kB / 1.139 GB, free: 1.664 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009794/0.9999, allocations: 259.6 kB / 1.139 GB, free: 1.41 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.02e-05/0.9999, allocations: 15.94 kB / 1.139 GB, free: 1.395 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001829/1.002, allocations: 250.2 kB / 1.139 GB, free: 1.148 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.735e-05/1.002, allocations: 55.98 kB / 1.139 GB, free: 1.094 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 8.606e-06/1.002, allocations: 4 kB / 1.139 GB, free: 1.09 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001792/1.004, allocations: 1.027 MB / 1.14 GB, free: 68 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/1.004, allocations: 15.94 kB / 1.14 GB, free: 52 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/1.004, allocations: 12 kB / 1.14 GB, free: 40 kB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009486/1.005, allocations: 252.1 kB / 1.14 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.407e-05/1.005, allocations: 27.92 kB / 1.14 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001883/1.007, allocations: 226.5 kB / 1.141 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.209e-05/1.007, allocations: 44 kB / 1.141 GB, free: 15.5 MB / 0.9044 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.001122/1.008, allocations: 0.5827 MB / 1.141 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003956/1.008, allocations: 241.2 kB / 1.142 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001718/1.01, allocations: 0.8964 MB / 1.142 GB, free: 13.76 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.608e-05/1.01, allocations: 11.98 kB / 1.142 GB, free: 13.75 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/1.01, allocations: 4 kB / 1.142 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001061/1.011, allocations: 0.7009 MB / 1.143 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003938/1.015, allocations: 2.578 MB / 1.146 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/1.015, allocations: 0 / 1.146 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005381/1.016, allocations: 127.8 kB / 1.146 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.226e-06/1.016, allocations: 4 kB / 1.146 GB, free: 10.23 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.644e-05/1.016, allocations: 16.08 kB / 1.146 GB, free: 10.21 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.755e-06/1.016, allocations: 12 kB / 1.146 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/1.016, allocations: 0 / 1.146 GB, free: 10.2 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002117/1.018, allocations: 1.337 MB / 1.147 GB, free: 8.836 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007899/1.019, allocations: 453.8 kB / 1.148 GB, free: 8.371 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002307/1.019, allocations: 16 kB / 1.148 GB, free: 8.355 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001166/1.02, allocations: 115.7 kB / 1.148 GB, free: 8.242 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.695e-05/1.02, allocations: 44.5 kB / 1.148 GB, free: 8.199 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.381e-05/1.02, allocations: 31.92 kB / 1.148 GB, free: 8.168 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.002203/1.022, allocations: 1.554 MB / 1.149 GB, free: 6.609 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2e-07/1.022, allocations: 0 / 1.149 GB, free: 6.609 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.002685/1.025, allocations: 1.099 MB / 1.15 GB, free: 5.508 MB / 0.9044 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.00161/1.027, allocations: 0.7393 MB / 1.151 GB, free: 4.902 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.002482/1.029, allocations: 1.369 MB / 1.152 GB, free: 3.535 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/1.029, allocations: 4 kB / 1.152 GB, free: 3.531 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0005161/1.03, allocations: 328.4 kB / 1.153 GB, free: 3.211 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007343/1.037, allocations: 1.383 MB / 1.154 GB, free: 1.852 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007587/1.045, allocations: 4.608 MB / 1.159 GB, free: 13.2 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001509/1.046, allocations: 1.594 MB / 1.16 GB, free: 11.57 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.00291/1.049, allocations: 0.4977 MB / 1.161 GB, free: 11.07 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004748/1.05, allocations: 179.4 kB / 1.161 GB, free: 10.89 MB / 0.92 GB Notification: Performance of SimCode: time 2.375e-06/1.05, allocations: 0 / 1.161 GB, free: 10.89 MB / 0.92 GB Notification: Performance of Templates: time 0.07567/1.125, allocations: 45.02 MB / 1.205 GB, free: 14.42 MB / 0.9669 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/jenkins/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