Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.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.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valLin.phi|valQui.phi|valEqu.phi|valInd.phi|valPol.phi|valBut.phi",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.392/1.392, allocations: 249.5 MB / 257 MB, free: 6.789 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.00106/0.00106, allocations: 172.9 kB / 316.3 MB, free: 3.25 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.439/1.439, allocations: 205.3 MB / 0.5671 GB, free: 15.93 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.0008104/0.0008104, allocations: 95.52 kB / 0.6714 GB, free: 5.043 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.98e-05/1.984e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1885/0.1886, allocations: 106.3 MB / 0.8852 GB, free: 12.29 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.384/1.573, allocations: 393.5 MB / 1.27 GB, free: 323.2 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003462/1.573, allocations: 95.98 kB / 1.27 GB, free: 323.2 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.057/2.63, allocations: 349.1 MB / 1.611 GB, free: 211.5 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.154e-06/2.63, allocations: 0.5625 kB / 1.611 GB, free: 211.5 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.033e-05/2.631, allocations: 27.69 kB / 1.611 GB, free: 211.5 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.002169/2.633, allocations: 1.158 MB / 1.612 GB, free: 211.1 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/2.633, allocations: 9.719 kB / 1.612 GB, free: 211.1 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002282/2.633, allocations: 119 kB / 1.612 GB, free: 211.1 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001337/2.634, allocations: 0.6696 MB / 1.612 GB, free: 210.8 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.028e-05/2.634, allocations: 15.38 kB / 1.612 GB, free: 210.8 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001405/2.635, allocations: 55 kB / 1.613 GB, free: 210.8 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006757/2.635, allocations: 325.7 kB / 1.613 GB, free: 210.8 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008382/2.636, allocations: 461.3 kB / 1.613 GB, free: 210.7 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/2.636, allocations: 0 / 1.613 GB, free: 210.7 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.499e-05/2.636, allocations: 3.875 kB / 1.613 GB, free: 210.7 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.703e-05/2.636, allocations: 19.19 kB / 1.613 GB, free: 210.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.003685/2.64, allocations: 2.376 MB / 1.616 GB, free: 209.6 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004496/2.64, allocations: 257.9 kB / 1.616 GB, free: 209.6 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000199/2.64, allocations: 110.6 kB / 1.616 GB, free: 209.6 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002749/2.641, allocations: 347 kB / 1.616 GB, free: 209.2 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.46e-05/2.641, allocations: 36.11 kB / 1.616 GB, free: 209.1 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=29): time 1.583e-06/2.641, allocations: 0 / 1.616 GB, free: 209.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=29): time 0.001263/2.642, allocations: 412.8 kB / 1.617 GB, free: 209.1 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.314e-05/2.642, allocations: 55.62 kB / 1.617 GB, free: 209 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006928/2.643, allocations: 0.5418 MB / 1.617 GB, free: 208.9 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 7.372e-05/2.643, allocations: 30.73 kB / 1.617 GB, free: 208.8 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000301/2.643, allocations: 428.3 kB / 1.618 GB, free: 208.7 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 7.456e-05/2.643, allocations: 97.06 kB / 1.618 GB, free: 208.6 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.293e-05/2.643, allocations: 1.094 kB / 1.618 GB, free: 208.6 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001203/2.643, allocations: 382 kB / 1.618 GB, free: 208.3 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00023/2.644, allocations: 124.4 kB / 1.618 GB, free: 208.3 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006971/2.644, allocations: 0.7421 MB / 1.619 GB, free: 207.7 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008311/2.645, allocations: 297.4 kB / 1.619 GB, free: 207.7 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/2.645, allocations: 0 / 1.619 GB, free: 207.7 MB / 0.8698 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001309/2.647, allocations: 0.5544 MB / 1.62 GB, free: 207.6 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001629/2.647, allocations: 0.8035 MB / 1.621 GB, free: 206.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/2.647, allocations: 8.312 kB / 1.621 GB, free: 206.8 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/2.647, allocations: 7.469 kB / 1.621 GB, free: 206.8 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001091/2.648, allocations: 169.8 kB / 1.621 GB, free: 206.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009819/2.649, allocations: 2.386 MB / 1.623 GB, free: 204.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001836/2.651, allocations: 373.3 kB / 1.624 GB, free: 204.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-05/2.651, allocations: 24.97 kB / 1.624 GB, free: 204.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/2.651, allocations: 9.562 kB / 1.624 GB, free: 204.5 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00115/2.652, allocations: 418.2 kB / 1.624 GB, free: 204.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/2.652, allocations: 2.438 kB / 1.624 GB, free: 204.4 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/2.652, allocations: 4.484 kB / 1.624 GB, free: 204.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000606/2.653, allocations: 140.9 kB / 1.624 GB, free: 204.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/2.653, allocations: 6.578 kB / 1.624 GB, free: 204.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00175/2.654, allocations: 353.7 kB / 1.624 GB, free: 204.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.454e-05/2.654, allocations: 27.11 kB / 1.624 GB, free: 204.4 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001898/2.655, allocations: 128.4 kB / 1.625 GB, free: 204.3 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001391/2.655, allocations: 72.53 kB / 1.625 GB, free: 204.3 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001387/2.656, allocations: 490.6 kB / 1.625 GB, free: 204.2 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/2.656, allocations: 7.734 kB / 1.625 GB, free: 204.2 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/2.656, allocations: 2.156 kB / 1.625 GB, free: 204.2 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/2.656, allocations: 1.828 kB / 1.625 GB, free: 204.2 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002162/2.658, allocations: 1.08 MB / 1.626 GB, free: 203.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/2.658, allocations: 1.844 kB / 1.626 GB, free: 203.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004747/2.659, allocations: 101.2 kB / 1.626 GB, free: 203.9 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.795e-06/2.659, allocations: 3 kB / 1.626 GB, free: 203.9 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.56e-05/2.659, allocations: 9.062 kB / 1.626 GB, free: 203.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006902/2.66, allocations: 2.357 MB / 1.629 GB, free: 201.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/2.66, allocations: 2.25 kB / 1.629 GB, free: 201.6 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001109/2.661, allocations: 0.5971 MB / 1.629 GB, free: 201.3 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002946/2.661, allocations: 192.5 kB / 1.629 GB, free: 201.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.988e-05/2.661, allocations: 4.641 kB / 1.629 GB, free: 201.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004613/2.662, allocations: 55.27 kB / 1.629 GB, free: 201.2 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.782e-05/2.662, allocations: 32.98 kB / 1.629 GB, free: 201.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.842e-05/2.662, allocations: 16.25 kB / 1.629 GB, free: 201.2 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0005382/2.662, allocations: 409.7 kB / 1.63 GB, free: 201.1 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.5e-07/2.662, allocations: 11.12 kB / 1.63 GB, free: 201.1 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001778/2.664, allocations: 489.8 kB / 1.63 GB, free: 201 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009518/2.665, allocations: 472.7 kB / 1.631 GB, free: 200.9 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.001856/2.667, allocations: 0.6074 MB / 1.631 GB, free: 200.9 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/2.667, allocations: 0 / 1.631 GB, free: 200.9 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004098/2.667, allocations: 172.3 kB / 1.632 GB, free: 200.9 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002127/2.67, allocations: 333.1 kB / 1.632 GB, free: 200.9 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001779/2.671, allocations: 0.8611 MB / 1.633 GB, free: 200.6 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006526/2.672, allocations: 0.9865 MB / 1.634 GB, free: 199.9 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.001186/2.673, allocations: 190.5 kB / 1.634 GB, free: 199.9 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/2.673, allocations: 57.38 kB / 1.634 GB, free: 199.9 MB / 0.8698 GB Notification: Performance of SimCode: time 5.72e-07/2.673, allocations: 0 / 1.634 GB, free: 199.9 MB / 0.8698 GB Notification: Performance of Templates: time 0.03309/2.706, allocations: 18.07 MB / 1.652 GB, free: 199.6 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches