Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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.TwoWayValveTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|kv.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|kv.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001283/0.001283, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001377/0.001377, allocations: 194.1 kB / 16.53 MB, free: 6.391 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.412/1.412, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.811/2.811, allocations: 472.6 MB / 0.7451 GB, free: 4.637 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 67.95 kB / 0.912 GB, free: 33.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3845/0.3859, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.02091/0.4068, allocations: 17.46 MB / 1.085 GB, free: 8.848 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.007411/0.4143, allocations: 4.909 MB / 1.09 GB, free: 3.922 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007252/0.415, allocations: 19.88 kB / 1.09 GB, free: 3.902 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0009748/0.4161, allocations: 250.4 kB / 1.09 GB, free: 3.656 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001819/0.4179, allocations: 0.618 MB / 1.091 GB, free: 3.035 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002139/0.4201, allocations: 0.7231 MB / 1.092 GB, free: 2.32 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001316/0.4214, allocations: 0.9662 MB / 1.093 GB, free: 1.352 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006001/0.422, allocations: 341.1 kB / 1.093 GB, free: 1.012 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008498/0.4229, allocations: 422.3 kB / 1.093 GB, free: 0.5977 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00046/0.4234, allocations: 306.7 kB / 1.094 GB, free: 304 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.345e-05/0.4234, allocations: 32 kB / 1.094 GB, free: 272 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001249/0.4247, allocations: 0.7252 MB / 1.094 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001298/0.4248, allocations: 131.6 kB / 1.094 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002248/0.4251, allocations: 250.6 kB / 1.095 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001104/0.4262, allocations: 0.8646 MB / 1.096 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.4262, allocations: 4 kB / 1.096 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.713e-06/0.4262, allocations: 0 / 1.096 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.225e-06/0.4262, allocations: 0 / 1.096 GB, free: 14.29 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001205/0.4274, allocations: 0.8719 MB / 1.096 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/0.4275, allocations: 8.031 kB / 1.096 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001705/0.4276, allocations: 60.28 kB / 1.096 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005639/0.4282, allocations: 457.5 kB / 1.097 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.548e-05/0.4283, allocations: 24.5 kB / 1.097 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.033e-05/0.4283, allocations: 28 kB / 1.097 GB, free: 12.77 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005167/0.4288, allocations: 282.2 kB / 1.097 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.4289, allocations: 4 kB / 1.097 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.546e-05/0.4289, allocations: 8 kB / 1.097 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.4289, allocations: 12 kB / 1.097 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000429/0.4293, allocations: 186.1 kB / 1.097 GB, free: 12.27 MB / 0.8575 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.001876/0.4312, allocations: 1.488 MB / 1.099 GB, free: 10.66 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00033/0.4316, allocations: 162.8 kB / 1.099 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001776/0.4318, allocations: 88.64 kB / 1.099 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001562/0.4333, allocations: 1.268 MB / 1.1 GB, free: 8.945 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.567e-05/0.4334, allocations: 38.5 kB / 1.1 GB, free: 8.898 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=15): time 1.383e-06/0.4334, allocations: 0 / 1.1 GB, free: 8.898 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15): time 0.0006505/0.434, allocations: 251 kB / 1.101 GB, free: 8.648 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.023e-05/0.4341, allocations: 55.39 kB / 1.101 GB, free: 8.582 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006327/0.4347, allocations: 0.5886 MB / 1.101 GB, free: 7.98 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.4348, allocations: 29.7 kB / 1.101 GB, free: 7.945 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002049/0.435, allocations: 272.1 kB / 1.102 GB, free: 7.676 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.114e-05/0.435, allocations: 55.2 kB / 1.102 GB, free: 7.621 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.4351, allocations: 65.97 kB / 1.102 GB, free: 7.547 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.4353, allocations: 358.8 kB / 1.102 GB, free: 7.188 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001985/0.4355, allocations: 81.94 kB / 1.102 GB, free: 7.105 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002981/0.4358, allocations: 210.7 kB / 1.102 GB, free: 6.852 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004084/0.4362, allocations: 239.3 kB / 1.102 GB, free: 6.586 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.4362, allocations: 0 / 1.102 GB, free: 6.586 MB / 0.8575 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005892/0.4368, allocations: 320.8 kB / 1.103 GB, free: 6.266 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.809e-05/0.4368, allocations: 11.92 kB / 1.103 GB, free: 6.254 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.4369, allocations: 4 kB / 1.103 GB, free: 6.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.4369, allocations: 4 kB / 1.103 GB, free: 6.246 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002603/0.4371, allocations: 59.91 kB / 1.103 GB, free: 6.188 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.258e-05/0.4372, allocations: 8.078 kB / 1.103 GB, free: 6.18 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003094/0.4375, allocations: 47.55 kB / 1.103 GB, free: 6.133 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.6e-05/0.4375, allocations: 19.98 kB / 1.103 GB, free: 6.113 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003048/0.4378, allocations: 216.7 kB / 1.103 GB, free: 5.898 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002837/0.4381, allocations: 202.5 kB / 1.103 GB, free: 5.652 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003949/0.4385, allocations: 238.9 kB / 1.104 GB, free: 5.387 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.664e-06/0.4386, allocations: 0 / 1.104 GB, free: 5.387 MB / 0.8575 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0005687/0.4391, allocations: 298.3 kB / 1.104 GB, free: 5.09 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/0.4391, allocations: 12 kB / 1.104 GB, free: 5.078 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.4392, allocations: 3.938 kB / 1.104 GB, free: 5.074 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.599e-06/0.4392, allocations: 4 kB / 1.104 GB, free: 5.07 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002292/0.4394, allocations: 63.91 kB / 1.104 GB, free: 5.008 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.792e-06/0.4394, allocations: 7.938 kB / 1.104 GB, free: 5 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003354/0.4398, allocations: 35.81 kB / 1.104 GB, free: 4.965 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.416e-05/0.4398, allocations: 16 kB / 1.104 GB, free: 4.949 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (33): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001172/0.4399, allocations: 200.2 kB / 1.104 GB, free: 4.746 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.201e-05/0.44, allocations: 55.28 kB / 1.104 GB, free: 4.691 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005765/0.4406, allocations: 257.5 kB / 1.104 GB, free: 4.438 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.638e-06/0.4406, allocations: 3.984 kB / 1.104 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.4406, allocations: 0 / 1.104 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.4406, allocations: 8 kB / 1.104 GB, free: 4.426 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001085/0.4417, allocations: 0.7394 MB / 1.105 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.981e-06/0.4417, allocations: 4 kB / 1.105 GB, free: 3.613 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001282/0.4419, allocations: 27.98 kB / 1.105 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.979e-06/0.4419, allocations: 8.125 kB / 1.105 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.386e-05/0.4419, allocations: 3.984 kB / 1.105 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.4419, allocations: 4 kB / 1.105 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.4419, allocations: 0 / 1.105 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005178/0.4424, allocations: 358.1 kB / 1.106 GB, free: 3.191 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000165/0.4426, allocations: 144.4 kB / 1.106 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.346e-05/0.4427, allocations: 12.12 kB / 1.106 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002014/0.4429, allocations: 7.984 kB / 1.106 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.475e-05/0.443, allocations: 23.91 kB / 1.106 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.547e-05/0.443, allocations: 8 kB / 1.106 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0005005/0.4435, allocations: 426.8 kB / 1.106 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4435, allocations: 0 / 1.106 GB, free: 2.566 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0008718/0.4444, allocations: 231.7 kB / 1.106 GB, free: 2.34 MB / 0.8575 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 (17): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001153/0.4455, allocations: 488.5 kB / 1.107 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0007666/0.4463, allocations: 334 kB / 1.107 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.4463, allocations: 0 / 1.107 GB, free: 1.672 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002017/0.4465, allocations: 91.81 kB / 1.107 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001215/0.4478, allocations: 246.7 kB / 1.108 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001281/0.4491, allocations: 0.8134 MB / 1.108 GB, free: 0.4961 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003908/0.4495, allocations: 0.8428 MB / 1.109 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.000342/0.4498, allocations: 112.6 kB / 1.109 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.412e-05/0.4499, allocations: 39.44 kB / 1.109 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of SimCode: time 3.11e-07/0.4499, allocations: 0 / 1.109 GB, free: 15.47 MB / 0.8731 GB Notification: Performance of Templates: time 0.01735/0.4673, allocations: 10.18 MB / 1.119 GB, free: 5.43 MB / 0.8731 GB make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.makefile (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches