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.008546/0.008546, allocations: 101.8 kB / 15.88 MB, free: 5.863 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.001829/0.001829, allocations: 195.9 kB / 16.79 MB, free: 5.805 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.387/1.387, allocations: 222.9 MB / 240.5 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.694/2.694, allocations: 461.9 MB / 0.7348 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 67.27 kB / 0.899 GB, free: 37.03 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3452/0.3466, allocations: 157.4 MB / 1.053 GB, free: 8.277 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.02125/0.3678, allocations: 17.41 MB / 1.07 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.007903/0.3758, allocations: 4.938 MB / 1.075 GB, free: 1.855 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008902/0.3767, allocations: 11.94 kB / 1.075 GB, free: 1.844 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001178/0.3779, allocations: 206.9 kB / 1.075 GB, free: 1.641 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.00216/0.3802, allocations: 0.556 MB / 1.075 GB, free: 1.082 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.002399/0.3826, allocations: 0.6481 MB / 1.076 GB, free: 452 kB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001757/0.3844, allocations: 1.271 MB / 1.077 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006464/0.385, allocations: 300.9 kB / 1.077 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001067/0.3861, allocations: 378.3 kB / 1.078 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007293/0.3869, allocations: 322.6 kB / 1.078 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001197/0.387, allocations: 20 kB / 1.078 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001535/0.3885, allocations: 0.69 MB / 1.079 GB, free: 13.47 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002036/0.3887, allocations: 123.6 kB / 1.079 GB, free: 13.35 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003777/0.3891, allocations: 230.6 kB / 1.079 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.001124/0.3903, allocations: 0.6315 MB / 1.08 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3903, allocations: 0 / 1.08 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3903, allocations: 0 / 1.08 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.095e-05/0.3903, allocations: 0 / 1.08 GB, free: 12.49 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.001793/0.3921, allocations: 0.8734 MB / 1.081 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.338e-05/0.3922, allocations: 12.02 kB / 1.081 GB, free: 11.55 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002672/0.3925, allocations: 64.28 kB / 1.081 GB, free: 11.49 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007776/0.3932, allocations: 457.5 kB / 1.081 GB, free: 11 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.914e-05/0.3933, allocations: 24.5 kB / 1.081 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.682e-05/0.3933, allocations: 28 kB / 1.081 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005698/0.3939, allocations: 286.3 kB / 1.081 GB, free: 10.66 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.3939, allocations: 3.938 kB / 1.081 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.861e-05/0.394, allocations: 8 kB / 1.081 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.394, allocations: 8 kB / 1.081 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004453/0.3944, allocations: 190.1 kB / 1.082 GB, free: 10.45 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.002188/0.3966, allocations: 1.476 MB / 1.083 GB, free: 8.863 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003542/0.397, allocations: 154.8 kB / 1.083 GB, free: 8.703 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001835/0.3972, allocations: 84.81 kB / 1.083 GB, free: 8.617 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001845/0.3991, allocations: 1.272 MB / 1.085 GB, free: 7.152 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/0.3991, allocations: 42.48 kB / 1.085 GB, free: 7.102 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=15): time 2.104e-06/0.3991, allocations: 4 kB / 1.085 GB, free: 7.098 MB / 0.8419 GB Notification: Performance of matching and sorting (n=15): time 0.0006959/0.3998, allocations: 245 kB / 1.085 GB, free: 6.852 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/0.3999, allocations: 63.28 kB / 1.085 GB, free: 6.777 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006698/0.4006, allocations: 0.5848 MB / 1.086 GB, free: 6.18 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.693e-05/0.4006, allocations: 25.7 kB / 1.086 GB, free: 6.148 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002001/0.4008, allocations: 276 kB / 1.086 GB, free: 5.875 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.43e-05/0.4009, allocations: 55.28 kB / 1.086 GB, free: 5.82 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001143/0.401, allocations: 73.88 kB / 1.086 GB, free: 5.738 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.4011, allocations: 358.8 kB / 1.086 GB, free: 5.379 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001948/0.4013, allocations: 77.94 kB / 1.086 GB, free: 5.301 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003084/0.4016, allocations: 202.8 kB / 1.087 GB, free: 5.055 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000416/0.4021, allocations: 239.2 kB / 1.087 GB, free: 4.789 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.221e-06/0.4021, allocations: 8 kB / 1.087 GB, free: 4.781 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006276/0.4027, allocations: 312.8 kB / 1.087 GB, free: 4.469 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.4028, allocations: 11.88 kB / 1.087 GB, free: 4.457 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.4028, allocations: 4 kB / 1.087 GB, free: 4.453 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.4028, allocations: 4 kB / 1.087 GB, free: 4.449 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002633/0.4031, allocations: 64.16 kB / 1.087 GB, free: 4.387 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.278e-05/0.4031, allocations: 7.984 kB / 1.087 GB, free: 4.379 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003979/0.4035, allocations: 43.58 kB / 1.087 GB, free: 4.336 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.326e-05/0.4035, allocations: 19.98 kB / 1.087 GB, free: 4.316 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003282/0.4039, allocations: 212.6 kB / 1.087 GB, free: 4.105 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002872/0.4042, allocations: 210.4 kB / 1.088 GB, free: 3.852 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000404/0.4046, allocations: 234.8 kB / 1.088 GB, free: 3.59 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.564e-06/0.4046, allocations: 4 kB / 1.088 GB, free: 3.586 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0005942/0.4052, allocations: 298.1 kB / 1.088 GB, free: 3.289 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.4052, allocations: 8 kB / 1.088 GB, free: 3.281 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.4052, allocations: 8.188 kB / 1.088 GB, free: 3.273 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.112e-06/0.4052, allocations: 8 kB / 1.088 GB, free: 3.266 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002332/0.4055, allocations: 59.91 kB / 1.088 GB, free: 3.207 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.4055, allocations: 4 kB / 1.088 GB, free: 3.203 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003891/0.4059, allocations: 39.81 kB / 1.088 GB, free: 3.164 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.101e-05/0.4059, allocations: 16 kB / 1.088 GB, free: 3.148 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.0001424/0.4061, allocations: 200.2 kB / 1.088 GB, free: 2.945 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.985e-05/0.4062, allocations: 51.38 kB / 1.088 GB, free: 2.895 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005572/0.4067, allocations: 273.5 kB / 1.089 GB, free: 2.617 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.105e-06/0.4068, allocations: 0 / 1.089 GB, free: 2.617 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.4068, allocations: 0 / 1.089 GB, free: 2.617 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.4068, allocations: 4 kB / 1.089 GB, free: 2.613 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001056/0.4078, allocations: 0.7384 MB / 1.089 GB, free: 1.809 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.481e-06/0.4079, allocations: 0 / 1.089 GB, free: 1.809 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001264/0.408, allocations: 31.92 kB / 1.09 GB, free: 1.777 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.408, allocations: 4.312 kB / 1.09 GB, free: 1.773 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.408, allocations: 7.984 kB / 1.09 GB, free: 1.766 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.408, allocations: 7.938 kB / 1.09 GB, free: 1.758 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.408, allocations: 0 / 1.09 GB, free: 1.758 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004985/0.4085, allocations: 361.4 kB / 1.09 GB, free: 1.379 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001581/0.4087, allocations: 148.3 kB / 1.09 GB, free: 1.215 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.963e-05/0.4088, allocations: 8 kB / 1.09 GB, free: 1.207 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002233/0.409, allocations: 15.92 kB / 1.09 GB, free: 1.191 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.865e-05/0.4091, allocations: 20.06 kB / 1.09 GB, free: 1.172 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.484e-05/0.4091, allocations: 8 kB / 1.09 GB, free: 1.164 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005025/0.4096, allocations: 426.8 kB / 1.09 GB, free: 0.75 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4096, allocations: 0 / 1.09 GB, free: 0.75 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0008528/0.4105, allocations: 223.7 kB / 1.091 GB, free: 0.5312 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.001337/0.4118, allocations: 0.4901 MB / 1.091 GB, free: 176 kB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007921/0.4126, allocations: 317.9 kB / 1.091 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4126, allocations: 3.938 kB / 1.091 GB, free: 15.86 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000205/0.4129, allocations: 91.83 kB / 1.092 GB, free: 15.77 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001364/0.4142, allocations: 249 kB / 1.092 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.4158, allocations: 0.9845 MB / 1.093 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003775/0.4162, allocations: 0.839 MB / 1.094 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001119/0.4163, allocations: 47.42 kB / 1.094 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of SimCode: time 5.91e-07/0.4163, allocations: 0 / 1.094 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of Templates: time 0.01388/0.4302, allocations: 8.563 MB / 1.102 GB, free: 5.098 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