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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001661/0.001666, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.002442/0.002442, allocations: 191.8 kB / 16.25 MB, free: 6.637 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.415/1.415, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.94/2.94, allocations: 472.6 MB / 0.7448 GB, free: 4.926 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 67.73 kB / 0.9116 GB, free: 33.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3464/0.3477, allocations: 159.9 MB / 1.068 GB, free: 10.79 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.109/0.4567, allocations: 111.6 MB / 1.177 GB, free: 10.78 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.03008/0.4868, allocations: 20.11 MB / 1.196 GB, free: 6.625 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004667/0.4916, allocations: 95.38 kB / 1.196 GB, free: 6.531 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.005273/0.4969, allocations: 1.115 MB / 1.198 GB, free: 5.41 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.01262/0.5096, allocations: 3.426 MB / 1.201 GB, free: 1.973 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.008529/0.5181, allocations: 2.866 MB / 1.204 GB, free: 15.14 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.009359/0.5275, allocations: 7.257 MB / 1.211 GB, free: 7.863 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004045/0.5316, allocations: 2.537 MB / 1.213 GB, free: 5.266 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006766/0.5383, allocations: 2.822 MB / 1.216 GB, free: 2.441 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003646/0.542, allocations: 2.194 MB / 1.218 GB, free: 244 kB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0008614/0.5429, allocations: 256 kB / 1.218 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004053/0.5469, allocations: 1.657 MB / 1.22 GB, free: 14.33 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.001108/0.5481, allocations: 0.6967 MB / 1.221 GB, free: 13.63 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.002926/0.551, allocations: 1.52 MB / 1.222 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.00708/0.5581, allocations: 4.346 MB / 1.226 GB, free: 7.742 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.5581, allocations: 3.984 kB / 1.226 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.765e-06/0.5581, allocations: 0 / 1.226 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0001862/0.5583, allocations: 0 / 1.226 GB, free: 7.738 MB / 0.9825 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.007947/0.5663, allocations: 3.222 MB / 1.23 GB, free: 4.449 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.229e-05/0.5664, allocations: 11.98 kB / 1.23 GB, free: 4.438 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001181/0.5675, allocations: 332.5 kB / 1.23 GB, free: 4.109 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004998/0.5726, allocations: 2.151 MB / 1.232 GB, free: 1.887 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001219/0.5727, allocations: 123 kB / 1.232 GB, free: 1.766 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004807/0.5732, allocations: 171.9 kB / 1.232 GB, free: 1.598 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003866/0.5771, allocations: 1.616 MB / 1.234 GB, free: 15.91 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.138e-05/0.5772, allocations: 11.92 kB / 1.234 GB, free: 15.9 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002034/0.5774, allocations: 60 kB / 1.234 GB, free: 15.84 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.447e-05/0.5774, allocations: 51.88 kB / 1.234 GB, free: 15.79 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002519/0.58, allocations: 1.147 MB / 1.235 GB, free: 14.64 MB / 0.9981 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.01263/0.5926, allocations: 7.869 MB / 1.243 GB, free: 6.266 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008434/0.5935, allocations: 486.1 kB / 1.243 GB, free: 5.781 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005211/0.594, allocations: 326.9 kB / 1.244 GB, free: 5.457 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006326/0.5947, allocations: 0.7563 MB / 1.244 GB, free: 4.535 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.475e-05/0.5947, allocations: 43.12 kB / 1.244 GB, free: 4.484 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=60): time 2.515e-06/0.5947, allocations: 0 / 1.244 GB, free: 4.484 MB / 0.9981 GB Notification: Performance of matching and sorting (n=60): time 0.002376/0.5971, allocations: 0.9843 MB / 1.245 GB, free: 3.492 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.317e-05/0.5972, allocations: 59.91 kB / 1.245 GB, free: 3.422 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004164/0.6014, allocations: 2.324 MB / 1.248 GB, free: 1.086 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002319/0.6016, allocations: 49.64 kB / 1.248 GB, free: 1.031 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.6401/1.242, allocations: 1.146 MB / 1.249 GB, free: 177.6 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005468/1.242, allocations: 214.2 kB / 1.249 GB, free: 177.6 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001123/1.243, allocations: 255 kB / 1.249 GB, free: 177.5 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001347/1.244, allocations: 349.4 kB / 1.25 GB, free: 177.2 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001301/1.245, allocations: 356 kB / 1.25 GB, free: 177.2 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001791/1.247, allocations: 0.7549 MB / 1.251 GB, free: 176.8 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002743/1.25, allocations: 0.9781 MB / 1.252 GB, free: 176.5 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.89e-05/1.25, allocations: 2 kB / 1.252 GB, free: 176.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.004967/1.255, allocations: 1.295 MB / 1.253 GB, free: 176.4 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.283e-05/1.255, allocations: 8.938 kB / 1.253 GB, free: 176.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.234e-05/1.255, allocations: 9.125 kB / 1.253 GB, free: 176.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.438e-05/1.255, allocations: 17.34 kB / 1.253 GB, free: 176.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00204/1.257, allocations: 251.3 kB / 1.253 GB, free: 176.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.746e-05/1.257, allocations: 20.06 kB / 1.253 GB, free: 176.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003734/1.261, allocations: 249 kB / 1.253 GB, free: 176.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002592/1.261, allocations: 51.08 kB / 1.253 GB, free: 176.4 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002687/1.264, allocations: 0.7597 MB / 1.254 GB, free: 176.3 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001774/1.265, allocations: 0.739 MB / 1.255 GB, free: 175.8 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002538/1.268, allocations: 0.9488 MB / 1.256 GB, free: 175.5 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.088e-05/1.268, allocations: 2.938 kB / 1.256 GB, free: 175.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.00432/1.272, allocations: 1.25 MB / 1.257 GB, free: 175.3 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.924e-05/1.272, allocations: 10.5 kB / 1.257 GB, free: 175.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.152e-05/1.272, allocations: 13.75 kB / 1.257 GB, free: 175.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.791e-05/1.273, allocations: 13.31 kB / 1.257 GB, free: 175.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001677/1.274, allocations: 253.2 kB / 1.257 GB, free: 175.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.557e-05/1.274, allocations: 20.44 kB / 1.257 GB, free: 175.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004114/1.278, allocations: 184 kB / 1.258 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002377/1.279, allocations: 51.62 kB / 1.258 GB, free: 175.2 MB / 0.9981 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.0007315/1.279, allocations: 251.9 kB / 1.258 GB, free: 175 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001353/1.281, allocations: 236.4 kB / 1.258 GB, free: 174.9 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003418/1.284, allocations: 0.8873 MB / 1.259 GB, free: 174.8 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.945e-05/1.284, allocations: 7.875 kB / 1.259 GB, free: 174.8 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/1.284, allocations: 3.938 kB / 1.259 GB, free: 174.8 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00165/1.286, allocations: 0.6814 MB / 1.26 GB, free: 174.6 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008187/1.294, allocations: 2.565 MB / 1.262 GB, free: 173.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-05/1.294, allocations: 3.938 kB / 1.262 GB, free: 173.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/1.295, allocations: 125.1 kB / 1.262 GB, free: 173.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.752e-05/1.295, allocations: 3.094 kB / 1.262 GB, free: 173.4 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.902e-05/1.295, allocations: 17.17 kB / 1.262 GB, free: 173.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.517e-05/1.295, allocations: 8.391 kB / 1.262 GB, free: 173.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.055e-06/1.295, allocations: 0.5625 kB / 1.262 GB, free: 173.4 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00393/1.299, allocations: 1.319 MB / 1.264 GB, free: 172.7 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00192/1.301, allocations: 421.4 kB / 1.264 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007819/1.302, allocations: 13.78 kB / 1.264 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002555/1.305, allocations: 116.6 kB / 1.264 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001847/1.305, allocations: 44.73 kB / 1.264 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001364/1.305, allocations: 31.69 kB / 1.264 GB, free: 172.4 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.003884/1.309, allocations: 1.551 MB / 1.266 GB, free: 171.8 MB / 0.9981 GB Notification: Performance of sort global known variables: time 7.72e-07/1.309, allocations: 3.531 kB / 1.266 GB, free: 171.8 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.004979/1.314, allocations: 1.1 MB / 1.267 GB, free: 171.6 MB / 0.9981 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.001976/1.316, allocations: 0.7283 MB / 1.267 GB, free: 171.4 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003966/1.32, allocations: 1.446 MB / 1.269 GB, free: 171 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.967e-06/1.32, allocations: 1.094 kB / 1.269 GB, free: 171 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007177/1.321, allocations: 326.5 kB / 1.269 GB, free: 170.9 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006844/1.328, allocations: 1.391 MB / 1.271 GB, free: 170.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007057/1.335, allocations: 4.539 MB / 1.275 GB, free: 167.8 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001471/1.336, allocations: 1.588 MB / 1.277 GB, free: 167 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.00329/1.34, allocations: 0.4922 MB / 1.277 GB, free: 166.9 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004952/1.34, allocations: 171.5 kB / 1.277 GB, free: 166.9 MB / 0.9981 GB Notification: Performance of SimCode: time 1.613e-06/1.34, allocations: 0 / 1.277 GB, free: 166.9 MB / 0.9981 GB Notification: Performance of Templates: time 0.07498/1.415, allocations: 46.13 MB / 1.322 GB, free: 136.5 MB / 0.9981 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 -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/jenkins/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