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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001622/0.001622, allocations: 104.1 kB / 16.35 MB, free: 5.824 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.001608/0.001609, allocations: 190.9 kB / 17.29 MB, free: 5.48 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.444/1.444, 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 11.0.0-master/package.mo): time 2.576/2.576, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001445/0.001445, allocations: 71.59 kB / 0.8773 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3401/0.3416, allocations: 153 MB / 1.027 GB, free: 2.02 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.02251/0.3642, allocations: 17.47 MB / 1.044 GB, free: 488 kB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.007866/0.3721, allocations: 4.908 MB / 1.049 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007538/0.3729, allocations: 11.94 kB / 1.049 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000922/0.3738, allocations: 258.3 kB / 1.049 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001928/0.3758, allocations: 0.6063 MB / 1.049 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001989/0.3778, allocations: 0.7341 MB / 1.05 GB, free: 9.949 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001285/0.3791, allocations: 0.9702 MB / 1.051 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004755/0.3796, allocations: 337.7 kB / 1.051 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006731/0.3803, allocations: 422.3 kB / 1.052 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000422/0.3807, allocations: 310.6 kB / 1.052 GB, free: 7.922 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.114e-05/0.3808, allocations: 28 kB / 1.052 GB, free: 7.895 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001299/0.3821, allocations: 0.7292 MB / 1.053 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001451/0.3823, allocations: 139.5 kB / 1.053 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002236/0.3825, allocations: 238.6 kB / 1.053 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001143/0.3836, allocations: 0.8801 MB / 1.054 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3837, allocations: 0 / 1.054 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.512e-06/0.3837, allocations: 0 / 1.054 GB, free: 5.91 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.203e-05/0.3837, allocations: 0 / 1.054 GB, free: 5.91 MB / 0.8262 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.00119/0.3849, allocations: 0.8809 MB / 1.055 GB, free: 4.98 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.3849, allocations: 8.031 kB / 1.055 GB, free: 4.973 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001627/0.3851, allocations: 60.28 kB / 1.055 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006539/0.3857, allocations: 469.6 kB / 1.055 GB, free: 4.414 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.408e-05/0.3858, allocations: 24.5 kB / 1.055 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.614e-05/0.3858, allocations: 28 kB / 1.055 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004565/0.3863, allocations: 286.2 kB / 1.056 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.3863, allocations: 0 / 1.056 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.309e-05/0.3863, allocations: 12 kB / 1.056 GB, free: 4.055 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.3864, allocations: 15.94 kB / 1.056 GB, free: 4.039 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003971/0.3868, allocations: 186.1 kB / 1.056 GB, free: 3.855 MB / 0.8262 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.001768/0.3885, allocations: 1.472 MB / 1.057 GB, free: 2.277 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003011/0.3888, allocations: 166.8 kB / 1.058 GB, free: 2.105 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001658/0.389, allocations: 80.75 kB / 1.058 GB, free: 2.023 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001432/0.3905, allocations: 1.268 MB / 1.059 GB, free: 0.5625 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.236e-05/0.3905, allocations: 38.48 kB / 1.059 GB, free: 0.5156 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 1.453e-06/0.3905, allocations: 0 / 1.059 GB, free: 0.5156 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.0006013/0.3911, allocations: 253 kB / 1.059 GB, free: 268 kB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.122e-05/0.3912, allocations: 55.41 kB / 1.059 GB, free: 200 kB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006229/0.3918, allocations: 0.5848 MB / 1.06 GB, free: 15.6 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.533e-05/0.3918, allocations: 29.7 kB / 1.06 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001863/0.392, allocations: 276 kB / 1.06 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.145e-05/0.3921, allocations: 51.3 kB / 1.06 GB, free: 15.24 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.611e-05/0.3922, allocations: 69.88 kB / 1.06 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001331/0.3923, allocations: 354.8 kB / 1.061 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001848/0.3925, allocations: 85.92 kB / 1.061 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002679/0.3928, allocations: 211.2 kB / 1.061 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003698/0.3931, allocations: 234.9 kB / 1.061 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.3932, allocations: 0 / 1.061 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005441/0.3937, allocations: 312.9 kB / 1.061 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.698e-05/0.3937, allocations: 11.94 kB / 1.061 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.3937, allocations: 0 / 1.061 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.3938, allocations: 4.094 kB / 1.061 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002474/0.394, allocations: 63.84 kB / 1.061 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.394, allocations: 7.984 kB / 1.061 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003033/0.3943, allocations: 47.52 kB / 1.061 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.52e-05/0.3944, allocations: 20.06 kB / 1.061 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002883/0.3947, allocations: 224.5 kB / 1.062 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002523/0.395, allocations: 209.6 kB / 1.062 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003662/0.3953, allocations: 235.2 kB / 1.062 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.946e-06/0.3953, allocations: 4 kB / 1.062 GB, free: 13 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0005292/0.3959, allocations: 299.5 kB / 1.062 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.063e-05/0.3959, allocations: 8 kB / 1.062 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.3959, allocations: 7.922 kB / 1.062 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.109e-06/0.3959, allocations: 4 kB / 1.062 GB, free: 12.69 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002195/0.3961, allocations: 63.91 kB / 1.062 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.3962, allocations: 7.938 kB / 1.062 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003166/0.3965, allocations: 35.81 kB / 1.063 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.464e-05/0.3965, allocations: 20.12 kB / 1.063 GB, free: 12.56 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.0001179/0.3966, allocations: 200.1 kB / 1.063 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.546e-05/0.3967, allocations: 47.38 kB / 1.063 GB, free: 12.31 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005289/0.3972, allocations: 261.6 kB / 1.063 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.281e-06/0.3973, allocations: 0 / 1.063 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.3973, allocations: 4 kB / 1.063 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.3973, allocations: 4 kB / 1.063 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009961/0.3983, allocations: 0.7317 MB / 1.064 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.3983, allocations: 0 / 1.064 GB, free: 11.24 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001201/0.3984, allocations: 31.97 kB / 1.064 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.3984, allocations: 8.125 kB / 1.064 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.3985, allocations: 4 kB / 1.064 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.3985, allocations: 0 / 1.064 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3985, allocations: 0 / 1.064 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000458/0.3989, allocations: 370.1 kB / 1.064 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001562/0.3991, allocations: 144.4 kB / 1.064 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.5e-05/0.3992, allocations: 8 kB / 1.064 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.3994, allocations: 11.98 kB / 1.064 GB, free: 10.62 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.703e-05/0.3995, allocations: 15.92 kB / 1.064 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.719e-05/0.3995, allocations: 11.98 kB / 1.064 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004302/0.3999, allocations: 422.8 kB / 1.065 GB, free: 10.19 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3999, allocations: 3.938 kB / 1.065 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0007188/0.4006, allocations: 223.8 kB / 1.065 GB, free: 9.965 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.001127/0.4018, allocations: 499 kB / 1.065 GB, free: 9.609 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0006744/0.4025, allocations: 323.4 kB / 1.066 GB, free: 9.297 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.4025, allocations: 0 / 1.066 GB, free: 9.297 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000181/0.4027, allocations: 87.89 kB / 1.066 GB, free: 9.211 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/0.4038, allocations: 251 kB / 1.066 GB, free: 8.977 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001254/0.405, allocations: 0.8091 MB / 1.067 GB, free: 8.125 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003657/0.4054, allocations: 0.8468 MB / 1.068 GB, free: 7.25 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002792/0.4057, allocations: 104.2 kB / 1.068 GB, free: 7.145 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.474e-05/0.4058, allocations: 43.31 kB / 1.068 GB, free: 7.102 MB / 0.8419 GB Notification: Performance of SimCode: time 3.11e-07/0.4058, allocations: 0 / 1.068 GB, free: 7.102 MB / 0.8419 GB Notification: Performance of Templates: time 0.5576/0.9634, allocations: 10.17 MB / 1.078 GB, free: 51.79 MB / 0.8419 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 -s cvode -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/jenkins1/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