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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001717/0.001717, allocations: 110.4 kB / 16.42 MB, free: 6.508 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.001819/0.001819, allocations: 185.5 kB / 17.35 MB, free: 5.738 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.417/1.417, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.578/2.578, allocations: 461.9 MB / 0.7354 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001592/0.001593, allocations: 71.88 kB / 1.055 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9565/0.9581, allocations: 157.4 MB / 1.208 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.113/1.071, allocations: 112.6 MB / 1.318 GB, free: 12.61 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.03844/1.11, allocations: 20.25 MB / 1.338 GB, free: 8.305 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.008439/1.118, allocations: 103.4 kB / 1.338 GB, free: 8.203 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.005706/1.124, allocations: 1.304 MB / 1.34 GB, free: 6.891 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.01621/1.14, allocations: 3.876 MB / 1.343 GB, free: 3.004 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.01203/1.152, allocations: 3.126 MB / 1.346 GB, free: 15.91 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.01427/1.167, allocations: 7.228 MB / 1.353 GB, free: 8.66 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006/1.173, allocations: 2.576 MB / 1.356 GB, free: 6.027 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007963/1.181, allocations: 2.895 MB / 1.359 GB, free: 3.129 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004581/1.185, allocations: 2.127 MB / 1.361 GB, free: 0.9922 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 0.001116/1.186, allocations: 256 kB / 1.361 GB, free: 0.7422 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004793/1.191, allocations: 1.654 MB / 1.363 GB, free: 15.09 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 0.001262/1.192, allocations: 0.6851 MB / 1.363 GB, free: 14.4 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 0.003154/1.196, allocations: 1.52 MB / 1.365 GB, free: 12.87 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.007824/1.203, allocations: 4.387 MB / 1.369 GB, free: 8.473 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 6.281e-06/1.204, allocations: 3.938 kB / 1.369 GB, free: 8.469 MB / 1.092 GB Notification: Performance of FrontEnd: time 2.245e-06/1.204, allocations: 0 / 1.369 GB, free: 8.469 MB / 1.092 GB Notification: Performance of Transformations before backend: time 0.0001667/1.204, allocations: 0 / 1.369 GB, free: 8.469 MB / 1.092 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.007551/1.211, allocations: 3.231 MB / 1.372 GB, free: 5.172 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/1.211, allocations: 8.031 kB / 1.372 GB, free: 5.164 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001189/1.213, allocations: 328.5 kB / 1.373 GB, free: 4.84 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004903/1.217, allocations: 2.198 MB / 1.375 GB, free: 2.57 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001109/1.218, allocations: 127 kB / 1.375 GB, free: 2.445 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00041/1.218, allocations: 164 kB / 1.375 GB, free: 2.285 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003452/1.221, allocations: 1.608 MB / 1.377 GB, free: 0.6133 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.376e-05/1.222, allocations: 3.938 kB / 1.377 GB, free: 0.6094 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002052/1.222, allocations: 68 kB / 1.377 GB, free: 0.543 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.028e-05/1.222, allocations: 47.94 kB / 1.377 GB, free: 0.4961 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002323/1.224, allocations: 1.143 MB / 1.378 GB, free: 15.35 MB / 1.107 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.236, allocations: 7.908 MB / 1.386 GB, free: 6.926 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008584/1.237, allocations: 482.3 kB / 1.386 GB, free: 6.445 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005363/1.238, allocations: 319 kB / 1.386 GB, free: 6.129 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006611/1.238, allocations: 0.7562 MB / 1.387 GB, free: 5.207 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.798e-05/1.238, allocations: 43.12 kB / 1.387 GB, free: 5.156 MB / 1.107 GB Notification: Performance of pre-optimization done (n=60): time 5.07e-06/1.238, allocations: 7.984 kB / 1.387 GB, free: 5.148 MB / 1.107 GB Notification: Performance of matching and sorting (n=60): time 0.002316/1.241, allocations: 0.9842 MB / 1.388 GB, free: 4.156 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.609e-05/1.241, allocations: 63.91 kB / 1.388 GB, free: 4.078 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004027/1.245, allocations: 2.339 MB / 1.39 GB, free: 1.727 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 0.00016/1.245, allocations: 45.7 kB / 1.391 GB, free: 1.676 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.001118/1.246, allocations: 1.153 MB / 1.392 GB, free: 0.5117 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002448/1.246, allocations: 216.9 kB / 1.392 GB, free: 304 kB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004339/1.247, allocations: 262.6 kB / 1.392 GB, free: 32 kB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001568/1.247, allocations: 345.9 kB / 1.392 GB, free: 15.69 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006907/1.248, allocations: 357.9 kB / 1.393 GB, free: 15.34 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/1.249, allocations: 0.7463 MB / 1.394 GB, free: 14.43 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001534/1.25, allocations: 0.9824 MB / 1.394 GB, free: 13.34 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.848e-06/1.25, allocations: 4 kB / 1.394 GB, free: 13.34 MB / 1.123 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002728/1.253, allocations: 1.291 MB / 1.396 GB, free: 12.03 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/1.253, allocations: 13.97 kB / 1.396 GB, free: 12.02 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.029e-05/1.253, allocations: 12 kB / 1.396 GB, free: 12.01 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.383e-05/1.253, allocations: 12 kB / 1.396 GB, free: 12 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/1.254, allocations: 255.6 kB / 1.396 GB, free: 11.75 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.286e-05/1.254, allocations: 20.34 kB / 1.396 GB, free: 11.73 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001905/1.256, allocations: 170.3 kB / 1.396 GB, free: 11.56 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/1.256, allocations: 51.98 kB / 1.396 GB, free: 11.51 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001544/1.258, allocations: 0.7563 MB / 1.397 GB, free: 10.75 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009998/1.259, allocations: 0.7349 MB / 1.398 GB, free: 9.855 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001426/1.26, allocations: 0.9487 MB / 1.399 GB, free: 8.789 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.153e-05/1.26, allocations: 7.984 kB / 1.399 GB, free: 8.781 MB / 1.123 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002565/1.263, allocations: 1.261 MB / 1.4 GB, free: 7.508 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/1.263, allocations: 15.98 kB / 1.4 GB, free: 7.492 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/1.263, allocations: 8 kB / 1.4 GB, free: 7.484 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/1.263, allocations: 12.75 kB / 1.4 GB, free: 7.473 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000916/1.264, allocations: 251.6 kB / 1.4 GB, free: 7.227 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.661e-05/1.264, allocations: 19.94 kB / 1.4 GB, free: 7.207 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001828/1.266, allocations: 123.2 kB / 1.4 GB, free: 7.086 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001121/1.266, allocations: 51.98 kB / 1.4 GB, free: 7.035 MB / 1.123 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.0004255/1.266, allocations: 247.8 kB / 1.401 GB, free: 6.785 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008909/1.267, allocations: 244.9 kB / 1.401 GB, free: 6.543 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002195/1.269, allocations: 0.8848 MB / 1.402 GB, free: 5.652 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00112/1.271, allocations: 0.6891 MB / 1.402 GB, free: 4.934 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/1.271, allocations: 0 / 1.402 GB, free: 4.934 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00122/1.272, allocations: 417.9 kB / 1.403 GB, free: 4.504 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005843/1.272, allocations: 8 kB / 1.403 GB, free: 4.496 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001359/1.274, allocations: 47.92 kB / 1.403 GB, free: 4.449 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001062/1.274, allocations: 40.5 kB / 1.403 GB, free: 4.41 MB / 1.123 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001564/1.275, allocations: 0.7837 MB / 1.404 GB, free: 3.617 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002145/1.278, allocations: 1.395 MB / 1.405 GB, free: 2.203 MB / 1.123 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005099/1.278, allocations: 312.4 kB / 1.405 GB, free: 1.898 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.002849/1.281, allocations: 1.569 MB / 1.407 GB, free: 332 kB / 1.123 GB Notification: Performance of Backend: time 3.31e-07/1.281, allocations: 0 / 1.407 GB, free: 332 kB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.005828/1.287, allocations: 2.036 MB / 1.409 GB, free: 14.49 MB / 1.139 GB Notification: Performance of SimCode: time 0.01148/1.298, allocations: 5.171 MB / 1.414 GB, free: 9.305 MB / 1.139 GB Notification: Performance of Templates: time 0.08184/1.38, allocations: 48.86 MB / 1.462 GB, free: 8.977 MB / 1.186 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/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