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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001597/0.001597, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001989/0.00199, allocations: 192.3 kB / 16.14 MB, free: 6.711 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.423/1.423, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.759/2.759, allocations: 461.8 MB / 0.7342 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 64.72 kB / 0.8984 GB, free: 37.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3073/0.3085, allocations: 157.4 MB / 1.052 GB, free: 8.891 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.01813/0.3267, allocations: 17.4 MB / 1.069 GB, free: 7.418 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.006726/0.3335, allocations: 4.936 MB / 1.074 GB, free: 2.469 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006797/0.3342, allocations: 15.88 kB / 1.074 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0008628/0.3351, allocations: 202.9 kB / 1.074 GB, free: 2.254 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.00156/0.3367, allocations: 0.563 MB / 1.075 GB, free: 1.691 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.00187/0.3386, allocations: 0.6418 MB / 1.075 GB, free: 1.055 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001331/0.3399, allocations: 1.274 MB / 1.077 GB, free: 15.78 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004301/0.3404, allocations: 297 kB / 1.077 GB, free: 15.48 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006773/0.341, allocations: 390.3 kB / 1.077 GB, free: 15.1 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003936/0.3414, allocations: 314.6 kB / 1.077 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 6.823e-05/0.3415, allocations: 20 kB / 1.078 GB, free: 14.77 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001219/0.3428, allocations: 0.69 MB / 1.078 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001316/0.3429, allocations: 131.4 kB / 1.078 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002244/0.3431, allocations: 230.7 kB / 1.079 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001069/0.3442, allocations: 0.8568 MB / 1.079 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3442, allocations: 0 / 1.079 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of FrontEnd: time 9.32e-07/0.3442, allocations: 4 kB / 1.079 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.862e-06/0.3442, allocations: 0 / 1.079 GB, free: 12.86 MB / 0.8419 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.001372/0.3456, allocations: 0.8797 MB / 1.08 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.3457, allocations: 12.03 kB / 1.08 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001724/0.3458, allocations: 56.28 kB / 1.08 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006106/0.3465, allocations: 445.6 kB / 1.081 GB, free: 11.39 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.369e-05/0.3465, allocations: 32.5 kB / 1.081 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.193e-05/0.3465, allocations: 27.98 kB / 1.081 GB, free: 11.34 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005375/0.3471, allocations: 286.2 kB / 1.081 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.183e-05/0.3471, allocations: 3.938 kB / 1.081 GB, free: 11.04 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.539e-05/0.3471, allocations: 12 kB / 1.081 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.3472, allocations: 4 kB / 1.081 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000438/0.3476, allocations: 194.1 kB / 1.081 GB, free: 10.83 MB / 0.8419 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.001971/0.3496, allocations: 1.473 MB / 1.083 GB, free: 9.246 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003311/0.3499, allocations: 162.8 kB / 1.083 GB, free: 9.078 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001753/0.3501, allocations: 80.81 kB / 1.083 GB, free: 8.996 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001588/0.3517, allocations: 1.268 MB / 1.084 GB, free: 7.535 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.577e-05/0.3518, allocations: 42.44 kB / 1.084 GB, free: 7.484 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=15): time 1.653e-06/0.3518, allocations: 0 / 1.084 GB, free: 7.484 MB / 0.8419 GB Notification: Performance of matching and sorting (n=15): time 0.0006671/0.3524, allocations: 257 kB / 1.084 GB, free: 7.227 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.315e-05/0.3525, allocations: 55.41 kB / 1.085 GB, free: 7.16 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006427/0.3531, allocations: 0.577 MB / 1.085 GB, free: 6.57 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.504e-05/0.3532, allocations: 29.7 kB / 1.085 GB, free: 6.535 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002078/0.3534, allocations: 280 kB / 1.085 GB, free: 6.258 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.476e-05/0.3534, allocations: 55.28 kB / 1.085 GB, free: 6.203 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/0.3535, allocations: 73.83 kB / 1.085 GB, free: 6.121 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001523/0.3537, allocations: 358.8 kB / 1.086 GB, free: 5.762 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001944/0.3539, allocations: 77.92 kB / 1.086 GB, free: 5.684 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002947/0.3542, allocations: 214.7 kB / 1.086 GB, free: 5.426 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004025/0.3546, allocations: 242.6 kB / 1.086 GB, free: 5.156 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3546, allocations: 0 / 1.086 GB, free: 5.156 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005966/0.3552, allocations: 306.1 kB / 1.087 GB, free: 4.852 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.01e-05/0.3553, allocations: 7.938 kB / 1.087 GB, free: 4.844 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.3553, allocations: 4 kB / 1.087 GB, free: 4.84 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.3553, allocations: 8.25 kB / 1.087 GB, free: 4.832 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002607/0.3556, allocations: 63.91 kB / 1.087 GB, free: 4.77 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.207e-05/0.3556, allocations: 4 kB / 1.087 GB, free: 4.766 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003998/0.356, allocations: 51.56 kB / 1.087 GB, free: 4.715 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.817e-05/0.356, allocations: 12 kB / 1.087 GB, free: 4.703 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003532/0.3564, allocations: 218.2 kB / 1.087 GB, free: 4.488 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002975/0.3567, allocations: 210.4 kB / 1.087 GB, free: 4.234 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004067/0.3571, allocations: 234.9 kB / 1.087 GB, free: 3.973 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.644e-06/0.3571, allocations: 0 / 1.087 GB, free: 3.973 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0005793/0.3577, allocations: 302.3 kB / 1.088 GB, free: 3.672 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.3578, allocations: 5.188 kB / 1.088 GB, free: 3.668 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.3578, allocations: 15.92 kB / 1.088 GB, free: 3.652 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.743e-06/0.3578, allocations: 4 kB / 1.088 GB, free: 3.648 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002336/0.358, allocations: 59.91 kB / 1.088 GB, free: 3.59 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.358, allocations: 4 kB / 1.088 GB, free: 3.586 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000378/0.3584, allocations: 43.81 kB / 1.088 GB, free: 3.543 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.406e-05/0.3584, allocations: 12 kB / 1.088 GB, free: 3.531 MB / 0.8419 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.0001561/0.3586, allocations: 204.1 kB / 1.088 GB, free: 3.324 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.727e-05/0.3587, allocations: 47.56 kB / 1.088 GB, free: 3.277 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005976/0.3593, allocations: 269.5 kB / 1.088 GB, free: 3.004 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/0.3593, allocations: 3.984 kB / 1.088 GB, free: 3 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.3593, allocations: 8 kB / 1.088 GB, free: 2.992 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3594, allocations: 3.984 kB / 1.088 GB, free: 2.988 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001132/0.3605, allocations: 0.7268 MB / 1.089 GB, free: 2.195 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.3605, allocations: 0 / 1.089 GB, free: 2.195 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001292/0.3606, allocations: 39.98 kB / 1.089 GB, free: 2.156 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.3607, allocations: 7.938 kB / 1.089 GB, free: 2.148 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.3607, allocations: 8 kB / 1.089 GB, free: 2.141 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.3607, allocations: 0 / 1.089 GB, free: 2.141 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.3607, allocations: 4 kB / 1.089 GB, free: 2.137 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005113/0.3612, allocations: 364.1 kB / 1.089 GB, free: 1.754 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001681/0.3614, allocations: 148.4 kB / 1.09 GB, free: 1.59 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.226e-05/0.3615, allocations: 3.984 kB / 1.09 GB, free: 1.586 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002366/0.3617, allocations: 15.98 kB / 1.09 GB, free: 1.57 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.864e-05/0.3618, allocations: 19.92 kB / 1.09 GB, free: 1.551 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.3618, allocations: 8 kB / 1.09 GB, free: 1.543 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005126/0.3623, allocations: 418.8 kB / 1.09 GB, free: 1.137 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3623, allocations: 0 / 1.09 GB, free: 1.137 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0008299/0.3632, allocations: 227.7 kB / 1.09 GB, free: 0.9141 MB / 0.8419 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.001372/0.3645, allocations: 0.4886 MB / 1.091 GB, free: 0.5547 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008536/0.3654, allocations: 319.8 kB / 1.091 GB, free: 248 kB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.3654, allocations: 0 / 1.091 GB, free: 248 kB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002528/0.3657, allocations: 87.83 kB / 1.091 GB, free: 160 kB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001665/0.3674, allocations: 254.1 kB / 1.091 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002151/0.3695, allocations: 0.9468 MB / 1.092 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007338/0.3703, allocations: 0.8507 MB / 1.093 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0005697/0.3709, allocations: 100.2 kB / 1.093 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000117/0.371, allocations: 35.44 kB / 1.093 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of SimCode: time 1.072e-06/0.371, allocations: 0 / 1.093 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of Templates: time 0.01821/0.3892, allocations: 9.897 MB / 1.103 GB, free: 4.141 MB / 0.8575 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