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.395/1.395, allocations: 251.9 MB / 266.9 MB, free: 11.04 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.001301/0.001302, allocations: 182.8 kB / 326.5 MB, free: 2.262 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.929/1.929, allocations: 205.4 MB / 0.5775 GB, free: 20.32 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.0008971/0.0008971, allocations: 95.86 kB / 0.6821 GB, free: 12.92 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003382/0.0003382, allocations: 9.438 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2054/0.2058, allocations: 106.3 MB / 0.9001 GB, free: 63.99 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.805/1.011, allocations: 393.3 MB / 1.284 GB, free: 6.266 MB / 0.7917 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002738/1.011, allocations: 102.2 kB / 1.284 GB, free: 6.207 MB / 0.7917 GB Notification: Performance of FrontEnd - DAE generated: time 1.057/2.068, allocations: 353 MB / 1.629 GB, free: 123.1 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.022e-06/2.068, allocations: 0 / 1.629 GB, free: 123.1 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 8.462e-05/2.068, allocations: 24.19 kB / 1.629 GB, free: 123.1 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.002395/2.07, allocations: 1.32 MB / 1.63 GB, free: 121.7 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.068e-05/2.07, allocations: 8.031 kB / 1.63 GB, free: 121.7 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002583/2.071, allocations: 118.7 kB / 1.63 GB, free: 121.6 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001302/2.072, allocations: 0.6803 MB / 1.631 GB, free: 120.9 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.065e-05/2.072, allocations: 65 kB / 1.631 GB, free: 120.8 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001225/2.072, allocations: 84 kB / 1.631 GB, free: 120.7 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007579/2.073, allocations: 0.5452 MB / 1.632 GB, free: 120.1 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/2.073, allocations: 3.984 kB / 1.632 GB, free: 120.1 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.864e-05/2.073, allocations: 16 kB / 1.632 GB, free: 120.1 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.796e-06/2.073, allocations: 12 kB / 1.632 GB, free: 120.1 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006532/2.074, allocations: 407.6 kB / 1.632 GB, free: 119.7 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.003173/2.077, allocations: 2.506 MB / 1.635 GB, free: 117.1 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004239/2.077, allocations: 279.4 kB / 1.635 GB, free: 116.8 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002012/2.078, allocations: 348.4 kB / 1.635 GB, free: 116.4 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.348e-05/2.078, allocations: 34.56 kB / 1.635 GB, free: 116.3 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=29): time 2.425e-06/2.078, allocations: 3.984 kB / 1.635 GB, free: 116.3 MB / 0.8855 GB Notification: Performance of matching and sorting (n=29): time 0.0009483/2.079, allocations: 486.4 kB / 1.636 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.068e-05/2.079, allocations: 55.41 kB / 1.636 GB, free: 115.8 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000621/2.079, allocations: 0.6568 MB / 1.636 GB, free: 115.1 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 7.946e-05/2.079, allocations: 45.92 kB / 1.636 GB, free: 115.1 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002457/2.08, allocations: 451.4 kB / 1.637 GB, free: 114.6 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 5.252e-05/2.08, allocations: 94.64 kB / 1.637 GB, free: 114.5 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.267e-05/2.08, allocations: 8 kB / 1.637 GB, free: 114.5 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 4.455e-05/2.08, allocations: 337.8 kB / 1.637 GB, free: 114.2 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002781/2.08, allocations: 149 kB / 1.637 GB, free: 114 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006285/2.081, allocations: 0.797 MB / 1.638 GB, free: 113 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003555/2.081, allocations: 239.2 kB / 1.638 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/2.081, allocations: 0 / 1.638 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008709/2.082, allocations: 0.5574 MB / 1.639 GB, free: 112.2 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001236/2.082, allocations: 0.7939 MB / 1.64 GB, free: 111.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/2.082, allocations: 8 kB / 1.64 GB, free: 111.3 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.062e-05/2.082, allocations: 4 kB / 1.64 GB, free: 111.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009445/2.083, allocations: 167.7 kB / 1.64 GB, free: 111.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008142/2.084, allocations: 2.367 MB / 1.642 GB, free: 108.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001515/2.085, allocations: 395.7 kB / 1.643 GB, free: 108.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.004e-05/2.085, allocations: 27.98 kB / 1.643 GB, free: 108.3 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 8.837e-06/2.085, allocations: 4 kB / 1.643 GB, free: 108.3 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007055/2.086, allocations: 442.1 kB / 1.643 GB, free: 107.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/2.086, allocations: 0 / 1.643 GB, free: 107.9 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.432e-06/2.086, allocations: 4 kB / 1.643 GB, free: 107.9 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005175/2.087, allocations: 139.8 kB / 1.643 GB, free: 107.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/2.087, allocations: 12.17 kB / 1.643 GB, free: 107.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001444/2.088, allocations: 383.6 kB / 1.644 GB, free: 107.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.744e-05/2.088, allocations: 27.98 kB / 1.644 GB, free: 107.3 MB / 0.8855 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 58 * 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.0003464/2.089, allocations: 305.5 kB / 1.644 GB, free: 107 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/2.089, allocations: 78.97 kB / 1.644 GB, free: 106.9 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008604/2.09, allocations: 473.7 kB / 1.644 GB, free: 106.5 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/2.09, allocations: 8 kB / 1.644 GB, free: 106.4 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/2.09, allocations: 0 / 1.644 GB, free: 106.4 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/2.09, allocations: 7.938 kB / 1.644 GB, free: 106.4 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001509/2.091, allocations: 1.137 MB / 1.646 GB, free: 105.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/2.091, allocations: 0 / 1.646 GB, free: 105.2 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004053/2.092, allocations: 107.8 kB / 1.646 GB, free: 105.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.241e-06/2.092, allocations: 11.89 kB / 1.646 GB, free: 105.1 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.271e-05/2.092, allocations: 8 kB / 1.646 GB, free: 105.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005452/2.092, allocations: 2.356 MB / 1.648 GB, free: 102.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/2.092, allocations: 0 / 1.648 GB, free: 102.7 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006295/2.093, allocations: 0.5745 MB / 1.649 GB, free: 102 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002441/2.093, allocations: 199.9 kB / 1.649 GB, free: 101.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.849e-05/2.093, allocations: 12.19 kB / 1.649 GB, free: 101.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004727/2.094, allocations: 67.78 kB / 1.649 GB, free: 101.7 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.78e-05/2.094, allocations: 35.88 kB / 1.649 GB, free: 101.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.311e-05/2.094, allocations: 12 kB / 1.649 GB, free: 101.7 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0004674/2.094, allocations: 0.5029 MB / 1.649 GB, free: 101.2 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.4e-07/2.094, allocations: 0 / 1.649 GB, free: 101.2 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.001263/2.095, allocations: 0.5032 MB / 1.65 GB, free: 100.7 MB / 0.8855 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 () * Number of clocked 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.0007343/2.096, allocations: 489.1 kB / 1.65 GB, free: 100.2 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001581/2.098, allocations: 0.6809 MB / 1.651 GB, free: 99.54 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/2.098, allocations: 0 / 1.651 GB, free: 99.54 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0004124/2.098, allocations: 204.3 kB / 1.651 GB, free: 99.34 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001739/2.1, allocations: 410.8 kB / 1.652 GB, free: 98.94 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001668/2.102, allocations: 1.521 MB / 1.653 GB, free: 97.38 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000276/2.102, allocations: 0.9823 MB / 1.654 GB, free: 96.38 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0006898/2.103, allocations: 165.9 kB / 1.654 GB, free: 96.21 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001391/2.103, allocations: 71.41 kB / 1.654 GB, free: 96.14 MB / 0.8855 GB Notification: Performance of SimCode: time 3.81e-07/2.103, allocations: 0 / 1.654 GB, free: 96.14 MB / 0.8855 GB Notification: Performance of Templates: time 0.02619/2.129, allocations: 20.18 MB / 1.674 GB, free: 76.23 MB / 0.8855 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