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.001622/0.001623, allocations: 110.7 kB / 16.41 MB, free: 6.438 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.001752/0.001752, allocations: 189.6 kB / 17.34 MB, free: 5.742 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.392/1.392, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.614/2.614, allocations: 461.9 MB / 0.7355 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 67.89 kB / 1.055 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9448/0.9463, allocations: 157.4 MB / 1.208 GB, free: 13.6 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.02103/0.9674, allocations: 17.46 MB / 1.225 GB, free: 12.08 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.007333/0.9747, allocations: 4.912 MB / 1.23 GB, free: 7.148 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00067/0.9754, allocations: 15.88 kB / 1.23 GB, free: 7.133 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0009548/0.9764, allocations: 266.4 kB / 1.231 GB, free: 6.871 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.001734/0.9782, allocations: 0.6062 MB / 1.231 GB, free: 6.262 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.002109/0.9803, allocations: 0.7234 MB / 1.232 GB, free: 5.547 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.001493/0.9818, allocations: 0.978 MB / 1.233 GB, free: 4.566 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006256/0.9825, allocations: 332.8 kB / 1.233 GB, free: 4.242 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009597/0.9834, allocations: 426.3 kB / 1.234 GB, free: 3.824 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005713/0.984, allocations: 310.6 kB / 1.234 GB, free: 3.52 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 9.007e-05/0.9841, allocations: 32 kB / 1.234 GB, free: 3.488 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001357/0.9855, allocations: 0.7253 MB / 1.235 GB, free: 2.762 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001735/0.9857, allocations: 135.6 kB / 1.235 GB, free: 2.629 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0003608/0.986, allocations: 242.6 kB / 1.235 GB, free: 2.391 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.00156/0.9876, allocations: 0.8742 MB / 1.236 GB, free: 1.516 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.9876, allocations: 0 / 1.236 GB, free: 1.516 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.072e-06/0.9876, allocations: 0 / 1.236 GB, free: 1.516 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 2.148e-05/0.9876, allocations: 0 / 1.236 GB, free: 1.516 MB / 0.9512 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.001456/0.9891, allocations: 0.8835 MB / 1.237 GB, free: 0.5781 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.9892, allocations: 8.031 kB / 1.237 GB, free: 0.5703 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002132/0.9894, allocations: 60.28 kB / 1.237 GB, free: 0.5117 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007747/0.9902, allocations: 461.7 kB / 1.237 GB, free: 20 kB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.566e-05/0.9902, allocations: 24.7 kB / 1.237 GB, free: 15.99 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.796e-05/0.9903, allocations: 28 kB / 1.237 GB, free: 15.96 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005772/0.9909, allocations: 286.2 kB / 1.237 GB, free: 15.67 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.9909, allocations: 4 kB / 1.237 GB, free: 15.66 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.577e-05/0.9909, allocations: 12 kB / 1.237 GB, free: 15.65 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.1e-05/0.9909, allocations: 8 kB / 1.237 GB, free: 15.64 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004365/0.9914, allocations: 194 kB / 1.238 GB, free: 15.46 MB / 0.9669 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.001943/0.9933, allocations: 1.468 MB / 1.239 GB, free: 13.88 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003302/0.9937, allocations: 166.8 kB / 1.239 GB, free: 13.7 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001818/0.9939, allocations: 80.72 kB / 1.239 GB, free: 13.62 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001636/0.9955, allocations: 1.28 MB / 1.241 GB, free: 12.15 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.717e-05/0.9955, allocations: 30.56 kB / 1.241 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=15): time 1.753e-06/0.9956, allocations: 0 / 1.241 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of matching and sorting (n=15): time 0.0006933/0.9963, allocations: 257 kB / 1.241 GB, free: 11.85 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.214e-05/0.9963, allocations: 55.41 kB / 1.241 GB, free: 11.79 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006897/0.997, allocations: 0.5809 MB / 1.241 GB, free: 11.19 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.999e-05/0.997, allocations: 33.7 kB / 1.242 GB, free: 11.15 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002074/0.9973, allocations: 268.1 kB / 1.242 GB, free: 10.89 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.371e-05/0.9973, allocations: 55.2 kB / 1.242 GB, free: 10.83 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/0.9974, allocations: 65.97 kB / 1.242 GB, free: 10.76 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001337/0.9976, allocations: 358.7 kB / 1.242 GB, free: 10.4 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000197/0.9978, allocations: 89.86 kB / 1.242 GB, free: 10.31 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002938/0.9981, allocations: 202.8 kB / 1.243 GB, free: 10.06 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004241/0.9985, allocations: 238.7 kB / 1.243 GB, free: 9.797 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.9985, allocations: 0 / 1.243 GB, free: 9.797 MB / 0.9669 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006327/0.9992, allocations: 319.1 kB / 1.243 GB, free: 9.48 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.9992, allocations: 11.94 kB / 1.243 GB, free: 9.469 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.9992, allocations: 0 / 1.243 GB, free: 9.469 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.9992, allocations: 4 kB / 1.243 GB, free: 9.465 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002551/0.9995, allocations: 60 kB / 1.243 GB, free: 9.406 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.9995, allocations: 7.938 kB / 1.243 GB, free: 9.398 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003395/0.9998, allocations: 55.89 kB / 1.243 GB, free: 9.344 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.56e-05/0.9999, allocations: 16 kB / 1.243 GB, free: 9.328 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003067/1, allocations: 212.6 kB / 1.243 GB, free: 9.117 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002822/1, allocations: 214.9 kB / 1.244 GB, free: 8.859 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003913/1.001, allocations: 229.2 kB / 1.244 GB, free: 8.602 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.851e-06/1.001, allocations: 7.984 kB / 1.244 GB, free: 8.594 MB / 0.9669 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0005989/1.002, allocations: 307 kB / 1.244 GB, free: 8.289 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/1.002, allocations: 9.875 kB / 1.244 GB, free: 8.281 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/1.002, allocations: 4 kB / 1.244 GB, free: 8.277 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.288e-06/1.002, allocations: 7.938 kB / 1.244 GB, free: 8.27 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002175/1.002, allocations: 59.89 kB / 1.244 GB, free: 8.211 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.368e-06/1.002, allocations: 4 kB / 1.244 GB, free: 8.207 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003431/1.002, allocations: 39.98 kB / 1.244 GB, free: 8.168 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.371e-05/1.002, allocations: 19.98 kB / 1.244 GB, free: 8.148 MB / 0.9669 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.0001299/1.002, allocations: 200.1 kB / 1.244 GB, free: 7.945 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.328e-05/1.002, allocations: 51.28 kB / 1.244 GB, free: 7.895 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005838/1.003, allocations: 257.7 kB / 1.245 GB, free: 7.637 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.187e-06/1.003, allocations: 4 kB / 1.245 GB, free: 7.633 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/1.003, allocations: 4 kB / 1.245 GB, free: 7.629 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/1.003, allocations: 0 / 1.245 GB, free: 7.629 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001037/1.004, allocations: 0.7316 MB / 1.245 GB, free: 6.828 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/1.004, allocations: 4 kB / 1.245 GB, free: 6.824 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000128/1.004, allocations: 32.09 kB / 1.245 GB, free: 6.793 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/1.004, allocations: 4 kB / 1.245 GB, free: 6.789 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/1.004, allocations: 8 kB / 1.246 GB, free: 6.781 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.867e-06/1.004, allocations: 3.938 kB / 1.246 GB, free: 6.777 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/1.004, allocations: 4 kB / 1.246 GB, free: 6.773 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000504/1.005, allocations: 353.3 kB / 1.246 GB, free: 6.402 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001512/1.005, allocations: 140.5 kB / 1.246 GB, free: 6.246 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.309e-05/1.005, allocations: 4.188 kB / 1.246 GB, free: 6.242 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002039/1.005, allocations: 19.98 kB / 1.246 GB, free: 6.223 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.733e-05/1.005, allocations: 15.86 kB / 1.246 GB, free: 6.207 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.626e-05/1.005, allocations: 15.94 kB / 1.246 GB, free: 6.191 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0004734/1.006, allocations: 422.8 kB / 1.246 GB, free: 5.781 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/1.006, allocations: 0 / 1.246 GB, free: 5.781 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0007967/1.007, allocations: 231.7 kB / 1.247 GB, free: 5.555 MB / 0.9669 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.001251/1.008, allocations: 499.7 kB / 1.247 GB, free: 5.199 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0007611/1.009, allocations: 324.2 kB / 1.247 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/1.009, allocations: 0 / 1.247 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001956/1.009, allocations: 91.83 kB / 1.248 GB, free: 4.793 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001199/1.01, allocations: 254 kB / 1.248 GB, free: 4.551 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001455/1.012, allocations: 0.8305 MB / 1.249 GB, free: 3.672 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004536/1.012, allocations: 0.8428 MB / 1.249 GB, free: 2.801 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/1.012, allocations: 47.42 kB / 1.249 GB, free: 2.758 MB / 0.9669 GB Notification: Performance of SimCode: time 3.51e-07/1.012, allocations: 0 / 1.249 GB, free: 2.758 MB / 0.9669 GB Notification: Performance of Templates: time 0.01443/1.027, allocations: 8.56 MB / 1.258 GB, free: 10.28 MB / 0.9825 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