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.001172/0.001172, allocations: 97.78 kB / 16.02 MB, free: 76 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.00167/0.001671, allocations: 182 kB / 16.92 MB, free: 6.914 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.448/1.448, allocations: 223.3 MB / 241 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.795/2.795, allocations: 462.6 MB / 0.7371 GB, free: 15.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003641/0.0003642, allocations: 13.38 kB / 0.9034 GB, free: 36.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3538/0.3541, allocations: 159.6 MB / 1.059 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.01932/0.3735, allocations: 16.85 MB / 1.076 GB, free: 4.059 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.007232/0.3808, allocations: 4.873 MB / 1.081 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00071/0.3815, allocations: 11.94 kB / 1.081 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0009655/0.3825, allocations: 210.9 kB / 1.081 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001753/0.3843, allocations: 0.5638 MB / 1.081 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002078/0.3864, allocations: 0.6481 MB / 1.082 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001615/0.388, allocations: 1.271 MB / 1.083 GB, free: 12.48 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006157/0.3887, allocations: 288.4 kB / 1.083 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009406/0.3896, allocations: 374.3 kB / 1.084 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005788/0.3902, allocations: 306.6 kB / 1.084 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 8.078e-05/0.3903, allocations: 20 kB / 1.084 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001343/0.3916, allocations: 0.694 MB / 1.085 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0001595/0.3918, allocations: 115.6 kB / 1.085 GB, free: 10.69 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002966/0.3921, allocations: 260.2 kB / 1.085 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0009504/0.3931, allocations: 0.6197 MB / 1.086 GB, free: 9.805 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3931, allocations: 0 / 1.086 GB, free: 9.805 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.593e-06/0.3931, allocations: 0 / 1.086 GB, free: 9.805 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.347e-05/0.3931, allocations: 0 / 1.086 GB, free: 9.805 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.001432/0.3946, allocations: 0.7826 MB / 1.087 GB, free: 8.973 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.066e-05/0.3946, allocations: 12.03 kB / 1.087 GB, free: 8.961 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002064/0.3948, allocations: 60.28 kB / 1.087 GB, free: 8.902 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006927/0.3955, allocations: 453.6 kB / 1.087 GB, free: 8.418 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.204e-05/0.3956, allocations: 24.5 kB / 1.087 GB, free: 8.395 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.748e-05/0.3956, allocations: 28 kB / 1.087 GB, free: 8.367 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005434/0.3962, allocations: 286.3 kB / 1.087 GB, free: 8.07 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.3962, allocations: 3.938 kB / 1.087 GB, free: 8.066 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.787e-05/0.3962, allocations: 12 kB / 1.087 GB, free: 8.055 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/0.3963, allocations: 4 kB / 1.087 GB, free: 8.051 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004624/0.3967, allocations: 206.1 kB / 1.088 GB, free: 7.848 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.002062/0.3988, allocations: 1.472 MB / 1.089 GB, free: 6.27 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003519/0.3992, allocations: 175.6 kB / 1.089 GB, free: 6.09 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001918/0.3994, allocations: 88.8 kB / 1.089 GB, free: 6 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00173/0.4011, allocations: 1.284 MB / 1.09 GB, free: 4.523 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.752e-05/0.4012, allocations: 42.5 kB / 1.091 GB, free: 4.473 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=15): time 1.884e-06/0.4012, allocations: 0 / 1.091 GB, free: 4.473 MB / 0.8419 GB Notification: Performance of matching and sorting (n=15): time 0.0007317/0.4019, allocations: 271.4 kB / 1.091 GB, free: 4.203 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/0.4019, allocations: 55.34 kB / 1.091 GB, free: 4.137 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007156/0.4027, allocations: 0.5847 MB / 1.091 GB, free: 3.539 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.989e-05/0.4027, allocations: 33.7 kB / 1.091 GB, free: 3.5 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001991/0.4029, allocations: 268.1 kB / 1.092 GB, free: 3.234 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.442e-05/0.403, allocations: 55.2 kB / 1.092 GB, free: 3.18 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.193e-05/0.403, allocations: 29.7 kB / 1.092 GB, free: 3.145 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001319/0.4032, allocations: 358.8 kB / 1.092 GB, free: 2.785 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001933/0.4034, allocations: 84.52 kB / 1.092 GB, free: 2.699 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002838/0.4037, allocations: 210.8 kB / 1.092 GB, free: 2.445 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004141/0.4041, allocations: 250.5 kB / 1.093 GB, free: 2.168 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.4041, allocations: 0 / 1.093 GB, free: 2.168 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006284/0.4047, allocations: 322.3 kB / 1.093 GB, free: 1.848 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001041/0.4048, allocations: 161.6 kB / 1.093 GB, free: 1.652 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.4049, allocations: 0 / 1.093 GB, free: 1.652 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.4049, allocations: 4 kB / 1.093 GB, free: 1.648 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002569/0.4051, allocations: 63.91 kB / 1.093 GB, free: 1.586 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.4052, allocations: 4 kB / 1.093 GB, free: 1.582 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004071/0.4056, allocations: 59.69 kB / 1.093 GB, free: 1.523 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.107e-05/0.4056, allocations: 12 kB / 1.093 GB, free: 1.512 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.295e-06/0.4056, allocations: 4 kB / 1.093 GB, free: 1.508 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004923/0.4061, allocations: 253.3 kB / 1.093 GB, free: 1.262 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-06/0.4062, allocations: 0 / 1.093 GB, free: 1.262 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.243e-06/0.4062, allocations: 4 kB / 1.093 GB, free: 1.258 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002242/0.4064, allocations: 71.84 kB / 1.094 GB, free: 1.188 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.4064, allocations: 12.12 kB / 1.094 GB, free: 1.176 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003424/0.4068, allocations: 51.72 kB / 1.094 GB, free: 1.125 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.541e-05/0.4068, allocations: 8 kB / 1.094 GB, free: 1.117 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.0002344/0.407, allocations: 261 kB / 1.094 GB, free: 0.8516 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.524e-05/0.4071, allocations: 47.44 kB / 1.094 GB, free: 0.8047 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005904/0.4077, allocations: 278.9 kB / 1.094 GB, free: 0.5234 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/0.4078, allocations: 0 / 1.094 GB, free: 0.5234 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.4078, allocations: 0 / 1.094 GB, free: 0.5234 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.4078, allocations: 7.984 kB / 1.094 GB, free: 0.5156 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001115/0.4089, allocations: 0.7474 MB / 1.095 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.4089, allocations: 4 kB / 1.095 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001286/0.4091, allocations: 31.98 kB / 1.095 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.751e-06/0.4091, allocations: 4.188 kB / 1.095 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/0.4091, allocations: 0 / 1.095 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.4091, allocations: 4 kB / 1.095 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.4091, allocations: 0 / 1.095 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005148/0.4096, allocations: 371.2 kB / 1.095 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000174/0.4098, allocations: 156.3 kB / 1.095 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.102e-05/0.4099, allocations: 8 kB / 1.095 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002283/0.4101, allocations: 23.97 kB / 1.096 GB, free: 15.06 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.618e-05/0.4102, allocations: 11.98 kB / 1.096 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.756e-05/0.4102, allocations: 8 kB / 1.096 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0004712/0.4107, allocations: 414.8 kB / 1.096 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of sort global known variables: time 3.51e-07/0.4107, allocations: 4 kB / 1.096 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0007959/0.4115, allocations: 231.6 kB / 1.096 GB, free: 14.41 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.001272/0.4128, allocations: 0.4925 MB / 1.097 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0008202/0.4136, allocations: 341.2 kB / 1.097 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.4136, allocations: 0 / 1.097 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0002021/0.4138, allocations: 92.89 kB / 1.097 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001472/0.4153, allocations: 252.3 kB / 1.097 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001515/0.4168, allocations: 1.021 MB / 1.098 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003974/0.4172, allocations: 0.8431 MB / 1.099 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.4174, allocations: 47.3 kB / 1.099 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of SimCode: time 3.81e-07/0.4174, allocations: 0 / 1.099 GB, free: 11.41 MB / 0.8575 GB Notification: Performance of Templates: time 0.01422/0.4316, allocations: 8.499 MB / 1.107 GB, free: 2.98 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/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