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.524/1.524, allocations: 251.9 MB / 266.9 MB, free: 10.99 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001659/0.001659, allocations: 182.6 kB / 326.5 MB, free: 2.23 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.861/1.861, allocations: 205.4 MB / 0.5775 GB, free: 20.28 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.0009251/0.0009251, allocations: 88.39 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000355/0.0003549, allocations: 12.47 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2557/0.2561, allocations: 106.3 MB / 0.9001 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9701/1.226, allocations: 424.7 MB / 1.315 GB, free: 7.844 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002822/1.227, allocations: 108.9 kB / 1.315 GB, free: 7.785 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 3.627/4.853, allocations: 0.9474 GB / 2.262 GB, free: 111.3 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.735e-06/4.853, allocations: 3.969 kB / 2.262 GB, free: 111.3 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0006481/4.854, allocations: 74.17 kB / 2.262 GB, free: 111.3 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.01061/4.865, allocations: 3.018 MB / 2.265 GB, free: 109.8 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/4.865, allocations: 7.938 kB / 2.265 GB, free: 109.8 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001699/4.866, allocations: 325.2 kB / 2.266 GB, free: 109.6 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006164/4.873, allocations: 2.427 MB / 2.268 GB, free: 109.1 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.074e-05/4.873, allocations: 131.1 kB / 2.268 GB, free: 109.1 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002439/4.873, allocations: 175.5 kB / 2.268 GB, free: 109.1 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002479/4.876, allocations: 1.552 MB / 2.27 GB, free: 108.9 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.602e-05/4.876, allocations: 2.875 kB / 2.27 GB, free: 108.9 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001462/4.876, allocations: 67.33 kB / 2.27 GB, free: 108.9 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.542e-05/4.876, allocations: 40 kB / 2.27 GB, free: 108.9 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001694/4.878, allocations: 1.106 MB / 2.271 GB, free: 108.9 MB / 0.8855 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.01005/4.888, allocations: 7.958 MB / 2.279 GB, free: 105.2 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000686/4.888, allocations: 457.5 kB / 2.279 GB, free: 105.2 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004848/4.889, allocations: 0.7525 MB / 2.28 GB, free: 104.3 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/4.889, allocations: 46.53 kB / 2.28 GB, free: 104.3 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=60): time 3.967e-06/4.889, allocations: 0 / 2.28 GB, free: 104.3 MB / 0.8855 GB Notification: Performance of matching and sorting (n=60): time 0.001839/4.891, allocations: 1.002 MB / 2.281 GB, free: 104.1 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.866e-05/4.891, allocations: 57.81 kB / 2.281 GB, free: 104 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002327/4.893, allocations: 2.033 MB / 2.283 GB, free: 103.8 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.000138/4.893, allocations: 52.61 kB / 2.283 GB, free: 103.8 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007205/4.894, allocations: 1.145 MB / 2.284 GB, free: 103.4 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001679/4.894, allocations: 214 kB / 2.284 GB, free: 103.3 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.815e-05/4.894, allocations: 23 kB / 2.284 GB, free: 103.3 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.061e-05/4.894, allocations: 353.2 kB / 2.285 GB, free: 103 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005322/4.895, allocations: 334 kB / 2.285 GB, free: 103 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007509/4.896, allocations: 0.8084 MB / 2.286 GB, free: 102.5 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006568/4.896, allocations: 465.9 kB / 2.286 GB, free: 102.4 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/4.896, allocations: 4.688 kB / 2.286 GB, free: 102.4 MB / 0.8855 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.001881/4.898, allocations: 1.247 MB / 2.288 GB, free: 102.2 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005202/4.899, allocations: 3.209 MB / 2.291 GB, free: 98.86 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/4.899, allocations: 8.188 kB / 2.291 GB, free: 98.86 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.752e-05/4.899, allocations: 13 kB / 2.291 GB, free: 98.86 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009472/4.9, allocations: 266.7 kB / 2.291 GB, free: 98.84 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.808e-05/4.9, allocations: 19.66 kB / 2.291 GB, free: 98.84 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002047/4.902, allocations: 270.9 kB / 2.291 GB, free: 98.75 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.497e-05/4.902, allocations: 52.48 kB / 2.291 GB, free: 98.75 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/4.902, allocations: 7.766 kB / 2.291 GB, free: 98.75 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001422/4.903, allocations: 1.005 MB / 2.292 GB, free: 98.45 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/4.903, allocations: 5.812 kB / 2.292 GB, free: 98.45 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/4.903, allocations: 18.11 kB / 2.292 GB, free: 98.45 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008404/4.904, allocations: 259.8 kB / 2.293 GB, free: 98.42 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.186e-05/4.904, allocations: 18.19 kB / 2.293 GB, free: 98.41 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001833/4.906, allocations: 241.5 kB / 2.293 GB, free: 98.33 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8e-05/4.906, allocations: 55.48 kB / 2.293 GB, free: 98.32 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 () * Number of clocked 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.001117/4.907, allocations: 0.5733 MB / 2.293 GB, free: 97.92 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003293/4.908, allocations: 235.5 kB / 2.294 GB, free: 97.79 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00145/4.909, allocations: 0.9198 MB / 2.295 GB, free: 97.42 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.281e-05/4.909, allocations: 10.55 kB / 2.295 GB, free: 97.42 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/4.909, allocations: 3.656 kB / 2.295 GB, free: 97.42 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0008035/4.91, allocations: 0.7131 MB / 2.295 GB, free: 97.05 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003929/4.914, allocations: 2.633 MB / 2.298 GB, free: 95.86 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/4.914, allocations: 3.844 kB / 2.298 GB, free: 95.86 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005377/4.914, allocations: 150.1 kB / 2.298 GB, free: 95.84 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.825e-06/4.914, allocations: 3.969 kB / 2.298 GB, free: 95.84 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.182e-05/4.914, allocations: 20.8 kB / 2.298 GB, free: 95.83 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/4.914, allocations: 5.812 kB / 2.298 GB, free: 95.83 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/4.914, allocations: 0 / 2.298 GB, free: 95.83 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001609/4.916, allocations: 1.389 MB / 2.299 GB, free: 95.09 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009403/4.917, allocations: 453.9 kB / 2.3 GB, free: 94.78 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002327/4.917, allocations: 21.52 kB / 2.3 GB, free: 94.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00124/4.919, allocations: 166.3 kB / 2.3 GB, free: 94.75 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.907e-05/4.919, allocations: 42.83 kB / 2.3 GB, free: 94.74 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.215e-05/4.919, allocations: 29.75 kB / 2.3 GB, free: 94.74 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001967/4.921, allocations: 1.554 MB / 2.302 GB, free: 94.13 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.5e-07/4.921, allocations: 6.344 kB / 2.302 GB, free: 94.13 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.003062/4.924, allocations: 1.201 MB / 2.303 GB, free: 93.86 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 () * Number of clocked 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.002179/4.926, allocations: 1.278 MB / 2.304 GB, free: 93.5 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002262/4.928, allocations: 1.357 MB / 2.305 GB, free: 93.06 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/4.928, allocations: 2.719 kB / 2.305 GB, free: 93.06 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0004265/4.929, allocations: 337 kB / 2.306 GB, free: 92.95 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00668/4.935, allocations: 1.499 MB / 2.307 GB, free: 92.71 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006636/4.942, allocations: 4.381 MB / 2.311 GB, free: 90.26 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009517/4.943, allocations: 1.632 MB / 2.313 GB, free: 89.45 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.002341/4.945, allocations: 496.8 kB / 2.313 GB, free: 89.37 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000398/4.946, allocations: 185.2 kB / 2.314 GB, free: 89.35 MB / 0.8855 GB Notification: Performance of SimCode: time 7.61e-07/4.946, allocations: 0 / 2.314 GB, free: 89.35 MB / 0.8855 GB Notification: Performance of Templates: time 0.07478/5.021, allocations: 51.47 MB / 2.364 GB, free: 45.34 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