Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001875/0.001875, allocations: 104.1 kB / 15.98 MB, free: 6.352 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.002196/0.002196, allocations: 195.3 kB / 16.91 MB, free: 6.184 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.397/1.397, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.528/2.528, allocations: 437 MB / 0.7107 GB, free: 4.645 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001318, allocations: 63.22 kB / 0.8694 GB, free: 2.555 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3246/0.3259, allocations: 151.6 MB / 1.017 GB, free: 11 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves): time 0.763/1.089, allocations: 111.6 MB / 1.126 GB, free: 7.48 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0358/1.125, allocations: 20.11 MB / 1.146 GB, free: 9.109 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.007012/1.132, allocations: 100.1 kB / 1.146 GB, free: 9.066 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.005307/1.137, allocations: 1.094 MB / 1.147 GB, free: 8.434 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0149/1.152, allocations: 3.432 MB / 1.151 GB, free: 6.434 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.01001/1.162, allocations: 2.869 MB / 1.153 GB, free: 4.805 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.01574/1.178, allocations: 7.26 MB / 1.161 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006604/1.185, allocations: 2.552 MB / 1.163 GB, free: 32 kB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01023/1.195, allocations: 2.808 MB / 1.166 GB, free: 14.37 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006284/1.201, allocations: 2.196 MB / 1.168 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.001467/1.203, allocations: 254.2 kB / 1.168 GB, free: 13.03 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006562/1.209, allocations: 1.66 MB / 1.17 GB, free: 12.2 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.001716/1.211, allocations: 0.6923 MB / 1.17 GB, free: 11.66 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.004597/1.216, allocations: 1.517 MB / 1.172 GB, free: 10.62 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.006572/1.222, allocations: 3.434 MB / 1.175 GB, free: 8.215 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 7.925e-06/1.222, allocations: 0 / 1.175 GB, free: 8.215 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.854e-06/1.222, allocations: 0 / 1.175 GB, free: 8.215 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.000197/1.223, allocations: 0 / 1.175 GB, free: 8.215 MB / 0.8731 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.01001/1.233, allocations: 3.229 MB / 1.178 GB, free: 5.832 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.989e-05/1.233, allocations: 19.75 kB / 1.178 GB, free: 5.824 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001773/1.234, allocations: 324.5 kB / 1.179 GB, free: 5.664 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005734/1.24, allocations: 2.157 MB / 1.181 GB, free: 4.02 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001387/1.24, allocations: 131.6 kB / 1.181 GB, free: 3.957 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005404/1.241, allocations: 164.4 kB / 1.181 GB, free: 3.906 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004189/1.245, allocations: 1.607 MB / 1.183 GB, free: 2.906 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.28e-05/1.245, allocations: 1.656 kB / 1.183 GB, free: 2.906 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002376/1.245, allocations: 72.52 kB / 1.183 GB, free: 2.852 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.627e-05/1.245, allocations: 41.42 kB / 1.183 GB, free: 2.848 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002803/1.248, allocations: 1.15 MB / 1.184 GB, free: 2.262 MB / 0.8731 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.0147/1.263, allocations: 7.876 MB / 1.192 GB, free: 11.49 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009552/1.264, allocations: 474 kB / 1.192 GB, free: 11.02 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005699/1.265, allocations: 326.9 kB / 1.192 GB, free: 10.7 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008847/1.266, allocations: 0.7524 MB / 1.193 GB, free: 9.781 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.178e-05/1.266, allocations: 47.12 kB / 1.193 GB, free: 9.727 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=60): time 7.585e-06/1.266, allocations: 0 / 1.193 GB, free: 9.727 MB / 0.8887 GB Notification: Performance of matching and sorting (n=60): time 0.002948/1.269, allocations: 0.9958 MB / 1.194 GB, free: 8.719 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.587e-05/1.269, allocations: 55.97 kB / 1.194 GB, free: 8.652 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005505/1.274, allocations: 2.32 MB / 1.196 GB, free: 6.32 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0003064/1.274, allocations: 49.7 kB / 1.197 GB, free: 6.266 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.001283/1.276, allocations: 1.149 MB / 1.198 GB, free: 5.105 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003631/1.276, allocations: 205 kB / 1.198 GB, free: 4.902 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006502/1.277, allocations: 262.5 kB / 1.198 GB, free: 4.641 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0002302/1.277, allocations: 353.9 kB / 1.198 GB, free: 4.289 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007963/1.278, allocations: 357.9 kB / 1.199 GB, free: 3.934 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001117/1.279, allocations: 0.7463 MB / 1.2 GB, free: 3.027 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001742/1.281, allocations: 0.9824 MB / 1.2 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.086e-05/1.281, allocations: 0 / 1.2 GB, free: 1.93 MB / 0.8887 GB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003098/1.284, allocations: 1.291 MB / 1.202 GB, free: 0.6328 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.348e-05/1.284, allocations: 8 kB / 1.202 GB, free: 0.625 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.248e-05/1.284, allocations: 12 kB / 1.202 GB, free: 0.6133 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.081e-05/1.284, allocations: 12 kB / 1.202 GB, free: 0.6016 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001091/1.285, allocations: 251.6 kB / 1.202 GB, free: 364 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.651e-05/1.285, allocations: 19.94 kB / 1.202 GB, free: 344 kB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002491/1.288, allocations: 246.6 kB / 1.202 GB, free: 96 kB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/1.288, allocations: 52.12 kB / 1.202 GB, free: 44 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001737/1.29, allocations: 0.7626 MB / 1.203 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001121/1.291, allocations: 0.7387 MB / 1.204 GB, free: 14.38 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001553/1.292, allocations: 0.9562 MB / 1.205 GB, free: 13.31 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.218e-05/1.292, allocations: 4 kB / 1.205 GB, free: 13.3 MB / 0.9044 GB Notification: Performance of matching and sorting (n=141) (initialization_lambda0): time 0.002957/1.295, allocations: 1.265 MB / 1.206 GB, free: 12.03 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/1.295, allocations: 10.66 kB / 1.206 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.599e-05/1.295, allocations: 8.875 kB / 1.206 GB, free: 12.02 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/1.295, allocations: 12 kB / 1.206 GB, free: 12 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009534/1.296, allocations: 251.6 kB / 1.206 GB, free: 11.76 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.705e-05/1.296, allocations: 19.94 kB / 1.206 GB, free: 11.74 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002436/1.299, allocations: 183.1 kB / 1.206 GB, free: 11.56 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001199/1.299, allocations: 51.98 kB / 1.206 GB, free: 11.51 MB / 0.9044 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.0004403/1.299, allocations: 255.9 kB / 1.207 GB, free: 11.25 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00103/1.3, allocations: 236.9 kB / 1.207 GB, free: 11.02 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002231/1.303, allocations: 0.9012 MB / 1.208 GB, free: 10.11 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.806e-05/1.303, allocations: 8 kB / 1.208 GB, free: 10.1 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/1.303, allocations: 0 / 1.208 GB, free: 10.1 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001123/1.304, allocations: 0.6814 MB / 1.208 GB, free: 9.387 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005946/1.31, allocations: 2.574 MB / 1.211 GB, free: 6.734 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/1.31, allocations: 0 / 1.211 GB, free: 6.734 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005866/1.31, allocations: 127.8 kB / 1.211 GB, free: 6.609 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.46e-05/1.31, allocations: 4 kB / 1.211 GB, free: 6.605 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.486e-05/1.31, allocations: 16 kB / 1.211 GB, free: 6.59 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.466e-06/1.31, allocations: 3.984 kB / 1.211 GB, free: 6.586 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/1.31, allocations: 4 kB / 1.211 GB, free: 6.582 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002746/1.313, allocations: 1.31 MB / 1.212 GB, free: 5.242 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00146/1.315, allocations: 417.9 kB / 1.213 GB, free: 4.812 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007916/1.316, allocations: 12 kB / 1.213 GB, free: 4.801 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001993/1.318, allocations: 111.7 kB / 1.213 GB, free: 4.691 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/1.318, allocations: 56.61 kB / 1.213 GB, free: 4.637 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001385/1.318, allocations: 31.97 kB / 1.213 GB, free: 4.605 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.003467/1.321, allocations: 1.55 MB / 1.215 GB, free: 3.051 MB / 0.9044 GB Notification: Performance of sort global known variables: time 4.21e-07/1.321, allocations: 0 / 1.215 GB, free: 3.051 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.004972/1.326, allocations: 1.095 MB / 1.216 GB, free: 1.953 MB / 0.9044 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.002369/1.329, allocations: 0.7444 MB / 1.216 GB, free: 1.34 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.003731/1.332, allocations: 1.441 MB / 1.218 GB, free: 15.9 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 6.573e-06/1.332, allocations: 0 / 1.218 GB, free: 15.9 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0008138/1.333, allocations: 335 kB / 1.218 GB, free: 15.57 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007969/1.341, allocations: 1.377 MB / 1.219 GB, free: 14.24 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01018/1.351, allocations: 4.596 MB / 1.224 GB, free: 9.598 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002148/1.354, allocations: 1.59 MB / 1.225 GB, free: 7.973 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008485/1.355, allocations: 179.4 kB / 1.226 GB, free: 7.797 MB / 0.92 GB Notification: Performance of SimCode: time 9.72e-07/1.355, allocations: 0 / 1.226 GB, free: 7.797 MB / 0.92 GB Notification: Performance of Templates: time 0.06553/1.42, allocations: 39.24 MB / 1.264 GB, free: 0.8633 MB / 0.9512 GB make -j1 -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches