Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001175/0.001175, allocations: 109.9 kB / 16.41 MB, free: 6.496 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.001196/0.001196, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.3/1.3, 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 9.1.3-maint.9.1.x/package.mo): time 2.214/2.214, allocations: 390.3 MB / 0.6655 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 72.11 kB / 0.9515 GB, free: 7.641 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.007/1.008, allocations: 140.4 MB / 1.089 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.1331/1.141, allocations: 112.7 MB / 1.199 GB, free: 3.766 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.03659/1.178, allocations: 20.26 MB / 1.218 GB, free: 3.211 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006834/1.185, allocations: 110.5 kB / 1.219 GB, free: 3.168 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.005413/1.19, allocations: 1.282 MB / 1.22 GB, free: 2.074 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.01356/1.204, allocations: 3.676 MB / 1.223 GB, free: 15.14 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.009353/1.213, allocations: 3.129 MB / 1.226 GB, free: 12.76 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.01264/1.226, allocations: 7.209 MB / 1.233 GB, free: 8.52 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005733/1.232, allocations: 2.576 MB / 1.236 GB, free: 6.863 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008368/1.24, allocations: 2.891 MB / 1.239 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004745/1.245, allocations: 2.131 MB / 1.241 GB, free: 1.926 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.001162/1.246, allocations: 252 kB / 1.241 GB, free: 1.68 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005645/1.252, allocations: 1.642 MB / 1.243 GB, free: 36 kB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.001434/1.253, allocations: 0.6928 MB / 1.243 GB, free: 15.34 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.00386/1.257, allocations: 1.508 MB / 1.245 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.009419/1.267, allocations: 4.387 MB / 1.249 GB, free: 9.426 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.625e-06/1.267, allocations: 4 kB / 1.249 GB, free: 9.422 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.284e-06/1.267, allocations: 3.938 kB / 1.249 GB, free: 9.418 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0001615/1.267, allocations: 0 / 1.249 GB, free: 9.418 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.007994/1.275, allocations: 3.234 MB / 1.252 GB, free: 6.117 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.382e-05/1.275, allocations: 8.031 kB / 1.252 GB, free: 6.109 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001281/1.276, allocations: 328.5 kB / 1.253 GB, free: 5.785 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004755/1.281, allocations: 2.198 MB / 1.255 GB, free: 3.516 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.835e-05/1.281, allocations: 123 kB / 1.255 GB, free: 3.395 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003702/1.281, allocations: 168 kB / 1.255 GB, free: 3.23 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003182/1.285, allocations: 1.619 MB / 1.257 GB, free: 1.547 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.278e-05/1.285, allocations: 0 / 1.257 GB, free: 1.547 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001659/1.285, allocations: 64 kB / 1.257 GB, free: 1.484 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.764e-05/1.285, allocations: 43.94 kB / 1.257 GB, free: 1.441 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002239/1.287, allocations: 1.151 MB / 1.258 GB, free: 292 kB / 0.9825 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.01138/1.299, allocations: 7.92 MB / 1.266 GB, free: 7.855 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008064/1.299, allocations: 477.7 kB / 1.266 GB, free: 7.383 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000487/1.3, allocations: 319 kB / 1.266 GB, free: 7.07 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006486/1.301, allocations: 0.7641 MB / 1.267 GB, free: 6.141 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.898e-05/1.301, allocations: 43.12 kB / 1.267 GB, free: 6.086 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=60): time 3.056e-06/1.301, allocations: 0 / 1.267 GB, free: 6.086 MB / 0.9981 GB Notification: Performance of matching and sorting (n=60): time 0.002168/1.303, allocations: 0.988 MB / 1.268 GB, free: 5.09 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.838e-05/1.303, allocations: 59.97 kB / 1.268 GB, free: 5.02 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003709/1.307, allocations: 2.343 MB / 1.27 GB, free: 2.664 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001372/1.307, allocations: 41.7 kB / 1.271 GB, free: 2.617 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001051/1.308, allocations: 1.145 MB / 1.272 GB, free: 1.461 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002388/1.308, allocations: 217 kB / 1.272 GB, free: 1.246 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004034/1.308, allocations: 258.5 kB / 1.272 GB, free: 0.9844 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.000135/1.309, allocations: 345.9 kB / 1.272 GB, free: 0.6406 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006455/1.309, allocations: 365.9 kB / 1.273 GB, free: 288 kB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009857/1.31, allocations: 0.7463 MB / 1.273 GB, free: 15.37 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001482/1.312, allocations: 0.9863 MB / 1.274 GB, free: 14.27 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.626e-06/1.312, allocations: 3.938 kB / 1.274 GB, free: 14.27 MB / 1.014 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.002406/1.314, allocations: 1.288 MB / 1.276 GB, free: 12.97 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/1.314, allocations: 12.03 kB / 1.276 GB, free: 12.96 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.708e-05/1.314, allocations: 8 kB / 1.276 GB, free: 12.95 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.952e-05/1.314, allocations: 16 kB / 1.276 GB, free: 12.93 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009647/1.315, allocations: 255.6 kB / 1.276 GB, free: 12.68 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.352e-05/1.315, allocations: 19.94 kB / 1.276 GB, free: 12.66 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001533/1.317, allocations: 170.3 kB / 1.276 GB, free: 12.5 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/1.317, allocations: 55.98 kB / 1.276 GB, free: 12.44 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001258/1.318, allocations: 0.7563 MB / 1.277 GB, free: 11.68 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009302/1.319, allocations: 0.7387 MB / 1.278 GB, free: 10.79 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001307/1.32, allocations: 0.9445 MB / 1.279 GB, free: 9.723 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.233e-06/1.32, allocations: 4 kB / 1.279 GB, free: 9.719 MB / 1.014 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002275/1.323, allocations: 1.266 MB / 1.28 GB, free: 8.445 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/1.323, allocations: 14.5 kB / 1.28 GB, free: 8.434 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/1.323, allocations: 8 kB / 1.28 GB, free: 8.426 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/1.323, allocations: 15.98 kB / 1.28 GB, free: 8.41 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009153/1.324, allocations: 247.6 kB / 1.28 GB, free: 8.168 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.566e-05/1.324, allocations: 15.94 kB / 1.28 GB, free: 8.152 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001589/1.325, allocations: 123.6 kB / 1.28 GB, free: 8.031 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/1.325, allocations: 55.98 kB / 1.28 GB, free: 7.977 MB / 1.014 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.0003076/1.326, allocations: 251.8 kB / 1.281 GB, free: 7.723 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000522/1.326, allocations: 233 kB / 1.281 GB, free: 7.492 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001736/1.328, allocations: 0.8896 MB / 1.282 GB, free: 6.59 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.325e-05/1.328, allocations: 11.94 kB / 1.282 GB, free: 6.578 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/1.328, allocations: 0 / 1.282 GB, free: 6.578 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001044/1.329, allocations: 0.6931 MB / 1.282 GB, free: 5.852 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004347/1.334, allocations: 2.586 MB / 1.285 GB, free: 3.195 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.86e-06/1.334, allocations: 0 / 1.285 GB, free: 3.195 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005125/1.334, allocations: 123.9 kB / 1.285 GB, free: 3.074 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.154e-05/1.334, allocations: 4.094 kB / 1.285 GB, free: 3.07 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.463e-05/1.334, allocations: 23.98 kB / 1.285 GB, free: 3.047 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.773e-06/1.334, allocations: 7.938 kB / 1.285 GB, free: 3.039 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/1.334, allocations: 0 / 1.285 GB, free: 3.039 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002057/1.336, allocations: 1.313 MB / 1.286 GB, free: 1.695 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008634/1.337, allocations: 418 kB / 1.287 GB, free: 1.266 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003853/1.337, allocations: 12 kB / 1.287 GB, free: 1.254 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/1.339, allocations: 47.86 kB / 1.287 GB, free: 1.207 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001144/1.339, allocations: 48.38 kB / 1.287 GB, free: 1.156 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-05/1.339, allocations: 35.97 kB / 1.287 GB, free: 1.121 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.002428/1.341, allocations: 1.569 MB / 1.288 GB, free: 15.55 MB / 1.029 GB Notification: Performance of sort global known variables: time 3.9e-07/1.341, allocations: 0 / 1.288 GB, free: 15.55 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.003103/1.344, allocations: 1.111 MB / 1.289 GB, free: 14.43 MB / 1.029 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.001943/1.346, allocations: 0.7425 MB / 1.29 GB, free: 13.82 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.002874/1.349, allocations: 1.363 MB / 1.291 GB, free: 12.46 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/1.349, allocations: 7.875 kB / 1.291 GB, free: 12.45 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0005617/1.35, allocations: 323 kB / 1.292 GB, free: 12.14 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005512/1.355, allocations: 1.39 MB / 1.293 GB, free: 10.79 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006401/1.362, allocations: 3.722 MB / 1.297 GB, free: 7.027 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00144/1.363, allocations: 1.582 MB / 1.298 GB, free: 5.41 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004878/1.364, allocations: 195.3 kB / 1.299 GB, free: 5.219 MB / 1.029 GB Notification: Performance of SimCode: time 3.71e-07/1.364, allocations: 3.938 kB / 1.299 GB, free: 5.215 MB / 1.029 GB Notification: Performance of Templates: time 0.06036/1.424, allocations: 39.84 MB / 1.337 GB, free: 13.71 MB / 1.076 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches