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.00152/0.00152, 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.001929/0.001929, allocations: 193 kB / 16.13 MB, free: 6.652 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.545/1.545, allocations: 222.9 MB / 239.8 MB, free: 4.523 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.419/2.419, allocations: 390.2 MB / 0.6642 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 63.91 kB / 0.8119 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8548/0.8561, allocations: 140.4 MB / 0.9489 GB, free: 9.168 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1366/0.9927, allocations: 111.9 MB / 1.058 GB, free: 1.871 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.03079/1.024, allocations: 20.32 MB / 1.078 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006186/1.03, allocations: 99.38 kB / 1.078 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.004729/1.035, allocations: 1.049 MB / 1.079 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0137/1.048, allocations: 3.376 MB / 1.082 GB, free: 8.973 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.00835/1.057, allocations: 2.86 MB / 1.085 GB, free: 6.152 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.014/1.071, allocations: 9.526 MB / 1.095 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003877/1.075, allocations: 2.14 MB / 1.097 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00591/1.081, allocations: 2.395 MB / 1.099 GB, free: 7.984 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003723/1.084, allocations: 2.131 MB / 1.101 GB, free: 5.844 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0004818/1.085, allocations: 120 kB / 1.101 GB, free: 5.727 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003676/1.089, allocations: 1.47 MB / 1.103 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0006483/1.089, allocations: 0.5677 MB / 1.103 GB, free: 3.684 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001838/1.091, allocations: 1.375 MB / 1.105 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.005067/1.096, allocations: 4.248 MB / 1.109 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/1.096, allocations: 0 / 1.109 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of FrontEnd: time 8.82e-07/1.096, allocations: 4 kB / 1.109 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 4.828e-05/1.096, allocations: 0 / 1.109 GB, free: 14.04 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.005301/1.102, allocations: 3.214 MB / 1.112 GB, free: 10.75 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.066e-05/1.102, allocations: 12.03 kB / 1.112 GB, free: 10.74 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007597/1.102, allocations: 324.5 kB / 1.112 GB, free: 10.42 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003367/1.106, allocations: 2.158 MB / 1.114 GB, free: 8.191 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001003/1.106, allocations: 127 kB / 1.114 GB, free: 8.066 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002345/1.106, allocations: 168 kB / 1.115 GB, free: 7.902 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002733/1.109, allocations: 1.604 MB / 1.116 GB, free: 6.234 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.517e-05/1.109, allocations: 7.938 kB / 1.116 GB, free: 6.227 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001304/1.109, allocations: 64 kB / 1.116 GB, free: 6.164 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-05/1.109, allocations: 47.92 kB / 1.116 GB, free: 6.117 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002016/1.111, allocations: 1.147 MB / 1.117 GB, free: 4.965 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.01063/1.122, allocations: 7.877 MB / 1.125 GB, free: 12.58 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008489/1.123, allocations: 491.2 kB / 1.125 GB, free: 12.09 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000507/1.123, allocations: 326.9 kB / 1.126 GB, free: 11.77 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000729/1.124, allocations: 0.7524 MB / 1.127 GB, free: 10.86 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.191e-05/1.124, allocations: 43.12 kB / 1.127 GB, free: 10.8 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=60): time 3.046e-06/1.124, allocations: 0 / 1.127 GB, free: 10.8 MB / 0.8887 GB Notification: Performance of matching and sorting (n=60): time 0.002182/1.126, allocations: 0.988 MB / 1.128 GB, free: 9.805 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.752e-05/1.126, allocations: 59.97 kB / 1.128 GB, free: 9.734 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003124/1.129, allocations: 2.32 MB / 1.13 GB, free: 7.402 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001057/1.129, allocations: 53.7 kB / 1.13 GB, free: 7.344 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009487/1.13, allocations: 1.146 MB / 1.131 GB, free: 6.188 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002417/1.131, allocations: 216.9 kB / 1.131 GB, free: 5.973 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003797/1.131, allocations: 254.6 kB / 1.131 GB, free: 5.719 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001485/1.131, allocations: 353.9 kB / 1.132 GB, free: 5.367 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007104/1.132, allocations: 365.8 kB / 1.132 GB, free: 5.008 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009276/1.133, allocations: 0.7438 MB / 1.133 GB, free: 4.105 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001369/1.134, allocations: 0.9824 MB / 1.134 GB, free: 3.016 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/1.134, allocations: 0 / 1.134 GB, free: 3.016 MB / 0.8887 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002431/1.137, allocations: 1.295 MB / 1.135 GB, free: 1.707 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.034e-05/1.137, allocations: 8 kB / 1.135 GB, free: 1.699 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.505e-05/1.137, allocations: 8.844 kB / 1.135 GB, free: 1.691 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.871e-05/1.137, allocations: 16 kB / 1.135 GB, free: 1.676 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001014/1.138, allocations: 255.6 kB / 1.135 GB, free: 1.426 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.387e-05/1.138, allocations: 19.92 kB / 1.135 GB, free: 1.406 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001993/1.14, allocations: 250.1 kB / 1.136 GB, free: 1.16 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.121e-05/1.14, allocations: 59.98 kB / 1.136 GB, free: 1.102 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001357/1.141, allocations: 0.7641 MB / 1.136 GB, free: 344 kB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009508/1.142, allocations: 0.7349 MB / 1.137 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001409/1.144, allocations: 0.9484 MB / 1.138 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.568e-06/1.144, allocations: 7.938 kB / 1.138 GB, free: 14.36 MB / 0.9044 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002278/1.146, allocations: 1.255 MB / 1.139 GB, free: 13.1 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/1.146, allocations: 8 kB / 1.139 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/1.146, allocations: 8 kB / 1.139 GB, free: 13.08 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.717e-05/1.146, allocations: 16 kB / 1.139 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009428/1.147, allocations: 247.6 kB / 1.14 GB, free: 12.82 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.515e-05/1.147, allocations: 16 kB / 1.14 GB, free: 12.81 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002349/1.149, allocations: 199.5 kB / 1.14 GB, free: 12.61 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.75e-05/1.149, allocations: 51.98 kB / 1.14 GB, free: 12.56 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.0004772/1.15, allocations: 247.9 kB / 1.14 GB, free: 12.31 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004545/1.15, allocations: 233.1 kB / 1.14 GB, free: 12.08 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001948/1.152, allocations: 0.8895 MB / 1.141 GB, free: 11.19 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.385e-05/1.152, allocations: 8 kB / 1.141 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/1.152, allocations: 0 / 1.141 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009947/1.153, allocations: 0.6892 MB / 1.142 GB, free: 10.46 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004573/1.158, allocations: 2.574 MB / 1.144 GB, free: 7.816 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/1.158, allocations: 0 / 1.144 GB, free: 7.816 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005469/1.159, allocations: 127.9 kB / 1.145 GB, free: 7.691 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.616e-06/1.159, allocations: 8.094 kB / 1.145 GB, free: 7.684 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.584e-05/1.159, allocations: 12 kB / 1.145 GB, free: 7.672 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.145e-06/1.159, allocations: 4 kB / 1.145 GB, free: 7.668 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/1.159, allocations: 3.938 kB / 1.145 GB, free: 7.664 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00208/1.161, allocations: 1.321 MB / 1.146 GB, free: 6.312 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007811/1.162, allocations: 413.9 kB / 1.146 GB, free: 5.887 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002379/1.162, allocations: 12 kB / 1.146 GB, free: 5.875 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001169/1.163, allocations: 115.7 kB / 1.146 GB, free: 5.762 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/1.163, allocations: 52.44 kB / 1.146 GB, free: 5.707 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.628e-05/1.163, allocations: 27.98 kB / 1.146 GB, free: 5.68 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.002299/1.165, allocations: 1.554 MB / 1.148 GB, free: 4.121 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.653e-06/1.165, allocations: 4 kB / 1.148 GB, free: 4.117 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.002875/1.168, allocations: 1.111 MB / 1.149 GB, free: 3.004 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.001726/1.17, allocations: 0.7327 MB / 1.15 GB, free: 2.406 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.002564/1.173, allocations: 1.35 MB / 1.151 GB, free: 1.059 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/1.173, allocations: 0 / 1.151 GB, free: 1.059 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0005385/1.173, allocations: 332.3 kB / 1.151 GB, free: 0.7344 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006428/1.18, allocations: 1.381 MB / 1.153 GB, free: 15.38 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006696/1.186, allocations: 4.538 MB / 1.157 GB, free: 10.8 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001212/1.188, allocations: 1.59 MB / 1.159 GB, free: 9.172 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.002334/1.19, allocations: 0.4943 MB / 1.159 GB, free: 8.676 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004141/1.19, allocations: 175.4 kB / 1.159 GB, free: 8.504 MB / 0.92 GB Notification: Performance of SimCode: time 9.72e-07/1.19, allocations: 0 / 1.159 GB, free: 8.504 MB / 0.92 GB Notification: Performance of Templates: time 0.07652/1.267, allocations: 45.24 MB / 1.204 GB, free: 11.81 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