Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.001296/0.001296, allocations: 113.7 kB / 16.37 MB, free: 6.004 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.001478/0.001478, allocations: 196 kB / 17.31 MB, free: 5.613 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.428/1.428, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.56/2.56, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001492/0.001492, allocations: 63.78 kB / 0.8773 GB, free: 10.97 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3336/0.3351, allocations: 153 MB / 1.027 GB, free: 2.039 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.6802/1.015, allocations: 112.7 MB / 1.137 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.03385/1.049, allocations: 20.23 MB / 1.157 GB, free: 12.96 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00474/1.054, allocations: 109.3 kB / 1.157 GB, free: 12.91 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.003885/1.058, allocations: 1.276 MB / 1.158 GB, free: 12.12 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.01135/1.069, allocations: 3.688 MB / 1.161 GB, free: 9.941 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.008356/1.078, allocations: 3.136 MB / 1.165 GB, free: 8.035 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.01163/1.089, allocations: 7.203 MB / 1.172 GB, free: 3.797 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00472/1.094, allocations: 2.576 MB / 1.174 GB, free: 2.137 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008131/1.102, allocations: 2.814 MB / 1.177 GB, free: 452 kB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004555/1.107, allocations: 2.124 MB / 1.179 GB, free: 15.15 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0006332/1.107, allocations: 254.4 kB / 1.179 GB, free: 15.15 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004231/1.112, allocations: 1.648 MB / 1.181 GB, free: 14.34 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0007389/1.112, allocations: 0.6983 MB / 1.181 GB, free: 13.79 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.002149/1.115, allocations: 1.509 MB / 1.183 GB, free: 12.76 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.005368/1.12, allocations: 4.392 MB / 1.187 GB, free: 9.707 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/1.12, allocations: 0 / 1.187 GB, free: 9.707 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.906e-06/1.12, allocations: 0 / 1.187 GB, free: 9.707 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.083e-05/1.12, allocations: 7.875 kB / 1.187 GB, free: 9.699 MB / 0.8887 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.005093/1.125, allocations: 3.226 MB / 1.19 GB, free: 7.324 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/1.125, allocations: 7.5 kB / 1.19 GB, free: 7.324 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007283/1.126, allocations: 323.3 kB / 1.191 GB, free: 7.164 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003611/1.13, allocations: 2.209 MB / 1.193 GB, free: 5.508 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.603e-05/1.13, allocations: 128.1 kB / 1.193 GB, free: 5.449 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002044/1.13, allocations: 163.6 kB / 1.193 GB, free: 5.398 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002441/1.132, allocations: 1.612 MB / 1.195 GB, free: 4.395 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.118e-05/1.132, allocations: 0 / 1.195 GB, free: 4.395 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001182/1.133, allocations: 67.59 kB / 1.195 GB, free: 4.344 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.609e-05/1.133, allocations: 37.38 kB / 1.195 GB, free: 4.344 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001871/1.134, allocations: 1.155 MB / 1.196 GB, free: 3.559 MB / 0.8887 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.01228/1.147, allocations: 7.904 MB / 1.204 GB, free: 11.14 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008152/1.148, allocations: 478.3 kB / 1.204 GB, free: 10.67 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004924/1.148, allocations: 335.4 kB / 1.204 GB, free: 10.34 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006254/1.149, allocations: 0.7524 MB / 1.205 GB, free: 9.422 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.653e-05/1.149, allocations: 39.12 kB / 1.205 GB, free: 9.375 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=60): time 2.565e-06/1.149, allocations: 4 kB / 1.205 GB, free: 9.371 MB / 0.9044 GB Notification: Performance of matching and sorting (n=60): time 0.002256/1.151, allocations: 0.9919 MB / 1.206 GB, free: 8.375 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.379e-05/1.151, allocations: 59.97 kB / 1.206 GB, free: 8.301 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003337/1.154, allocations: 2.332 MB / 1.208 GB, free: 5.957 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0002141/1.155, allocations: 49.7 kB / 1.209 GB, free: 5.902 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.001055/1.156, allocations: 1.149 MB / 1.21 GB, free: 4.742 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002564/1.156, allocations: 208.9 kB / 1.21 GB, free: 4.535 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003932/1.156, allocations: 258.7 kB / 1.21 GB, free: 4.277 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000159/1.157, allocations: 349.9 kB / 1.21 GB, free: 3.93 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006789/1.157, allocations: 357.9 kB / 1.211 GB, free: 3.574 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009772/1.158, allocations: 0.7502 MB / 1.211 GB, free: 2.668 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00136/1.16, allocations: 0.9785 MB / 1.212 GB, free: 1.582 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.555e-06/1.16, allocations: 4 kB / 1.212 GB, free: 1.578 MB / 0.9044 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002426/1.162, allocations: 1.299 MB / 1.214 GB, free: 268 kB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.572e-05/1.162, allocations: 8 kB / 1.214 GB, free: 260 kB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.679e-05/1.162, allocations: 8 kB / 1.214 GB, free: 252 kB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.935e-05/1.162, allocations: 12 kB / 1.214 GB, free: 240 kB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001012/1.163, allocations: 251.7 kB / 1.214 GB, free: 15.98 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.275e-05/1.163, allocations: 19.88 kB / 1.214 GB, free: 15.97 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001605/1.165, allocations: 170.8 kB / 1.214 GB, free: 15.8 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.455e-05/1.165, allocations: 55.98 kB / 1.214 GB, free: 15.75 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001337/1.166, allocations: 0.7602 MB / 1.215 GB, free: 14.98 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008879/1.167, allocations: 0.7426 MB / 1.216 GB, free: 14.08 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001263/1.168, allocations: 0.9524 MB / 1.217 GB, free: 13.01 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.006e-05/1.168, allocations: 7.938 kB / 1.217 GB, free: 13 MB / 0.92 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002421/1.171, allocations: 1.25 MB / 1.218 GB, free: 11.74 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/1.171, allocations: 15.94 kB / 1.218 GB, free: 11.72 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/1.171, allocations: 8 kB / 1.218 GB, free: 11.71 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/1.171, allocations: 12.72 kB / 1.218 GB, free: 11.7 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008814/1.172, allocations: 247.6 kB / 1.218 GB, free: 11.46 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.582e-05/1.172, allocations: 23.94 kB / 1.218 GB, free: 11.44 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001682/1.174, allocations: 115.2 kB / 1.218 GB, free: 11.32 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.664e-05/1.174, allocations: 51.98 kB / 1.218 GB, free: 11.27 MB / 0.92 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.0003412/1.174, allocations: 256.6 kB / 1.219 GB, free: 11.02 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007512/1.175, allocations: 244.9 kB / 1.219 GB, free: 10.77 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002136/1.177, allocations: 0.8857 MB / 1.22 GB, free: 9.879 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-05/1.177, allocations: 11.98 kB / 1.22 GB, free: 9.867 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/1.177, allocations: 4 kB / 1.22 GB, free: 9.863 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001116/1.178, allocations: 0.6814 MB / 1.22 GB, free: 9.156 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005291/1.183, allocations: 2.582 MB / 1.223 GB, free: 6.496 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.542e-06/1.183, allocations: 0 / 1.223 GB, free: 6.496 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005528/1.184, allocations: 128 kB / 1.223 GB, free: 6.371 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.187e-05/1.184, allocations: 4 kB / 1.223 GB, free: 6.367 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.449e-05/1.184, allocations: 20 kB / 1.223 GB, free: 6.348 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.019e-05/1.184, allocations: 3.938 kB / 1.223 GB, free: 6.344 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/1.184, allocations: 4 kB / 1.223 GB, free: 6.34 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002136/1.186, allocations: 1.309 MB / 1.224 GB, free: 5 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009868/1.187, allocations: 418 kB / 1.225 GB, free: 4.57 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005495/1.188, allocations: 12 kB / 1.225 GB, free: 4.559 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001184/1.189, allocations: 51.84 kB / 1.225 GB, free: 4.508 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.744e-05/1.189, allocations: 52.39 kB / 1.225 GB, free: 4.457 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.262e-05/1.189, allocations: 31.97 kB / 1.225 GB, free: 4.426 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.003106/1.192, allocations: 1.569 MB / 1.226 GB, free: 2.852 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.403e-06/1.192, allocations: 0 / 1.226 GB, free: 2.852 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.004298/1.197, allocations: 1.107 MB / 1.227 GB, free: 1.742 MB / 0.92 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.001783/1.198, allocations: 0.7488 MB / 1.228 GB, free: 1.125 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.002532/1.201, allocations: 1.362 MB / 1.229 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/1.201, allocations: 0 / 1.229 GB, free: 15.77 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0005235/1.201, allocations: 332.3 kB / 1.23 GB, free: 15.45 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005653/1.207, allocations: 1.389 MB / 1.231 GB, free: 14.11 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006474/1.214, allocations: 3.668 MB / 1.235 GB, free: 10.39 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001548/1.215, allocations: 1.597 MB / 1.236 GB, free: 8.766 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.002238/1.217, allocations: 0.4888 MB / 1.237 GB, free: 8.273 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005336/1.218, allocations: 171.4 kB / 1.237 GB, free: 8.105 MB / 0.9356 GB Notification: Performance of SimCode: time 1.282e-06/1.218, allocations: 0 / 1.237 GB, free: 8.105 MB / 0.9356 GB Notification: Performance of Templates: time 0.07361/1.292, allocations: 44.43 MB / 1.28 GB, free: 12.25 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches