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.381/1.381, allocations: 249.5 MB / 257 MB, free: 6.852 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.0009993/0.0009993, allocations: 184.8 kB / 316.3 MB, free: 3.246 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.388/1.388, allocations: 205.3 MB / 0.5671 GB, free: 15.91 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.00078/0.0007803, allocations: 92.98 kB / 0.6714 GB, free: 5.027 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.337e-05/1.339e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1887/0.1888, allocations: 106.3 MB / 0.8852 GB, free: 12.29 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.307/1.496, allocations: 389.4 MB / 1.265 GB, free: 321.9 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003038/1.497, allocations: 95.38 kB / 1.266 GB, free: 321.9 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.4284/1.925, allocations: 227.8 MB / 1.488 GB, free: 125.3 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.723e-06/1.925, allocations: 4 kB / 1.488 GB, free: 125.3 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 4.241e-05/1.925, allocations: 19.94 kB / 1.488 GB, free: 125.3 MB / 0.8698 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.001367/1.926, allocations: 0.9659 MB / 1.489 GB, free: 124.3 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/1.927, allocations: 8.031 kB / 1.489 GB, free: 124.3 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001139/1.927, allocations: 94.92 kB / 1.489 GB, free: 124.2 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007021/1.927, allocations: 0.496 MB / 1.49 GB, free: 123.6 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.942e-05/1.927, allocations: 16 kB / 1.49 GB, free: 123.6 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.348e-05/1.927, allocations: 28 kB / 1.49 GB, free: 123.6 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005058/1.928, allocations: 358.5 kB / 1.49 GB, free: 123.3 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005697/1.929, allocations: 0.5055 MB / 1.49 GB, free: 122.7 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/1.929, allocations: 11.94 kB / 1.49 GB, free: 122.7 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.463e-05/1.929, allocations: 0 / 1.49 GB, free: 122.7 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.969e-06/1.929, allocations: 12 kB / 1.49 GB, free: 122.7 MB / 0.8698 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.002436/1.931, allocations: 3.113 MB / 1.493 GB, free: 119.4 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003377/1.931, allocations: 278.7 kB / 1.494 GB, free: 119.1 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002032/1.932, allocations: 176.8 kB / 1.494 GB, free: 118.9 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002309/1.932, allocations: 348.4 kB / 1.494 GB, free: 118.5 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.712e-05/1.932, allocations: 38.56 kB / 1.494 GB, free: 118.4 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=38): time 1.723e-06/1.932, allocations: 0 / 1.494 GB, free: 118.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=38): time 0.001822/1.934, allocations: 0.6694 MB / 1.495 GB, free: 117.8 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.836e-05/1.934, allocations: 59.41 kB / 1.495 GB, free: 117.7 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003573/1.934, allocations: 434.4 kB / 1.495 GB, free: 117.3 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/1.934, allocations: 25.7 kB / 1.495 GB, free: 117.2 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001423/1.934, allocations: 336.2 kB / 1.496 GB, free: 116.9 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 6.073e-05/1.934, allocations: 122.2 kB / 1.496 GB, free: 116.8 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.328e-05/1.934, allocations: 0 / 1.496 GB, free: 116.8 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 7.397e-05/1.934, allocations: 366.8 kB / 1.496 GB, free: 116.4 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002016/1.935, allocations: 145.1 kB / 1.496 GB, free: 116.3 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003086/1.935, allocations: 330.9 kB / 1.497 GB, free: 115.9 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001304/1.936, allocations: 436.4 kB / 1.497 GB, free: 115.4 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/1.936, allocations: 0 / 1.497 GB, free: 115.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001766/1.938, allocations: 0.7925 MB / 1.498 GB, free: 114.6 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002684/1.938, allocations: 1.748 MB / 1.5 GB, free: 112.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/1.938, allocations: 12 kB / 1.5 GB, free: 112.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003598/1.939, allocations: 100.8 kB / 1.5 GB, free: 112.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005315/1.939, allocations: 139.8 kB / 1.5 GB, free: 112.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007547/1.94, allocations: 0.7045 MB / 1.5 GB, free: 111.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006267/1.941, allocations: 91.38 kB / 1.501 GB, free: 111.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.863e-05/1.941, allocations: 35.94 kB / 1.501 GB, free: 111.6 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 9.027e-06/1.941, allocations: 5.562 kB / 1.501 GB, free: 111.6 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001605/1.942, allocations: 0.6734 MB / 1.501 GB, free: 111 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/1.942, allocations: 4 kB / 1.501 GB, free: 111 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.134e-06/1.942, allocations: 8 kB / 1.501 GB, free: 111 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005247/1.943, allocations: 156.3 kB / 1.501 GB, free: 110.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.081e-06/1.943, allocations: 11.98 kB / 1.501 GB, free: 110.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005144/1.944, allocations: 75.62 kB / 1.502 GB, free: 110.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.535e-05/1.944, allocations: 31.98 kB / 1.502 GB, free: 110.7 MB / 0.8698 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.000116/1.944, allocations: 120.8 kB / 1.502 GB, free: 110.6 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.121e-05/1.944, allocations: 63.2 kB / 1.502 GB, free: 110.5 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001877/1.946, allocations: 0.7563 MB / 1.502 GB, free: 109.7 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/1.946, allocations: 4 kB / 1.502 GB, free: 109.7 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/1.946, allocations: 4 kB / 1.502 GB, free: 109.7 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/1.946, allocations: 0 / 1.502 GB, free: 109.7 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002769/1.948, allocations: 1.415 MB / 1.504 GB, free: 108.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/1.949, allocations: 4 kB / 1.504 GB, free: 108.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003313/1.949, allocations: 91.97 kB / 1.504 GB, free: 108.2 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003138/1.949, allocations: 120.9 kB / 1.504 GB, free: 108 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.685e-05/1.949, allocations: 4 kB / 1.504 GB, free: 108 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007399/1.95, allocations: 0.7005 MB / 1.505 GB, free: 107.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/1.95, allocations: 4.031 kB / 1.505 GB, free: 107.3 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001774/1.952, allocations: 0.8655 MB / 1.506 GB, free: 106.4 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000223/1.952, allocations: 196 kB / 1.506 GB, free: 106.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.104e-05/1.952, allocations: 4 kB / 1.506 GB, free: 106.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004294/1.952, allocations: 51.94 kB / 1.506 GB, free: 106.1 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.638e-05/1.953, allocations: 35.91 kB / 1.506 GB, free: 106.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.249e-05/1.953, allocations: 12 kB / 1.506 GB, free: 106.1 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0002935/1.953, allocations: 322.9 kB / 1.506 GB, free: 105.8 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.5e-07/1.953, allocations: 0 / 1.506 GB, free: 105.8 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001107/1.954, allocations: 399.1 kB / 1.507 GB, free: 105.4 MB / 0.8698 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.0006614/1.955, allocations: 415.5 kB / 1.507 GB, free: 105 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001234/1.956, allocations: 0.7112 MB / 1.508 GB, free: 104.3 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/1.956, allocations: 0 / 1.508 GB, free: 104.3 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.000393/1.956, allocations: 228.2 kB / 1.508 GB, free: 104 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001213/1.958, allocations: 235.6 kB / 1.508 GB, free: 103.8 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/1.959, allocations: 0.7231 MB / 1.509 GB, free: 103.1 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002537/1.959, allocations: 0.9205 MB / 1.51 GB, free: 102.1 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0006275/1.96, allocations: 168.1 kB / 1.51 GB, free: 101.9 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/1.96, allocations: 51.42 kB / 1.51 GB, free: 101.9 MB / 0.8698 GB Notification: Performance of SimCode: time 4.51e-07/1.96, allocations: 0 / 1.51 GB, free: 101.9 MB / 0.8698 GB Notification: Performance of Templates: time 0.01637/1.976, allocations: 12.22 MB / 1.522 GB, free: 89.79 MB / 0.8698 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