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.007006/0.007006, allocations: 102.3 kB / 15.73 MB, free: 5.516 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.001329/0.001329, allocations: 193.5 kB / 16.67 MB, free: 5.449 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.516/1.516, allocations: 222.9 MB / 240.4 MB, free: 14.93 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.699/2.699, allocations: 472.6 MB / 0.7453 GB, free: 432 kB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 60.14 kB / 1.069 GB, free: 9.59 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9477/0.949, allocations: 159.9 MB / 1.226 GB, free: 13.52 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1156/1.065, allocations: 112.7 MB / 1.336 GB, free: 12.48 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.03249/1.097, allocations: 20.25 MB / 1.355 GB, free: 8.184 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004738/1.102, allocations: 107.4 kB / 1.355 GB, free: 8.078 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.004539/1.107, allocations: 1.281 MB / 1.357 GB, free: 6.789 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 0.01246/1.119, allocations: 3.684 MB / 1.36 GB, free: 3.09 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.008897/1.128, allocations: 3.122 MB / 1.363 GB, free: 4 kB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0109/1.139, allocations: 7.209 MB / 1.37 GB, free: 8.77 MB / 1.092 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004388/1.143, allocations: 2.584 MB / 1.373 GB, free: 6.129 MB / 1.092 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006814/1.15, allocations: 2.806 MB / 1.376 GB, free: 3.32 MB / 1.092 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004022/1.154, allocations: 2.135 MB / 1.378 GB, free: 1.176 MB / 1.092 GB Notification: Performance of NFPackage.collectConstants: time 0.000905/1.155, allocations: 256 kB / 1.378 GB, free: 0.9258 MB / 1.092 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004745/1.16, allocations: 1.65 MB / 1.38 GB, free: 15.27 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.001231/1.161, allocations: 0.6812 MB / 1.38 GB, free: 14.59 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.003089/1.164, allocations: 1.516 MB / 1.382 GB, free: 13.07 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.007892/1.172, allocations: 4.409 MB / 1.386 GB, free: 8.645 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/1.172, allocations: 0 / 1.386 GB, free: 8.645 MB / 1.107 GB Notification: Performance of FrontEnd: time 2.044e-06/1.172, allocations: 4 kB / 1.386 GB, free: 8.641 MB / 1.107 GB Notification: Performance of Transformations before backend: time 0.0001454/1.172, allocations: 0 / 1.386 GB, free: 8.641 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.006804/1.179, allocations: 3.324 MB / 1.389 GB, free: 5.246 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/1.179, allocations: 11.98 kB / 1.389 GB, free: 5.234 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009194/1.18, allocations: 342.3 kB / 1.39 GB, free: 4.898 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003722/1.184, allocations: 2.231 MB / 1.392 GB, free: 2.598 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.618e-05/1.184, allocations: 123 kB / 1.392 GB, free: 2.477 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002332/1.184, allocations: 168 kB / 1.392 GB, free: 2.312 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002631/1.187, allocations: 1.608 MB / 1.394 GB, free: 0.6406 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.571e-05/1.187, allocations: 0 / 1.394 GB, free: 0.6406 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001237/1.187, allocations: 64 kB / 1.394 GB, free: 0.5781 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.386e-05/1.187, allocations: 43.88 kB / 1.394 GB, free: 0.5352 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002034/1.189, allocations: 1.151 MB / 1.395 GB, free: 15.38 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.01204/1.201, allocations: 7.926 MB / 1.403 GB, free: 6.945 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008213/1.202, allocations: 482.3 kB / 1.403 GB, free: 6.469 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005039/1.203, allocations: 331.4 kB / 1.403 GB, free: 6.141 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007397/1.203, allocations: 0.7524 MB / 1.404 GB, free: 5.219 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/1.203, allocations: 43.11 kB / 1.404 GB, free: 5.168 MB / 1.123 GB Notification: Performance of pre-optimization done (n=60): time 2.746e-06/1.203, allocations: 3.938 kB / 1.404 GB, free: 5.164 MB / 1.123 GB Notification: Performance of matching and sorting (n=60): time 0.002229/1.206, allocations: 0.9973 MB / 1.405 GB, free: 4.164 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.004e-05/1.206, allocations: 63.97 kB / 1.405 GB, free: 4.09 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003302/1.209, allocations: 2.339 MB / 1.408 GB, free: 1.738 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 0.0001714/1.209, allocations: 49.7 kB / 1.408 GB, free: 1.684 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 0.00105/1.21, allocations: 1.163 MB / 1.409 GB, free: 0.5117 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002312/1.21, allocations: 226.1 kB / 1.409 GB, free: 296 kB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003693/1.211, allocations: 262.7 kB / 1.409 GB, free: 24 kB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001553/1.211, allocations: 346 kB / 1.41 GB, free: 15.68 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006698/1.212, allocations: 369.9 kB / 1.41 GB, free: 15.31 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001039/1.213, allocations: 0.7385 MB / 1.411 GB, free: 14.42 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001555/1.214, allocations: 0.9824 MB / 1.412 GB, free: 13.32 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.869e-06/1.214, allocations: 4 kB / 1.412 GB, free: 13.32 MB / 1.139 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002649/1.217, allocations: 1.304 MB / 1.413 GB, free: 12 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/1.217, allocations: 12.19 kB / 1.413 GB, free: 11.99 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.915e-05/1.217, allocations: 8 kB / 1.413 GB, free: 11.98 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.566e-05/1.217, allocations: 16 kB / 1.413 GB, free: 11.97 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009831/1.218, allocations: 251.6 kB / 1.413 GB, free: 11.72 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.347e-05/1.218, allocations: 19.98 kB / 1.413 GB, free: 11.7 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001694/1.22, allocations: 166.8 kB / 1.413 GB, free: 11.54 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001045/1.22, allocations: 59.92 kB / 1.413 GB, free: 11.48 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001446/1.221, allocations: 0.7611 MB / 1.414 GB, free: 10.71 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009637/1.222, allocations: 0.7271 MB / 1.415 GB, free: 9.824 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001424/1.224, allocations: 0.9602 MB / 1.416 GB, free: 8.75 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.428e-06/1.224, allocations: 0 / 1.416 GB, free: 8.75 MB / 1.139 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.00255/1.226, allocations: 1.279 MB / 1.417 GB, free: 7.465 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/1.226, allocations: 8 kB / 1.417 GB, free: 7.457 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.445e-05/1.226, allocations: 12 kB / 1.417 GB, free: 7.445 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/1.226, allocations: 12 kB / 1.417 GB, free: 7.434 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009321/1.227, allocations: 247.6 kB / 1.417 GB, free: 7.191 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.576e-05/1.227, allocations: 19.92 kB / 1.417 GB, free: 7.172 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001823/1.229, allocations: 127.5 kB / 1.417 GB, free: 7.047 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000124/1.229, allocations: 51.98 kB / 1.417 GB, free: 6.996 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.0003639/1.23, allocations: 247.9 kB / 1.418 GB, free: 6.746 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006421/1.23, allocations: 246.4 kB / 1.418 GB, free: 6.504 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00215/1.232, allocations: 0.8858 MB / 1.419 GB, free: 5.602 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.441e-05/1.233, allocations: 4 kB / 1.419 GB, free: 5.598 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/1.233, allocations: 0 / 1.419 GB, free: 5.598 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001074/1.234, allocations: 0.6853 MB / 1.419 GB, free: 4.883 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005053/1.239, allocations: 2.582 MB / 1.422 GB, free: 2.227 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/1.239, allocations: 4 kB / 1.422 GB, free: 2.223 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005557/1.239, allocations: 127.8 kB / 1.422 GB, free: 2.098 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-05/1.239, allocations: 7.938 kB / 1.422 GB, free: 2.09 MB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.995e-05/1.239, allocations: 12 kB / 1.422 GB, free: 2.078 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.971e-06/1.239, allocations: 4 kB / 1.422 GB, free: 2.074 MB / 1.139 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/1.239, allocations: 8.094 kB / 1.422 GB, free: 2.066 MB / 1.139 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002394/1.242, allocations: 1.33 MB / 1.423 GB, free: 0.707 MB / 1.139 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001087/1.243, allocations: 435.2 kB / 1.424 GB, free: 268 kB / 1.139 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005812/1.243, allocations: 16 kB / 1.424 GB, free: 252 kB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001277/1.245, allocations: 39.94 kB / 1.424 GB, free: 212 kB / 1.139 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/1.245, allocations: 48.44 kB / 1.424 GB, free: 164 kB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.675e-05/1.245, allocations: 31.98 kB / 1.424 GB, free: 132 kB / 1.139 GB Notification: Performance of sorting global known variables: time 0.003084/1.248, allocations: 1.573 MB / 1.425 GB, free: 14.55 MB / 1.154 GB Notification: Performance of sort global known variables: time 1.5e-07/1.248, allocations: 0 / 1.425 GB, free: 14.55 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.003624/1.252, allocations: 1.115 MB / 1.427 GB, free: 13.43 MB / 1.154 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.001931/1.254, allocations: 0.756 MB / 1.427 GB, free: 12.81 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.002908/1.257, allocations: 1.359 MB / 1.429 GB, free: 11.45 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/1.257, allocations: 4.25 kB / 1.429 GB, free: 11.45 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.0006022/1.257, allocations: 323 kB / 1.429 GB, free: 11.13 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007012/1.264, allocations: 1.393 MB / 1.43 GB, free: 9.789 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008222/1.272, allocations: 3.754 MB / 1.434 GB, free: 5.984 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001825/1.274, allocations: 1.59 MB / 1.436 GB, free: 4.363 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 0.002775/1.277, allocations: 0.4937 MB / 1.436 GB, free: 3.867 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006482/1.278, allocations: 171.4 kB / 1.436 GB, free: 3.699 MB / 1.154 GB Notification: Performance of SimCode: time 7.12e-07/1.278, allocations: 0 / 1.436 GB, free: 3.699 MB / 1.154 GB Notification: Performance of Templates: time 0.07706/1.355, allocations: 44.77 MB / 1.48 GB, free: 7.492 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/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