Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_9_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_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001325/0.001325, allocations: 109.8 kB / 16.41 MB, free: 6.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001316/0.001317, allocations: 185.5 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.405/1.405, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.292/2.292, allocations: 390.2 MB / 0.6655 GB, free: 0.6992 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 59.91 kB / 0.9515 GB, free: 7.672 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.961/0.9622, allocations: 140.4 MB / 1.089 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves): time 0.03345/0.9957, allocations: 29.82 MB / 1.118 GB, free: 156 kB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01379/1.01, allocations: 8.142 MB / 1.126 GB, free: 10.38 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002318/1.012, allocations: 31.91 kB / 1.126 GB, free: 10.37 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001652/1.014, allocations: 441.2 kB / 1.126 GB, free: 10.09 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.005548/1.019, allocations: 1.431 MB / 1.128 GB, free: 9.27 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004124/1.023, allocations: 1.139 MB / 1.129 GB, free: 8.707 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.00612/1.029, allocations: 3.572 MB / 1.132 GB, free: 7.262 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002828/1.032, allocations: 1.338 MB / 1.133 GB, free: 6.824 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004309/1.037, allocations: 1.697 MB / 1.135 GB, free: 6.242 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00461/1.041, allocations: 1.618 MB / 1.137 GB, free: 5.734 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.001267/1.043, allocations: 125.8 kB / 1.137 GB, free: 5.734 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004226/1.047, allocations: 1.015 MB / 1.138 GB, free: 5.445 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.001361/1.048, allocations: 409 kB / 1.138 GB, free: 5.238 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.00298/1.051, allocations: 0.75 MB / 1.139 GB, free: 4.844 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.006365/1.058, allocations: 2.203 MB / 1.141 GB, free: 4.121 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/1.058, allocations: 4 kB / 1.141 GB, free: 4.117 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.823e-06/1.058, allocations: 0 / 1.141 GB, free: 4.117 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.9e-05/1.058, allocations: 0 / 1.141 GB, free: 4.117 MB / 0.8887 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.006714/1.065, allocations: 1.665 MB / 1.143 GB, free: 3.074 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.784e-05/1.065, allocations: 8.938 kB / 1.143 GB, free: 3.074 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001141/1.066, allocations: 152.3 kB / 1.143 GB, free: 3.008 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003052/1.069, allocations: 0.9228 MB / 1.144 GB, free: 2.484 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001047/1.069, allocations: 88.48 kB / 1.144 GB, free: 2.449 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000399/1.069, allocations: 117.6 kB / 1.144 GB, free: 2.422 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001411/1.071, allocations: 0.6338 MB / 1.145 GB, free: 2.133 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/1.071, allocations: 4 kB / 1.145 GB, free: 2.129 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.518e-05/1.071, allocations: 26.41 kB / 1.145 GB, free: 2.109 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.697e-05/1.071, allocations: 18.14 kB / 1.145 GB, free: 2.105 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009905/1.072, allocations: 464 kB / 1.145 GB, free: 1.961 MB / 0.8887 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.005974/1.078, allocations: 2.855 MB / 1.148 GB, free: 168 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006525/1.079, allocations: 318.8 kB / 1.148 GB, free: 36 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003697/1.079, allocations: 146.2 kB / 1.148 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000325/1.079, allocations: 342.3 kB / 1.149 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/1.079, allocations: 38.3 kB / 1.149 GB, free: 15.56 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=33): time 2.836e-06/1.079, allocations: 4 kB / 1.149 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of matching and sorting (n=33): time 0.001882/1.081, allocations: 0.5272 MB / 1.149 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.646e-05/1.081, allocations: 56.28 kB / 1.149 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001296/1.083, allocations: 0.9059 MB / 1.15 GB, free: 14.91 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0002691/1.083, allocations: 54.36 kB / 1.15 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004878/1.083, allocations: 488.9 kB / 1.151 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/1.083, allocations: 122.6 kB / 1.151 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005175/1.084, allocations: 285.6 kB / 1.151 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000144/1.084, allocations: 335 kB / 1.151 GB, free: 13.99 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004278/1.085, allocations: 189.2 kB / 1.152 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001652/1.086, allocations: 1.155 MB / 1.153 GB, free: 12.81 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000906/1.087, allocations: 458.2 kB / 1.153 GB, free: 12.58 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/1.087, allocations: 1.312 kB / 1.153 GB, free: 12.58 MB / 0.9044 GB Notification: Performance of matching and sorting (n=73) (initialization): time 0.001611/1.089, allocations: 0.6563 MB / 1.154 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/1.089, allocations: 5.844 kB / 1.154 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/1.089, allocations: 2.188 kB / 1.154 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/1.089, allocations: 5.156 kB / 1.154 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001485/1.09, allocations: 232.2 kB / 1.154 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00217/1.093, allocations: 2.961 MB / 1.157 GB, free: 9.266 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003845/1.096, allocations: 0.7024 MB / 1.158 GB, free: 8.934 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001371/1.097, allocations: 22.59 kB / 1.158 GB, free: 8.93 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001/1.098, allocations: 372.6 kB / 1.158 GB, free: 8.711 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001509/1.099, allocations: 1.159 MB / 1.159 GB, free: 7.453 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008535/1.1, allocations: 454.4 kB / 1.159 GB, free: 7.172 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.917e-06/1.1, allocations: 1.156 kB / 1.159 GB, free: 7.172 MB / 0.9044 GB Notification: Performance of matching and sorting (n=73) (initialization_lambda0): time 0.001883/1.102, allocations: 0.6583 MB / 1.16 GB, free: 6.863 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/1.102, allocations: 10.19 kB / 1.16 GB, free: 6.859 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/1.102, allocations: 3.281 kB / 1.16 GB, free: 6.859 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/1.102, allocations: 13.47 kB / 1.16 GB, free: 6.852 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007082/1.103, allocations: 155.2 kB / 1.16 GB, free: 6.816 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.325e-05/1.103, allocations: 9.391 kB / 1.16 GB, free: 6.812 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004891/1.108, allocations: 0.9566 MB / 1.161 GB, free: 6.398 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001388/1.108, allocations: 32.05 kB / 1.161 GB, free: 6.387 MB / 0.9044 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 (73): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004884/1.108, allocations: 241.1 kB / 1.161 GB, free: 6.172 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003563/1.109, allocations: 98.84 kB / 1.162 GB, free: 6.117 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001389/1.11, allocations: 0.506 MB / 1.162 GB, free: 5.828 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.499e-05/1.11, allocations: 4.5 kB / 1.162 GB, free: 5.828 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/1.11, allocations: 0 / 1.162 GB, free: 5.828 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.866e-06/1.11, allocations: 8.703 kB / 1.162 GB, free: 5.82 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002535/1.113, allocations: 1.252 MB / 1.163 GB, free: 4.91 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/1.113, allocations: 2.5 kB / 1.163 GB, free: 4.91 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005451/1.113, allocations: 118.7 kB / 1.163 GB, free: 4.875 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.985e-06/1.113, allocations: 3.469 kB / 1.163 GB, free: 4.875 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.008e-05/1.113, allocations: 8.5 kB / 1.163 GB, free: 4.871 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001742/1.115, allocations: 2.942 MB / 1.166 GB, free: 1.879 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/1.115, allocations: 5.25 kB / 1.166 GB, free: 1.875 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001094/1.116, allocations: 0.5695 MB / 1.167 GB, free: 1.5 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003983/1.116, allocations: 209.8 kB / 1.167 GB, free: 1.309 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001204/1.117, allocations: 7.312 kB / 1.167 GB, free: 1.305 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004715/1.117, allocations: 29.14 kB / 1.167 GB, free: 1.289 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.018e-05/1.117, allocations: 28.94 kB / 1.167 GB, free: 1.273 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.097e-05/1.117, allocations: 15.31 kB / 1.167 GB, free: 1.27 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0009166/1.118, allocations: 0.6129 MB / 1.168 GB, free: 0.9141 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.5e-07/1.118, allocations: 0 / 1.168 GB, free: 0.9141 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.002305/1.12, allocations: 0.5486 MB / 1.168 GB, free: 0.7891 MB / 0.9044 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 (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 5 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 5 systems {1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001092/1.122, allocations: 325.1 kB / 1.169 GB, free: 0.6016 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.003082/1.125, allocations: 0.856 MB / 1.169 GB, free: 244 kB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.748e-06/1.125, allocations: 4.062 kB / 1.169 GB, free: 240 kB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0006494/1.125, allocations: 229.2 kB / 1.17 GB, free: 148 kB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002298/1.128, allocations: 403.3 kB / 1.17 GB, free: 15.92 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003096/1.131, allocations: 1.548 MB / 1.172 GB, free: 14.98 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006809/1.131, allocations: 1.026 MB / 1.173 GB, free: 14.13 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003188/1.132, allocations: 91.12 kB / 1.173 GB, free: 14.1 MB / 0.92 GB Notification: Performance of SimCode: time 7.82e-07/1.132, allocations: 0 / 1.173 GB, free: 14.1 MB / 0.92 GB Notification: Performance of Templates: time 0.05155/1.183, allocations: 36.17 MB / 1.208 GB, free: 2.516 MB / 0.9356 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.sim & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValves.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValves.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches