Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valInd.m_flow|valIndDpFix.m_flow|valIndFromMflow.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valInd.m_flow|valIndDpFix.m_flow|valIndFromMflow.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.143/2.143, allocations: 387.4 MB / 394.9 MB, free: 13.45 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.001047/0.001047, allocations: 180.8 kB / 487.4 MB, free: 5.059 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.404/1.404, allocations: 221.5 MB / 0.7824 GB, free: 0.9961 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 87.92 kB / 0.9219 GB, free: 2.23 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.358e-05/2.371e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2384, allocations: 142.4 MB / 1.206 GB, free: 44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9918/1.23, allocations: 394.2 MB / 1.591 GB, free: 11.81 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000241/1.231, allocations: 91.62 kB / 1.591 GB, free: 11.76 MB / 1.01 GB Notification: Performance of FrontEnd - DAE generated: time 1.126/2.357, allocations: 238.9 MB / 1.824 GB, free: 371.4 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.653e-06/2.357, allocations: 0 / 1.824 GB, free: 371.4 MB / 1.151 GB Notification: Performance of Transformations before backend: time 7.334e-05/2.357, allocations: 18.59 kB / 1.824 GB, free: 371.4 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001975/2.359, allocations: 0.9781 MB / 1.825 GB, free: 370.8 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/2.359, allocations: 6.75 kB / 1.825 GB, free: 370.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002239/2.359, allocations: 87.02 kB / 1.825 GB, free: 370.7 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009382/2.36, allocations: 0.5043 MB / 1.826 GB, free: 370.4 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/2.36, allocations: 15.56 kB / 1.826 GB, free: 370.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.245e-05/2.36, allocations: 29.22 kB / 1.826 GB, free: 370.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00059/2.361, allocations: 357 kB / 1.826 GB, free: 370.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006377/2.362, allocations: 0.5128 MB / 1.827 GB, free: 369.9 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.567e-05/2.362, allocations: 0 / 1.827 GB, free: 369.9 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.243e-05/2.362, allocations: 3.719 kB / 1.827 GB, free: 369.9 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.024e-05/2.362, allocations: 14.78 kB / 1.827 GB, free: 369.9 MB / 1.151 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.002927/2.365, allocations: 3.109 MB / 1.83 GB, free: 367.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003912/2.365, allocations: 286.6 kB / 1.83 GB, free: 367.3 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002244/2.365, allocations: 178.6 kB / 1.83 GB, free: 367.2 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002677/2.365, allocations: 351.9 kB / 1.831 GB, free: 366.8 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/2.366, allocations: 38.5 kB / 1.831 GB, free: 366.7 MB / 1.151 GB Notification: Performance of pre-optimization done (n=38): time 1.893e-06/2.366, allocations: 0 / 1.831 GB, free: 366.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=38): time 0.002032/2.368, allocations: 0.6618 MB / 1.831 GB, free: 366.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.067e-05/2.368, allocations: 55.34 kB / 1.831 GB, free: 366.3 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004451/2.368, allocations: 453.5 kB / 1.832 GB, free: 366.1 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 4e-05/2.368, allocations: 28.73 kB / 1.832 GB, free: 366 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001509/2.368, allocations: 332.3 kB / 1.832 GB, free: 365.7 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 7.131e-05/2.368, allocations: 120.9 kB / 1.832 GB, free: 365.6 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.387e-05/2.368, allocations: 3.094 kB / 1.832 GB, free: 365.6 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.611e-05/2.368, allocations: 366.4 kB / 1.833 GB, free: 365.3 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002231/2.369, allocations: 146.3 kB / 1.833 GB, free: 365.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002902/2.369, allocations: 335.9 kB / 1.833 GB, free: 364.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001379/2.37, allocations: 432.9 kB / 1.833 GB, free: 364.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.067e-06/2.37, allocations: 3.406 kB / 1.833 GB, free: 364.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001865/2.372, allocations: 0.7931 MB / 1.834 GB, free: 364.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003078/2.373, allocations: 1.747 MB / 1.836 GB, free: 362.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/2.373, allocations: 3.969 kB / 1.836 GB, free: 362.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003672/2.373, allocations: 105.4 kB / 1.836 GB, free: 362.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005016/2.373, allocations: 136.1 kB / 1.836 GB, free: 362.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007846/2.374, allocations: 0.7051 MB / 1.837 GB, free: 361.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006215/2.375, allocations: 93.02 kB / 1.837 GB, free: 361.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-05/2.375, allocations: 33.97 kB / 1.837 GB, free: 361.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.241e-05/2.375, allocations: 12.3 kB / 1.837 GB, free: 361.7 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001769/2.377, allocations: 0.6605 MB / 1.838 GB, free: 361.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/2.377, allocations: 10.25 kB / 1.838 GB, free: 361.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.446e-06/2.377, allocations: 11.39 kB / 1.838 GB, free: 361.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005636/2.377, allocations: 157.2 kB / 1.838 GB, free: 361.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/2.377, allocations: 18.59 kB / 1.838 GB, free: 361.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005652/2.378, allocations: 72.22 kB / 1.838 GB, free: 361.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.394e-05/2.378, allocations: 30.36 kB / 1.838 GB, free: 361.3 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001264/2.378, allocations: 119.4 kB / 1.838 GB, free: 361.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.724e-05/2.378, allocations: 64.27 kB / 1.838 GB, free: 361.1 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001966/2.38, allocations: 0.7558 MB / 1.839 GB, free: 360.7 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.267e-06/2.38, allocations: 11.36 kB / 1.839 GB, free: 360.7 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/2.38, allocations: 6.812 kB / 1.839 GB, free: 360.7 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/2.38, allocations: 7.922 kB / 1.839 GB, free: 360.7 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002789/2.383, allocations: 1.44 MB / 1.84 GB, free: 359.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/2.383, allocations: 3.281 kB / 1.84 GB, free: 359.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003441/2.383, allocations: 83.7 kB / 1.84 GB, free: 359.7 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00031/2.384, allocations: 114.5 kB / 1.84 GB, free: 359.6 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.081e-05/2.384, allocations: 9.188 kB / 1.84 GB, free: 359.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007493/2.385, allocations: 0.6884 MB / 1.841 GB, free: 359 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/2.385, allocations: 3.938 kB / 1.841 GB, free: 359 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001787/2.386, allocations: 0.8689 MB / 1.842 GB, free: 358.4 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002269/2.387, allocations: 194.3 kB / 1.842 GB, free: 358.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.273e-05/2.387, allocations: 3.969 kB / 1.842 GB, free: 358.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004624/2.387, allocations: 48.44 kB / 1.842 GB, free: 358.2 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.937e-05/2.387, allocations: 42.31 kB / 1.842 GB, free: 358.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.456e-05/2.387, allocations: 19.08 kB / 1.842 GB, free: 358.2 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0003037/2.388, allocations: 330.7 kB / 1.843 GB, free: 358 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.4e-07/2.388, allocations: 0 / 1.843 GB, free: 358 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001165/2.389, allocations: 396.3 kB / 1.843 GB, free: 357.9 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007304/2.389, allocations: 416.4 kB / 1.843 GB, free: 357.7 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.00127/2.391, allocations: 0.7141 MB / 1.844 GB, free: 357.5 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/2.391, allocations: 0 / 1.844 GB, free: 357.5 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.000421/2.391, allocations: 240.3 kB / 1.844 GB, free: 357.4 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001252/2.392, allocations: 228 kB / 1.845 GB, free: 357.2 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001076/2.394, allocations: 0.7265 MB / 1.845 GB, free: 356.8 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003048/2.394, allocations: 0.9299 MB / 1.846 GB, free: 356 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0006541/2.395, allocations: 165.3 kB / 1.846 GB, free: 356 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001242/2.395, allocations: 56.11 kB / 1.846 GB, free: 356 MB / 1.151 GB Notification: Performance of SimCode: time 4.41e-07/2.395, allocations: 0 / 1.846 GB, free: 356 MB / 1.151 GB Notification: Performance of Templates: time 0.01811/2.413, allocations: 12.14 MB / 1.858 GB, free: 350.2 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.csv","../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches