Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.79/2.79, allocations: 390.5 MB / 398 MB, free: 10.94 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.001136/0.001136, allocations: 180.8 kB / 491.2 MB, free: 1.566 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.511/1.511, allocations: 221.5 MB / 0.7868 GB, free: 13.36 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 91.94 kB / 0.9269 GB, free: 13.86 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.122e-05/2.124e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.3111, allocations: 143 MB / 1.212 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.299/1.61, allocations: 399.5 MB / 1.602 GB, free: 14.89 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002972/1.611, allocations: 95.66 kB / 1.603 GB, free: 14.84 MB / 1.026 GB Notification: Performance of FrontEnd - DAE generated: time 1.704/3.315, allocations: 434.3 MB / 2.027 GB, free: 176.3 MB / 1.151 GB Notification: Performance of FrontEnd: time 1.964e-06/3.315, allocations: 0 / 2.027 GB, free: 176.3 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0001882/3.315, allocations: 35.94 kB / 2.027 GB, free: 176.2 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.003713/3.319, allocations: 1.333 MB / 2.028 GB, free: 174.8 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.371e-05/3.319, allocations: 12.56 kB / 2.028 GB, free: 174.8 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008382/3.32, allocations: 150.4 kB / 2.028 GB, free: 174.7 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002372/3.322, allocations: 0.8136 MB / 2.029 GB, free: 173.8 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.41e-05/3.322, allocations: 20 kB / 2.029 GB, free: 173.8 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004648/3.323, allocations: 80 kB / 2.029 GB, free: 173.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008017/3.324, allocations: 398.5 kB / 2.029 GB, free: 173.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008583/3.324, allocations: 0.5083 MB / 2.03 GB, free: 172.8 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/3.324, allocations: 15.83 kB / 2.03 GB, free: 172.8 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.101e-05/3.325, allocations: 0 / 2.03 GB, free: 172.8 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.233e-05/3.325, allocations: 16 kB / 2.03 GB, free: 172.8 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.00529/3.33, allocations: 2.91 MB / 2.033 GB, free: 169.7 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004518/3.33, allocations: 307.4 kB / 2.033 GB, free: 169.4 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001842/3.33, allocations: 133.4 kB / 2.033 GB, free: 169.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002759/3.331, allocations: 344.7 kB / 2.034 GB, free: 168.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.591e-05/3.331, allocations: 34.84 kB / 2.034 GB, free: 168.8 MB / 1.151 GB Notification: Performance of pre-optimization done (n=33): time 1.993e-06/3.331, allocations: 0 / 2.034 GB, free: 168.8 MB / 1.151 GB Notification: Performance of matching and sorting (n=33): time 0.001599/3.332, allocations: 486.7 kB / 2.034 GB, free: 168.3 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.275e-05/3.332, allocations: 63.39 kB / 2.034 GB, free: 168.3 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000833/3.333, allocations: 0.6361 MB / 2.035 GB, free: 167.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0002087/3.334, allocations: 33.7 kB / 2.035 GB, free: 167.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004752/3.334, allocations: 0.5403 MB / 2.035 GB, free: 167 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 8.359e-05/3.334, allocations: 118.3 kB / 2.035 GB, free: 166.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.087e-05/3.334, allocations: 0 / 2.035 GB, free: 166.9 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.972e-05/3.334, allocations: 326 kB / 2.036 GB, free: 166.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002269/3.334, allocations: 157.5 kB / 2.036 GB, free: 166.4 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001114/3.336, allocations: 1.37 MB / 2.037 GB, free: 164.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009178/3.337, allocations: 372.6 kB / 2.038 GB, free: 164.3 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/3.337, allocations: 0 / 2.038 GB, free: 164.3 MB / 1.151 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001525/3.338, allocations: 0.6462 MB / 2.038 GB, free: 163.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001803/3.338, allocations: 0.8154 MB / 2.039 GB, free: 162.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/3.338, allocations: 4 kB / 2.039 GB, free: 162.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.382e-05/3.338, allocations: 4 kB / 2.039 GB, free: 162.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00126/3.34, allocations: 211.6 kB / 2.039 GB, free: 162.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001156/3.341, allocations: 2.981 MB / 2.042 GB, free: 159.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003444/3.344, allocations: 0.8748 MB / 2.043 GB, free: 158.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.834e-05/3.344, allocations: 27.98 kB / 2.043 GB, free: 158.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/3.344, allocations: 7.938 kB / 2.043 GB, free: 158.5 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001127/3.345, allocations: 497.2 kB / 2.044 GB, free: 158 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/3.345, allocations: 4 kB / 2.044 GB, free: 158 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/3.345, allocations: 4 kB / 2.044 GB, free: 158 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000645/3.346, allocations: 155.8 kB / 2.044 GB, free: 157.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/3.346, allocations: 4 kB / 2.044 GB, free: 157.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003413/3.35, allocations: 0.867 MB / 2.045 GB, free: 157 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.623e-05/3.35, allocations: 23.98 kB / 2.045 GB, free: 157 MB / 1.151 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 (71): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003867/3.35, allocations: 138.1 kB / 2.045 GB, free: 156.8 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002386/3.35, allocations: 86.88 kB / 2.045 GB, free: 156.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001518/3.352, allocations: 0.5369 MB / 2.045 GB, free: 156.2 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.151e-05/3.352, allocations: 4 kB / 2.045 GB, free: 156.2 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/3.352, allocations: 0 / 2.045 GB, free: 156.2 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/3.352, allocations: 12.11 kB / 2.045 GB, free: 156.2 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00263/3.355, allocations: 1.227 MB / 2.046 GB, free: 154.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.772e-06/3.355, allocations: 0 / 2.046 GB, free: 154.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005086/3.355, allocations: 127.9 kB / 2.047 GB, free: 154.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.093e-05/3.355, allocations: 4 kB / 2.047 GB, free: 154.8 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.799e-05/3.355, allocations: 7.953 kB / 2.047 GB, free: 154.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009234/3.356, allocations: 2.938 MB / 2.049 GB, free: 151.7 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/3.356, allocations: 7.969 kB / 2.049 GB, free: 151.7 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001133/3.357, allocations: 0.6563 MB / 2.05 GB, free: 151 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004125/3.358, allocations: 219.7 kB / 2.05 GB, free: 150.8 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001798/3.358, allocations: 7.938 kB / 2.05 GB, free: 150.8 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006687/3.359, allocations: 59.86 kB / 2.05 GB, free: 150.7 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.253e-05/3.359, allocations: 27.97 kB / 2.05 GB, free: 150.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.81e-05/3.359, allocations: 15.98 kB / 2.05 GB, free: 150.7 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0005945/3.359, allocations: 496.5 kB / 2.051 GB, free: 150.2 MB / 1.151 GB Notification: Performance of sort global known variables: time 1.2e-07/3.359, allocations: 0 / 2.051 GB, free: 150.2 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002938/3.362, allocations: 0.585 MB / 2.051 GB, free: 149.6 MB / 1.151 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 (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001619/3.364, allocations: 0.4927 MB / 2.052 GB, free: 149.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002797/3.367, allocations: 0.7487 MB / 2.053 GB, free: 148.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/3.367, allocations: 0 / 2.053 GB, free: 148.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0004684/3.367, allocations: 191.8 kB / 2.053 GB, free: 148.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002191/3.369, allocations: 399.1 kB / 2.053 GB, free: 147.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002192/3.372, allocations: 1.031 MB / 2.054 GB, free: 146.7 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005525/3.372, allocations: 1.055 MB / 2.055 GB, free: 145.6 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.001754/3.374, allocations: 241.2 kB / 2.056 GB, free: 145.4 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001725/3.374, allocations: 63.36 kB / 2.056 GB, free: 145.3 MB / 1.151 GB Notification: Performance of SimCode: time 1.122e-06/3.374, allocations: 0 / 2.056 GB, free: 145.3 MB / 1.151 GB Notification: Performance of Templates: time 0.03855/3.413, allocations: 24.54 MB / 2.08 GB, free: 121.1 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches