Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.446/1.446, allocations: 249.3 MB / 261.8 MB, free: 5.949 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009556/0.0009556, allocations: 180.9 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.406/1.406, allocations: 205.2 MB / 0.572 GB, free: 10.68 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008337/0.0008339, allocations: 96.03 kB / 0.6764 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 2.855e-05/2.858e-05, allocations: 4 kB / 0.7879 GB, free: 97.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1739/0.1739, allocations: 106.4 MB / 0.8918 GB, free: 6.656 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.254/1.428, allocations: 424.6 MB / 1.306 GB, free: 258.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003048/1.428, allocations: 100.8 kB / 1.307 GB, free: 258.4 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 2.665/4.092, allocations: 0.9446 GB / 2.251 GB, free: 4.953 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.392e-06/4.092, allocations: 0 / 2.251 GB, free: 4.953 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.000261/4.093, allocations: 83.84 kB / 2.251 GB, free: 4.871 MB / 0.8855 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.004635/4.097, allocations: 2.536 MB / 2.254 GB, free: 2.277 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/4.097, allocations: 12.03 kB / 2.254 GB, free: 2.266 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007711/4.098, allocations: 316.8 kB / 2.254 GB, free: 1.953 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4959/4.594, allocations: 2.397 MB / 2.256 GB, free: 102.3 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001293/4.594, allocations: 131.3 kB / 2.256 GB, free: 102.3 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003516/4.595, allocations: 172.6 kB / 2.257 GB, free: 102.3 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003097/4.598, allocations: 1.499 MB / 2.258 GB, free: 102.1 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.506e-05/4.598, allocations: 9.859 kB / 2.258 GB, free: 102.1 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001528/4.598, allocations: 63.62 kB / 2.258 GB, free: 102.1 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.728e-05/4.598, allocations: 40.91 kB / 2.258 GB, free: 102.1 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002005/4.6, allocations: 1.045 MB / 2.259 GB, free: 102.1 MB / 0.8855 GB Warning: The model contains alias variables with conflicting start and/or 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.0145/4.615, allocations: 7.956 MB / 2.267 GB, free: 98.6 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006917/4.615, allocations: 427.4 kB / 2.267 GB, free: 98.57 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004196/4.616, allocations: 316.1 kB / 2.268 GB, free: 98.56 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006275/4.616, allocations: 0.7526 MB / 2.268 GB, free: 97.71 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.354e-05/4.616, allocations: 46.11 kB / 2.269 GB, free: 97.68 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=60): time 4.378e-06/4.616, allocations: 0 / 2.269 GB, free: 97.68 MB / 0.8855 GB Notification: Performance of matching and sorting (n=60): time 0.00203/4.619, allocations: 0.7386 MB / 2.269 GB, free: 97.52 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.029e-05/4.619, allocations: 61.09 kB / 2.269 GB, free: 97.45 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003519/4.622, allocations: 2.012 MB / 2.271 GB, free: 97.22 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0002254/4.622, allocations: 51.83 kB / 2.271 GB, free: 97.19 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008861/4.623, allocations: 1.144 MB / 2.272 GB, free: 96.92 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001938/4.623, allocations: 212.7 kB / 2.273 GB, free: 96.82 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.085e-05/4.623, allocations: 21.69 kB / 2.273 GB, free: 96.82 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 7.948e-05/4.624, allocations: 352.1 kB / 2.273 GB, free: 96.51 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005433/4.624, allocations: 312.2 kB / 2.273 GB, free: 96.51 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007777/4.625, allocations: 0.78 MB / 2.274 GB, free: 96 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006712/4.626, allocations: 452.4 kB / 2.274 GB, free: 95.99 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/4.626, allocations: 3.312 kB / 2.274 GB, free: 95.99 MB / 0.8855 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.002196/4.628, allocations: 1.2 MB / 2.276 GB, free: 95.82 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006745/4.628, allocations: 3.198 MB / 2.279 GB, free: 92.46 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.961e-05/4.629, allocations: 9.469 kB / 2.279 GB, free: 92.46 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.781e-05/4.629, allocations: 14.06 kB / 2.279 GB, free: 92.46 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001056/4.63, allocations: 265.5 kB / 2.279 GB, free: 92.46 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.949e-05/4.63, allocations: 16.03 kB / 2.279 GB, free: 92.46 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002363/4.632, allocations: 270.3 kB / 2.279 GB, free: 92.41 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/4.632, allocations: 53.09 kB / 2.279 GB, free: 92.41 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/4.632, allocations: 3.094 kB / 2.279 GB, free: 92.41 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001566/4.634, allocations: 0.9506 MB / 2.28 GB, free: 92.39 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/4.634, allocations: 7.125 kB / 2.28 GB, free: 92.39 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/4.634, allocations: 18.48 kB / 2.28 GB, free: 92.39 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008796/4.635, allocations: 255.4 kB / 2.281 GB, free: 92.39 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.803e-05/4.635, allocations: 18.02 kB / 2.281 GB, free: 92.39 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002208/4.637, allocations: 242.6 kB / 2.281 GB, free: 92.36 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.024e-05/4.637, allocations: 56.09 kB / 2.281 GB, free: 92.36 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (138): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002839/4.637, allocations: 169.5 kB / 2.281 GB, free: 92.25 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003404/4.638, allocations: 233.4 kB / 2.281 GB, free: 92.13 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001847/4.64, allocations: 0.875 MB / 2.282 GB, free: 92.04 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.079e-05/4.64, allocations: 15.25 kB / 2.282 GB, free: 92.04 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/4.64, allocations: 0 / 2.282 GB, free: 92.04 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009306/4.641, allocations: 0.6758 MB / 2.283 GB, free: 91.86 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005155/4.646, allocations: 2.604 MB / 2.285 GB, free: 91.48 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.952e-06/4.646, allocations: 1.344 kB / 2.285 GB, free: 91.48 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006205/4.646, allocations: 147.1 kB / 2.285 GB, free: 91.48 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.146e-05/4.646, allocations: 5.031 kB / 2.285 GB, free: 91.48 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.975e-05/4.646, allocations: 18.11 kB / 2.285 GB, free: 91.48 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.418e-06/4.646, allocations: 5.344 kB / 2.285 GB, free: 91.48 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/4.646, allocations: 6.031 kB / 2.285 GB, free: 91.48 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002054/4.648, allocations: 1.326 MB / 2.287 GB, free: 91.1 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001177/4.65, allocations: 449.7 kB / 2.287 GB, free: 90.88 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002725/4.65, allocations: 15 kB / 2.287 GB, free: 90.88 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001437/4.651, allocations: 166 kB / 2.287 GB, free: 90.88 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/4.652, allocations: 51.44 kB / 2.287 GB, free: 90.87 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.236e-05/4.652, allocations: 33.34 kB / 2.287 GB, free: 90.87 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.002641/4.654, allocations: 1.525 MB / 2.289 GB, free: 90.71 MB / 0.8855 GB Notification: Performance of sort global known variables: time 5.81e-07/4.654, allocations: 0 / 2.289 GB, free: 90.71 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0041/4.658, allocations: 1.206 MB / 2.29 GB, free: 90.66 MB / 0.8855 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002507/4.661, allocations: 1.235 MB / 2.291 GB, free: 90.44 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002749/4.664, allocations: 1.373 MB / 2.293 GB, free: 90.41 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/4.664, allocations: 3.469 kB / 2.293 GB, free: 90.41 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0004917/4.664, allocations: 311.7 kB / 2.293 GB, free: 90.41 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008991/4.673, allocations: 1.501 MB / 2.294 GB, free: 90.38 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006335/4.68, allocations: 2.839 MB / 2.297 GB, free: 89.58 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001372/4.681, allocations: 1.637 MB / 2.299 GB, free: 88.85 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.003906/4.685, allocations: 0.7079 MB / 2.3 GB, free: 88.82 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003492/4.685, allocations: 129.3 kB / 2.3 GB, free: 88.81 MB / 0.8855 GB Notification: Performance of SimCode: time 1.482e-06/4.685, allocations: 1.25 kB / 2.3 GB, free: 88.81 MB / 0.8855 GB Notification: Performance of Templates: time 0.08024/4.766, allocations: 56.85 MB / 2.355 GB, free: 86.39 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Actuators_Valves_Examples_ThreeWayValves.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches