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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.642/2.642, allocations: 390.5 MB / 398 MB, free: 10.98 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 176.8 kB / 491.2 MB, free: 1.566 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.699/1.699, allocations: 221.5 MB / 0.7868 GB, free: 13.29 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008881/0.0008879, allocations: 91.89 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 1.813e-05/1.804e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3093/0.3093, allocations: 143 MB / 1.212 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.265/1.575, allocations: 431.2 MB / 1.633 GB, free: 15.97 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003073/1.575, allocations: 103.5 kB / 1.633 GB, free: 15.91 MB / 1.057 GB Notification: Performance of FrontEnd - DAE generated: time 3.582/5.157, allocations: 0.9888 GB / 2.622 GB, free: 5.383 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.392e-06/5.157, allocations: 0 / 2.622 GB, free: 5.383 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002725/5.157, allocations: 83.91 kB / 2.622 GB, free: 5.301 MB / 1.151 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.005251/5.162, allocations: 2.56 MB / 2.625 GB, free: 2.684 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/5.162, allocations: 12.03 kB / 2.625 GB, free: 2.672 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008901/5.163, allocations: 324.2 kB / 2.625 GB, free: 2.352 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004445/5.168, allocations: 2.457 MB / 2.628 GB, free: 15.82 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.555e-05/5.168, allocations: 48 kB / 2.628 GB, free: 15.77 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000218/5.168, allocations: 104 kB / 2.628 GB, free: 15.67 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001986/5.17, allocations: 0.9821 MB / 2.629 GB, free: 14.69 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002385/5.172, allocations: 1.313 MB / 2.63 GB, free: 13.31 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.95e-05/5.173, allocations: 0 / 2.63 GB, free: 13.31 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001088/5.173, allocations: 0 / 2.63 GB, free: 13.31 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.846e-05/5.173, allocations: 47.92 kB / 2.63 GB, free: 13.27 MB / 1.167 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.01236/5.185, allocations: 7.644 MB / 2.638 GB, free: 5.133 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007165/5.186, allocations: 446 kB / 2.638 GB, free: 4.688 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000422/5.186, allocations: 310.9 kB / 2.638 GB, free: 4.375 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007494/5.187, allocations: 0.7563 MB / 2.639 GB, free: 3.453 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.005e-05/5.187, allocations: 39.12 kB / 2.639 GB, free: 3.406 MB / 1.167 GB Notification: Performance of pre-optimization done (n=60): time 2.624e-06/5.187, allocations: 0 / 2.639 GB, free: 3.406 MB / 1.167 GB Notification: Performance of matching and sorting (n=60): time 0.001952/5.189, allocations: 0.7346 MB / 2.64 GB, free: 2.664 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/5.189, allocations: 59.97 kB / 2.64 GB, free: 2.594 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002754/5.192, allocations: 1.711 MB / 2.641 GB, free: 0.8633 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0002047/5.192, allocations: 25.7 kB / 2.641 GB, free: 0.832 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.976/6.168, allocations: 1.156 MB / 2.643 GB, free: 178.2 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007373/6.169, allocations: 209.5 kB / 2.643 GB, free: 178.1 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.235e-05/6.169, allocations: 0 / 2.643 GB, free: 178.1 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 0.0001904/6.169, allocations: 347.8 kB / 2.643 GB, free: 177.8 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008896/6.17, allocations: 307.1 kB / 2.643 GB, free: 177.8 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001165/6.171, allocations: 0.7536 MB / 2.644 GB, free: 177.3 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001468/6.173, allocations: 456.2 kB / 2.645 GB, free: 177.3 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.255e-05/6.173, allocations: 2.031 kB / 2.645 GB, free: 177.3 MB / 1.167 GB Notification: Performance of matching and sorting (n=138) (initialization): time 0.00368/6.177, allocations: 1.12 MB / 2.646 GB, free: 177.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009793/6.178, allocations: 3.158 MB / 2.649 GB, free: 173.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.821e-05/6.178, allocations: 7.5 kB / 2.649 GB, free: 173.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.293e-05/6.178, allocations: 15.16 kB / 2.649 GB, free: 173.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/6.179, allocations: 261.8 kB / 2.649 GB, free: 173.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.974e-05/6.179, allocations: 20.81 kB / 2.649 GB, free: 173.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002715/6.182, allocations: 187 kB / 2.649 GB, free: 173.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001631/6.182, allocations: 61.17 kB / 2.649 GB, free: 173.8 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.806e-05/6.182, allocations: 8.25 kB / 2.649 GB, free: 173.8 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002186/6.184, allocations: 0.8483 MB / 2.65 GB, free: 173.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.039e-05/6.184, allocations: 8.812 kB / 2.65 GB, free: 173.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.921e-05/6.184, allocations: 13.67 kB / 2.65 GB, free: 173.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001064/6.185, allocations: 256.3 kB / 2.65 GB, free: 173.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.301e-05/6.185, allocations: 16.27 kB / 2.65 GB, free: 173.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002353/6.188, allocations: 178.7 kB / 2.651 GB, free: 173.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001358/6.188, allocations: 49.89 kB / 2.651 GB, free: 173.8 MB / 1.167 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.0003937/6.188, allocations: 137.9 kB / 2.651 GB, free: 173.7 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005055/6.189, allocations: 220.2 kB / 2.651 GB, free: 173.5 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002337/6.191, allocations: 0.8262 MB / 2.652 GB, free: 173.5 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.685e-05/6.191, allocations: 6.891 kB / 2.652 GB, free: 173.5 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.183e-06/6.191, allocations: 1.656 kB / 2.652 GB, free: 173.5 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001143/6.192, allocations: 0.6537 MB / 2.652 GB, free: 173.3 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005687/6.198, allocations: 2.413 MB / 2.655 GB, free: 172.9 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/6.198, allocations: 1.406 kB / 2.655 GB, free: 172.9 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006928/6.199, allocations: 152.3 kB / 2.655 GB, free: 172.9 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.287e-05/6.199, allocations: 1.5 kB / 2.655 GB, free: 172.9 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.936e-05/6.199, allocations: 11.67 kB / 2.655 GB, free: 172.9 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.105e-05/6.199, allocations: 3.281 kB / 2.655 GB, free: 172.9 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/6.199, allocations: 1.906 kB / 2.655 GB, free: 172.9 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002389/6.201, allocations: 1.269 MB / 2.656 GB, free: 172.6 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001192/6.202, allocations: 441.3 kB / 2.657 GB, free: 172.4 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002326/6.202, allocations: 6.281 kB / 2.657 GB, free: 172.4 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001443/6.204, allocations: 155.1 kB / 2.657 GB, free: 172.4 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001402/6.204, allocations: 45.7 kB / 2.657 GB, free: 172.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.938e-05/6.204, allocations: 34.7 kB / 2.657 GB, free: 172.4 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0027/6.207, allocations: 1.264 MB / 2.658 GB, free: 172.2 MB / 1.167 GB Notification: Performance of sort global known variables: time 6.82e-07/6.207, allocations: 0 / 2.658 GB, free: 172.2 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.00587/6.213, allocations: 1.225 MB / 2.659 GB, free: 172.1 MB / 1.167 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.003104/6.216, allocations: 1.21 MB / 2.66 GB, free: 171.9 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.003194/6.219, allocations: 1.297 MB / 2.662 GB, free: 171.9 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 6.483e-06/6.219, allocations: 1.25 kB / 2.662 GB, free: 171.9 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005979/6.22, allocations: 302 kB / 2.662 GB, free: 171.9 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008733/6.229, allocations: 1.26 MB / 2.663 GB, free: 171.9 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008396/6.237, allocations: 2.782 MB / 2.666 GB, free: 171.1 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002258/6.239, allocations: 1.653 MB / 2.668 GB, free: 170.4 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.005139/6.244, allocations: 0.6423 MB / 2.668 GB, free: 170.4 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000544/6.245, allocations: 122.1 kB / 2.668 GB, free: 170.3 MB / 1.167 GB Notification: Performance of SimCode: time 5.16e-06/6.245, allocations: 0 / 2.668 GB, free: 170.3 MB / 1.167 GB Notification: Performance of Templates: time 0.08857/6.334, allocations: 44.8 MB / 2.712 GB, free: 169 MB / 1.167 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","../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.ThreeWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches