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.001748/0.001748, allocations: 114.9 kB / 16.42 MB, free: 6.473 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.001827/0.001828, allocations: 187.9 kB / 17.35 MB, free: 5.711 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.399/1.399, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.757/2.757, allocations: 472.7 MB / 0.746 GB, free: 396 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001389/0.001389, allocations: 59.91 kB / 1.07 GB, free: 9.543 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8306/0.832, allocations: 159.9 MB / 1.226 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1071/0.9391, allocations: 112.7 MB / 1.336 GB, free: 12.45 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.03051/0.9697, allocations: 20.25 MB / 1.356 GB, free: 8.148 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004359/0.9741, allocations: 111.3 kB / 1.356 GB, free: 8.039 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.003983/0.9781, allocations: 1.3 MB / 1.358 GB, free: 6.73 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.01079/0.989, allocations: 3.864 MB / 1.361 GB, free: 2.852 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.007869/0.9968, allocations: 3.13 MB / 1.364 GB, free: 15.75 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.01053/1.007, allocations: 7.239 MB / 1.371 GB, free: 8.496 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004302/1.012, allocations: 2.573 MB / 1.374 GB, free: 5.867 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006615/1.018, allocations: 2.89 MB / 1.377 GB, free: 2.977 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003935/1.022, allocations: 2.131 MB / 1.379 GB, free: 0.8359 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 0.0008679/1.023, allocations: 256 kB / 1.379 GB, free: 0.5859 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004392/1.028, allocations: 1.65 MB / 1.381 GB, free: 14.93 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.001143/1.029, allocations: 0.685 MB / 1.381 GB, free: 14.25 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.003182/1.032, allocations: 1.512 MB / 1.383 GB, free: 12.73 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.008231/1.04, allocations: 4.409 MB / 1.387 GB, free: 8.305 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 7.715e-06/1.04, allocations: 0 / 1.387 GB, free: 8.305 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.453e-06/1.04, allocations: 0 / 1.387 GB, free: 8.305 MB / 1.107 GB Notification: Performance of Transformations before backend: time 0.0001939/1.04, allocations: 3.938 kB / 1.387 GB, free: 8.301 MB / 1.107 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.008199/1.049, allocations: 3.324 MB / 1.39 GB, free: 4.906 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/1.049, allocations: 15.98 kB / 1.39 GB, free: 4.891 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001191/1.05, allocations: 342.3 kB / 1.391 GB, free: 4.555 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004524/1.054, allocations: 2.223 MB / 1.393 GB, free: 2.262 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001017/1.055, allocations: 123 kB / 1.393 GB, free: 2.141 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003697/1.055, allocations: 176 kB / 1.393 GB, free: 1.969 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003046/1.058, allocations: 1.608 MB / 1.395 GB, free: 304 kB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.032e-05/1.058, allocations: 0 / 1.395 GB, free: 304 kB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001469/1.058, allocations: 67.98 kB / 1.395 GB, free: 236 kB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.543e-05/1.058, allocations: 43.94 kB / 1.395 GB, free: 192 kB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002213/1.061, allocations: 1.143 MB / 1.396 GB, free: 15.04 MB / 1.123 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.01217/1.073, allocations: 7.93 MB / 1.404 GB, free: 6.602 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008654/1.074, allocations: 485.8 kB / 1.404 GB, free: 6.117 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005357/1.074, allocations: 327.5 kB / 1.405 GB, free: 5.793 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006796/1.075, allocations: 0.7524 MB / 1.405 GB, free: 4.871 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/1.075, allocations: 43.12 kB / 1.405 GB, free: 4.82 MB / 1.123 GB Notification: Performance of pre-optimization done (n=60): time 3.126e-06/1.075, allocations: 4 kB / 1.405 GB, free: 4.816 MB / 1.123 GB Notification: Performance of matching and sorting (n=60): time 0.002229/1.077, allocations: 1.001 MB / 1.406 GB, free: 3.809 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.929e-05/1.077, allocations: 55.97 kB / 1.406 GB, free: 3.742 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003907/1.081, allocations: 2.339 MB / 1.409 GB, free: 1.391 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 0.0001561/1.081, allocations: 53.7 kB / 1.409 GB, free: 1.332 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.001017/1.082, allocations: 1.167 MB / 1.41 GB, free: 160 kB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002439/1.083, allocations: 222.2 kB / 1.41 GB, free: 15.93 MB / 1.139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004143/1.083, allocations: 258.7 kB / 1.41 GB, free: 15.67 MB / 1.139 GB Notification: Performance of setup shared object (initialization): time 0.00013/1.083, allocations: 345.9 kB / 1.411 GB, free: 15.33 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006653/1.084, allocations: 357.9 kB / 1.411 GB, free: 14.98 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000989/1.085, allocations: 0.7463 MB / 1.412 GB, free: 14.07 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001437/1.086, allocations: 0.9862 MB / 1.413 GB, free: 12.98 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-06/1.086, allocations: 4 kB / 1.413 GB, free: 12.97 MB / 1.139 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002481/1.089, allocations: 1.312 MB / 1.414 GB, free: 11.65 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/1.089, allocations: 8 kB / 1.414 GB, free: 11.64 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.388e-05/1.089, allocations: 8.781 kB / 1.414 GB, free: 11.64 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.754e-05/1.089, allocations: 12 kB / 1.414 GB, free: 11.62 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009762/1.09, allocations: 255.6 kB / 1.414 GB, free: 11.38 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.658e-05/1.09, allocations: 19.92 kB / 1.414 GB, free: 11.36 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001566/1.091, allocations: 170.8 kB / 1.414 GB, free: 11.19 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.709e-05/1.092, allocations: 51.98 kB / 1.414 GB, free: 11.14 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001352/1.093, allocations: 0.7563 MB / 1.415 GB, free: 10.38 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009019/1.094, allocations: 0.7388 MB / 1.416 GB, free: 9.477 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001327/1.095, allocations: 0.9561 MB / 1.417 GB, free: 8.406 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.432e-06/1.095, allocations: 7.938 kB / 1.417 GB, free: 8.398 MB / 1.139 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.00238/1.098, allocations: 1.264 MB / 1.418 GB, free: 7.125 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/1.098, allocations: 12 kB / 1.418 GB, free: 7.113 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/1.098, allocations: 12.09 kB / 1.418 GB, free: 7.102 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/1.098, allocations: 12 kB / 1.418 GB, free: 7.09 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009028/1.099, allocations: 251.6 kB / 1.418 GB, free: 6.844 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.613e-05/1.099, allocations: 23.92 kB / 1.418 GB, free: 6.82 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001608/1.1, allocations: 123.3 kB / 1.418 GB, free: 6.699 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.995e-05/1.1, allocations: 48 kB / 1.418 GB, free: 6.652 MB / 1.139 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.0003173/1.101, allocations: 247.9 kB / 1.419 GB, free: 6.402 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005767/1.101, allocations: 254.3 kB / 1.419 GB, free: 6.152 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001867/1.103, allocations: 0.8781 MB / 1.42 GB, free: 5.262 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001009/1.104, allocations: 0.6852 MB / 1.42 GB, free: 4.543 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/1.104, allocations: 0 / 1.42 GB, free: 4.543 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000901/1.105, allocations: 435.2 kB / 1.421 GB, free: 4.098 MB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000411/1.105, allocations: 8 kB / 1.421 GB, free: 4.09 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001094/1.107, allocations: 43.95 kB / 1.421 GB, free: 4.047 MB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/1.107, allocations: 44.73 kB / 1.421 GB, free: 4.004 MB / 1.139 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001533/1.108, allocations: 0.7798 MB / 1.422 GB, free: 3.215 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002208/1.11, allocations: 1.404 MB / 1.423 GB, free: 1.797 MB / 1.139 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0004983/1.111, allocations: 312.4 kB / 1.423 GB, free: 1.488 MB / 1.139 GB Notification: Performance of sorting global known variables: time 0.002904/1.114, allocations: 1.57 MB / 1.425 GB, free: 15.91 MB / 1.154 GB Notification: Performance of Backend: time 3.71e-07/1.114, allocations: 0 / 1.425 GB, free: 15.91 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.005545/1.119, allocations: 2.053 MB / 1.427 GB, free: 14.05 MB / 1.154 GB Notification: Performance of SimCode: time 0.01025/1.13, allocations: 5.247 MB / 1.432 GB, free: 8.789 MB / 1.154 GB Notification: Performance of Templates: time 0.08076/1.21, allocations: 48.88 MB / 1.48 GB, free: 8.445 MB / 1.201 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