Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.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.TwoWayValvePressureIndependent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valInd.m_flow|valIndDpFix.m_flow|valIndFromMflow.m_flow",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.395/1.395, allocations: 251.9 MB / 266.9 MB, free: 11.02 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.00115/0.001149, allocations: 180.8 kB / 326.5 MB, free: 2.242 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.787/1.787, allocations: 205.4 MB / 0.5775 GB, free: 20.2 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.001215/0.001214, allocations: 101.5 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003561/0.0003562, allocations: 8.5 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2713, allocations: 106.3 MB / 0.9001 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9389/1.21, allocations: 389.2 MB / 1.28 GB, free: 10.05 MB / 0.7917 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002737/1.211, allocations: 99.44 kB / 1.28 GB, free: 9.992 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 0.9775/2.188, allocations: 230.2 MB / 1.505 GB, free: 250.6 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.425e-06/2.188, allocations: 0 / 1.505 GB, free: 250.6 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 9.777e-05/2.188, allocations: 20 kB / 1.505 GB, free: 250.6 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: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.003253/2.192, allocations: 1.081 MB / 1.506 GB, free: 249.5 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.563e-05/2.192, allocations: 12.03 kB / 1.506 GB, free: 249.5 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003883/2.192, allocations: 91.42 kB / 1.506 GB, free: 249.4 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00136/2.193, allocations: 0.5084 MB / 1.507 GB, free: 248.9 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.634e-05/2.194, allocations: 40.98 kB / 1.507 GB, free: 248.8 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/2.194, allocations: 55.98 kB / 1.507 GB, free: 248.8 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001134/2.195, allocations: 0.6177 MB / 1.507 GB, free: 248.1 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.512e-05/2.195, allocations: 11.94 kB / 1.507 GB, free: 248.1 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.097e-05/2.195, allocations: 23.95 kB / 1.507 GB, free: 248.1 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.251e-05/2.195, allocations: 12 kB / 1.507 GB, free: 248 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001049/2.196, allocations: 0.5034 MB / 1.508 GB, free: 247.5 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.003592/2.2, allocations: 3.193 MB / 1.511 GB, free: 244.2 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006343/2.2, allocations: 343 kB / 1.511 GB, free: 243.8 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002966/2.201, allocations: 345.3 kB / 1.512 GB, free: 243.4 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/2.201, allocations: 38.56 kB / 1.512 GB, free: 243.4 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=38): time 2.375e-06/2.201, allocations: 3.938 kB / 1.512 GB, free: 243.4 MB / 0.8855 GB Notification: Performance of matching and sorting (n=38): time 0.001882/2.202, allocations: 0.8322 MB / 1.513 GB, free: 242.5 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.697e-05/2.203, allocations: 55.41 kB / 1.513 GB, free: 242.4 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004755/2.203, allocations: 0.4994 MB / 1.513 GB, free: 241.9 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 4.125e-05/2.203, allocations: 37.7 kB / 1.513 GB, free: 241.9 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001711/2.203, allocations: 331.1 kB / 1.513 GB, free: 241.6 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 7.751e-05/2.203, allocations: 136.3 kB / 1.514 GB, free: 241.4 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.465e-05/2.203, allocations: 8 kB / 1.514 GB, free: 241.4 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 9.323e-05/2.203, allocations: 378.7 kB / 1.514 GB, free: 241 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004463/2.204, allocations: 213.2 kB / 1.514 GB, free: 240.8 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004895/2.204, allocations: 404.2 kB / 1.515 GB, free: 240.4 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000487/2.205, allocations: 252.7 kB / 1.515 GB, free: 240.1 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/2.205, allocations: 0 / 1.515 GB, free: 240.1 MB / 0.8855 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.00121/2.206, allocations: 0.7222 MB / 1.516 GB, free: 239.4 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003333/2.206, allocations: 1.743 MB / 1.517 GB, free: 237.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.477e-06/2.207, allocations: 7.953 kB / 1.517 GB, free: 237.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005805/2.207, allocations: 152.7 kB / 1.517 GB, free: 237.4 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006661/2.208, allocations: 155.8 kB / 1.518 GB, free: 237.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005107/2.208, allocations: 0.6304 MB / 1.518 GB, free: 236.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006917/2.209, allocations: 107.4 kB / 1.518 GB, free: 236.4 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-05/2.209, allocations: 31.98 kB / 1.518 GB, free: 236.4 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.158e-05/2.209, allocations: 4 kB / 1.518 GB, free: 236.4 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00105/2.21, allocations: 0.6113 MB / 1.519 GB, free: 235.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/2.21, allocations: 4 kB / 1.519 GB, free: 235.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.524e-06/2.21, allocations: 8 kB / 1.519 GB, free: 235.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005628/2.211, allocations: 164.1 kB / 1.519 GB, free: 235.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/2.211, allocations: 15.89 kB / 1.519 GB, free: 235.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005711/2.211, allocations: 95.53 kB / 1.519 GB, free: 235.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.085e-05/2.211, allocations: 35.98 kB / 1.519 GB, free: 235.5 MB / 0.8855 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 69 * 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 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003421/2.212, allocations: 268.9 kB / 1.519 GB, free: 235.2 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.966e-05/2.212, allocations: 67.16 kB / 1.52 GB, free: 235.1 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001271/2.213, allocations: 0.6666 MB / 1.52 GB, free: 234.5 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.388e-06/2.213, allocations: 8 kB / 1.52 GB, free: 234.4 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/2.213, allocations: 3.953 kB / 1.52 GB, free: 234.4 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/2.213, allocations: 3.984 kB / 1.52 GB, free: 234.4 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002075/2.215, allocations: 1.364 MB / 1.522 GB, free: 233 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/2.215, allocations: 0 / 1.522 GB, free: 233 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003624/2.216, allocations: 91.97 kB / 1.522 GB, free: 232.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003669/2.216, allocations: 128.8 kB / 1.522 GB, free: 232.8 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.324e-05/2.216, allocations: 19.98 kB / 1.522 GB, free: 232.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000464/2.217, allocations: 0.6343 MB / 1.522 GB, free: 232.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/2.217, allocations: 0 / 1.522 GB, free: 232.1 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001064/2.218, allocations: 0.7604 MB / 1.523 GB, free: 231.3 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002344/2.218, allocations: 192.1 kB / 1.523 GB, free: 231.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.183e-05/2.218, allocations: 12 kB / 1.523 GB, free: 231.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004495/2.218, allocations: 59.84 kB / 1.523 GB, free: 231 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.514e-05/2.218, allocations: 31.92 kB / 1.523 GB, free: 231 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-05/2.219, allocations: 19.98 kB / 1.523 GB, free: 231 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0003665/2.219, allocations: 395.1 kB / 1.524 GB, free: 230.6 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.1e-07/2.219, allocations: 4 kB / 1.524 GB, free: 230.6 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001285/2.22, allocations: 415.4 kB / 1.524 GB, free: 230.2 MB / 0.8855 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 () * Number of clocked 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.0007542/2.221, allocations: 416.2 kB / 1.525 GB, free: 229.8 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.00174/2.223, allocations: 0.9091 MB / 1.525 GB, free: 228.9 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/2.223, allocations: 0 / 1.525 GB, free: 228.9 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0005787/2.223, allocations: 296.3 kB / 1.526 GB, free: 228.6 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001247/2.225, allocations: 261.2 kB / 1.526 GB, free: 228.4 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/2.226, allocations: 1.276 MB / 1.527 GB, free: 227.1 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002742/2.226, allocations: 0.9274 MB / 1.528 GB, free: 226.1 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0005449/2.227, allocations: 144.9 kB / 1.528 GB, free: 226 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001451/2.227, allocations: 63.41 kB / 1.528 GB, free: 225.9 MB / 0.8855 GB Notification: Performance of SimCode: time 6.51e-07/2.227, allocations: 4 kB / 1.528 GB, free: 225.9 MB / 0.8855 GB Notification: Performance of Templates: time 0.01861/2.246, allocations: 12.95 MB / 1.541 GB, free: 213.1 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvePressureIndependent.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvePressureIndependent.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches