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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001036/0.001035, allocations: 86.09 kB / 15.06 MB, free: 1.09 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.001203/0.001203, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 223.3 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.564/2.564, allocations: 390.9 MB / 0.666 GB, free: 2.52 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004769/0.0004771, allocations: 8 kB / 0.8154 GB, free: 13.67 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7839/0.7844, allocations: 142.4 MB / 0.9544 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.103/0.8874, allocations: 104.1 MB / 1.056 GB, free: 7.203 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.03045/0.9179, allocations: 19.08 MB / 1.075 GB, free: 4.098 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004998/0.923, allocations: 95.31 kB / 1.075 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.003741/0.9268, allocations: 0.8967 MB / 1.076 GB, free: 3.102 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.01001/0.9368, allocations: 2.864 MB / 1.078 GB, free: 232 kB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.007585/0.9444, allocations: 2.376 MB / 1.081 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.01208/0.9565, allocations: 8.121 MB / 1.089 GB, free: 5.746 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003693/0.9602, allocations: 1.816 MB / 1.09 GB, free: 3.891 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005954/0.9662, allocations: 2.24 MB / 1.093 GB, free: 1.641 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004509/0.9708, allocations: 1.913 MB / 1.095 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0008625/0.9717, allocations: 88 kB / 1.095 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004403/0.9761, allocations: 1.154 MB / 1.096 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0008502/0.977, allocations: 497.7 kB / 1.096 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001518/0.9785, allocations: 0.5667 MB / 1.097 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.00533/0.9838, allocations: 3.277 MB / 1.1 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 1.15e-05/0.9839, allocations: 4 kB / 1.1 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of FrontEnd: time 4.629e-06/0.9839, allocations: 0 / 1.1 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0001357/0.984, allocations: 3.938 kB / 1.1 GB, free: 10.12 MB / 0.8575 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.006281/0.9903, allocations: 2.709 MB / 1.103 GB, free: 7.348 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/0.9904, allocations: 12.03 kB / 1.103 GB, free: 7.336 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008816/0.9913, allocations: 320.2 kB / 1.103 GB, free: 7.02 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00438/0.9957, allocations: 2.071 MB / 1.105 GB, free: 4.879 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001143/0.9958, allocations: 127 kB / 1.105 GB, free: 4.754 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002415/0.9961, allocations: 171.9 kB / 1.105 GB, free: 4.586 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003063/0.9991, allocations: 1.604 MB / 1.107 GB, free: 2.918 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.451e-05/0.9992, allocations: 4 kB / 1.107 GB, free: 2.914 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000131/0.9993, allocations: 63.95 kB / 1.107 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.411e-05/0.9994, allocations: 44 kB / 1.107 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002172/1.002, allocations: 1.147 MB / 1.108 GB, free: 1.656 MB / 0.8575 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.01216/1.014, allocations: 7.905 MB / 1.116 GB, free: 9.242 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008584/1.015, allocations: 483 kB / 1.116 GB, free: 8.762 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005269/1.015, allocations: 327 kB / 1.117 GB, free: 8.441 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007631/1.016, allocations: 0.7524 MB / 1.117 GB, free: 7.523 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.407e-05/1.016, allocations: 51.05 kB / 1.117 GB, free: 7.465 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=60): time 2.975e-06/1.016, allocations: 0 / 1.117 GB, free: 7.465 MB / 0.8731 GB Notification: Performance of matching and sorting (n=60): time 0.002627/1.019, allocations: 1.004 MB / 1.118 GB, free: 6.453 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.057e-05/1.019, allocations: 59.95 kB / 1.118 GB, free: 6.383 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003327/1.022, allocations: 2.292 MB / 1.121 GB, free: 4.078 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.0001628/1.022, allocations: 49.7 kB / 1.121 GB, free: 4.023 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.001051/1.023, allocations: 1.149 MB / 1.122 GB, free: 2.863 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002637/1.024, allocations: 209 kB / 1.122 GB, free: 2.656 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.314e-05/1.024, allocations: 28 kB / 1.122 GB, free: 2.629 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001592/1.024, allocations: 349.9 kB / 1.122 GB, free: 2.281 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006876/1.024, allocations: 342.5 kB / 1.123 GB, free: 1.945 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009961/1.025, allocations: 0.7346 MB / 1.123 GB, free: 1.051 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008235/1.026, allocations: 474.7 kB / 1.124 GB, free: 0.5898 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.652e-06/1.026, allocations: 0 / 1.124 GB, free: 0.5898 MB / 0.8731 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002302/1.029, allocations: 1.268 MB / 1.125 GB, free: 15.31 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002516/1.029, allocations: 347 kB / 1.125 GB, free: 14.86 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.6e-05/1.029, allocations: 11.98 kB / 1.125 GB, free: 14.84 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.439e-05/1.029, allocations: 12 kB / 1.125 GB, free: 14.83 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009814/1.03, allocations: 255.6 kB / 1.126 GB, free: 14.58 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.343e-05/1.03, allocations: 20 kB / 1.126 GB, free: 14.56 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002051/1.032, allocations: 254 kB / 1.126 GB, free: 14.31 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/1.032, allocations: 55.98 kB / 1.126 GB, free: 14.26 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.39e-05/1.032, allocations: 4 kB / 1.126 GB, free: 14.25 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001782/1.034, allocations: 1.027 MB / 1.127 GB, free: 13.23 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/1.034, allocations: 12.03 kB / 1.127 GB, free: 13.22 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/1.034, allocations: 16 kB / 1.127 GB, free: 13.2 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008798/1.035, allocations: 247.6 kB / 1.127 GB, free: 12.96 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.782e-05/1.035, allocations: 15.94 kB / 1.127 GB, free: 12.95 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001677/1.037, allocations: 226.6 kB / 1.127 GB, free: 12.72 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.387e-05/1.037, allocations: 55.92 kB / 1.128 GB, free: 12.67 MB / 0.8887 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001054/1.038, allocations: 0.5787 MB / 1.128 GB, free: 12.08 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003966/1.038, allocations: 233.1 kB / 1.128 GB, free: 11.85 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001648/1.04, allocations: 0.9127 MB / 1.129 GB, free: 10.92 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.587e-05/1.04, allocations: 4 kB / 1.129 GB, free: 10.92 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/1.04, allocations: 3.938 kB / 1.129 GB, free: 10.91 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009904/1.041, allocations: 0.6853 MB / 1.13 GB, free: 10.2 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004041/1.045, allocations: 2.582 MB / 1.132 GB, free: 7.543 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/1.045, allocations: 4 kB / 1.132 GB, free: 7.539 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005622/1.046, allocations: 135.9 kB / 1.133 GB, free: 7.406 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/1.046, allocations: 4 kB / 1.133 GB, free: 7.402 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.418e-05/1.046, allocations: 16 kB / 1.133 GB, free: 7.387 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.082e-06/1.046, allocations: 4 kB / 1.133 GB, free: 7.383 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/1.046, allocations: 3.953 kB / 1.133 GB, free: 7.379 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002024/1.048, allocations: 1.318 MB / 1.134 GB, free: 6.031 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008326/1.048, allocations: 457.8 kB / 1.134 GB, free: 5.562 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002497/1.049, allocations: 19.92 kB / 1.134 GB, free: 5.543 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/1.05, allocations: 111.8 kB / 1.134 GB, free: 5.434 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/1.05, allocations: 52.44 kB / 1.134 GB, free: 5.383 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.557e-05/1.05, allocations: 31.97 kB / 1.135 GB, free: 5.352 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.002279/1.052, allocations: 1.53 MB / 1.136 GB, free: 3.816 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.9e-07/1.052, allocations: 0 / 1.136 GB, free: 3.816 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.00275/1.055, allocations: 1.103 MB / 1.137 GB, free: 2.711 MB / 0.8887 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001528/1.057, allocations: 0.7061 MB / 1.138 GB, free: 2.137 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002586/1.059, allocations: 1.35 MB / 1.139 GB, free: 0.7891 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/1.059, allocations: 4 kB / 1.139 GB, free: 0.7852 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0005581/1.06, allocations: 328.3 kB / 1.139 GB, free: 480 kB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0066/1.066, allocations: 1.389 MB / 1.141 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008087/1.074, allocations: 4.42 MB / 1.145 GB, free: 10.64 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001294/1.076, allocations: 1.598 MB / 1.147 GB, free: 9.012 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.002511/1.078, allocations: 498.8 kB / 1.147 GB, free: 8.52 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004539/1.079, allocations: 171.4 kB / 1.147 GB, free: 8.352 MB / 0.9044 GB Notification: Performance of SimCode: time 1.373e-06/1.079, allocations: 0 / 1.147 GB, free: 8.352 MB / 0.9044 GB Notification: Performance of Templates: time 0.08164/1.16, allocations: 43.78 MB / 1.19 GB, free: 13.11 MB / 0.9512 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