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: 117.1 kB / 16.37 MB, free: 6.012 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.001814/0.001814, allocations: 190.9 kB / 17.31 MB, free: 5.613 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.368/1.368, 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.0-master/package.mo): time 2.504/2.504, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001258, allocations: 60.31 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.3003, allocations: 153 MB / 1.027 GB, free: 2.027 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.01815/0.3185, allocations: 17.47 MB / 1.044 GB, free: 500 kB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.007146/0.3257, allocations: 4.906 MB / 1.049 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006468/0.3264, allocations: 19.81 kB / 1.049 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0008762/0.3273, allocations: 254.4 kB / 1.049 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.001566/0.3289, allocations: 0.6062 MB / 1.049 GB, free: 10.69 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001977/0.3309, allocations: 0.7382 MB / 1.05 GB, free: 9.957 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001339/0.3322, allocations: 0.9664 MB / 1.051 GB, free: 8.984 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005079/0.3328, allocations: 337.7 kB / 1.051 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006854/0.3335, allocations: 422.2 kB / 1.052 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004321/0.3339, allocations: 310.7 kB / 1.052 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.822e-05/0.334, allocations: 35.94 kB / 1.052 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001323/0.3353, allocations: 0.7253 MB / 1.053 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.3355, allocations: 127.6 kB / 1.053 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002321/0.3357, allocations: 246.6 kB / 1.053 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001199/0.3369, allocations: 0.8763 MB / 1.054 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.3369, allocations: 0 / 1.054 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.933e-06/0.3369, allocations: 0 / 1.054 GB, free: 5.926 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.298e-06/0.337, allocations: 0 / 1.054 GB, free: 5.926 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.001237/0.3382, allocations: 0.8797 MB / 1.055 GB, free: 4.996 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.3382, allocations: 8.031 kB / 1.055 GB, free: 4.988 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001763/0.3384, allocations: 64.27 kB / 1.055 GB, free: 4.926 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007287/0.3392, allocations: 469.6 kB / 1.055 GB, free: 4.426 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.624e-05/0.3392, allocations: 32.44 kB / 1.055 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.176e-05/0.3392, allocations: 28 kB / 1.056 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004818/0.3397, allocations: 282.3 kB / 1.056 GB, free: 4.074 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.018e-05/0.3398, allocations: 4 kB / 1.056 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.191e-05/0.3398, allocations: 8 kB / 1.056 GB, free: 4.062 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.917e-06/0.3398, allocations: 8 kB / 1.056 GB, free: 4.055 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004059/0.3402, allocations: 190.1 kB / 1.056 GB, free: 3.867 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.00191/0.3421, allocations: 1.468 MB / 1.057 GB, free: 2.293 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003573/0.3425, allocations: 166.8 kB / 1.058 GB, free: 2.121 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000175/0.3427, allocations: 88.8 kB / 1.058 GB, free: 2.031 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001555/0.3442, allocations: 1.264 MB / 1.059 GB, free: 0.5742 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.3443, allocations: 38.5 kB / 1.059 GB, free: 0.5273 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=15): time 1.913e-06/0.3443, allocations: 0 / 1.059 GB, free: 0.5273 MB / 0.8262 GB Notification: Performance of matching and sorting (n=15): time 0.0006893/0.345, allocations: 253 kB / 1.059 GB, free: 280 kB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.474e-05/0.345, allocations: 51.41 kB / 1.059 GB, free: 216 kB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006714/0.3457, allocations: 0.5809 MB / 1.06 GB, free: 15.62 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.254e-05/0.3458, allocations: 33.7 kB / 1.06 GB, free: 15.58 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002/0.346, allocations: 272 kB / 1.06 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.754e-05/0.346, allocations: 55.23 kB / 1.06 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.3461, allocations: 73.88 kB / 1.06 GB, free: 15.18 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001546/0.3463, allocations: 362.8 kB / 1.061 GB, free: 14.81 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001824/0.3465, allocations: 77.94 kB / 1.061 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002803/0.3468, allocations: 219.2 kB / 1.061 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003994/0.3472, allocations: 238.8 kB / 1.061 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.3472, allocations: 0 / 1.061 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005944/0.3478, allocations: 306.7 kB / 1.061 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.528e-05/0.3478, allocations: 11.94 kB / 1.061 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.3478, allocations: 0 / 1.061 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.3479, allocations: 4 kB / 1.061 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002633/0.3481, allocations: 71.83 kB / 1.061 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.3481, allocations: 4 kB / 1.061 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003295/0.3485, allocations: 47.83 kB / 1.061 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.006e-05/0.3485, allocations: 19.98 kB / 1.061 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003269/0.3489, allocations: 212.6 kB / 1.062 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002708/0.3491, allocations: 205.6 kB / 1.062 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003797/0.3495, allocations: 233.1 kB / 1.062 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.542e-06/0.3495, allocations: 0 / 1.062 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0005473/0.3501, allocations: 311.2 kB / 1.062 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.113e-05/0.3501, allocations: 4 kB / 1.062 GB, free: 12.71 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.3501, allocations: 7.938 kB / 1.062 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.891e-06/0.3501, allocations: 4 kB / 1.062 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000226/0.3504, allocations: 63.91 kB / 1.062 GB, free: 12.64 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.3504, allocations: 4 kB / 1.062 GB, free: 12.63 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003284/0.3507, allocations: 40.06 kB / 1.063 GB, free: 12.59 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.501e-05/0.3508, allocations: 8 kB / 1.063 GB, free: 12.59 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.0001564/0.3509, allocations: 200.1 kB / 1.063 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.656e-05/0.351, allocations: 51.38 kB / 1.063 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005941/0.3516, allocations: 269.5 kB / 1.063 GB, free: 12.06 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-05/0.3516, allocations: 8 kB / 1.063 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.3516, allocations: 0 / 1.063 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.3517, allocations: 3.984 kB / 1.063 GB, free: 12.05 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001145/0.3528, allocations: 0.7239 MB / 1.064 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.3528, allocations: 4 kB / 1.064 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000132/0.353, allocations: 36.05 kB / 1.064 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.353, allocations: 192 / 1.064 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.906e-05/0.353, allocations: 8 kB / 1.064 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.353, allocations: 0 / 1.064 GB, free: 11.21 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.353, allocations: 4 kB / 1.064 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00048/0.3535, allocations: 371.4 kB / 1.064 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001768/0.3537, allocations: 148.4 kB / 1.064 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.684e-05/0.3538, allocations: 7.922 kB / 1.064 GB, free: 10.64 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.354, allocations: 15.98 kB / 1.064 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.31e-05/0.354, allocations: 16.11 kB / 1.064 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.725e-05/0.3541, allocations: 12 kB / 1.064 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004829/0.3546, allocations: 418.8 kB / 1.065 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2e-07/0.3546, allocations: 0 / 1.065 GB, free: 10.2 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0008227/0.3554, allocations: 223.8 kB / 1.065 GB, free: 9.977 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.001213/0.3566, allocations: 499.5 kB / 1.065 GB, free: 9.617 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0007456/0.3574, allocations: 324 kB / 1.066 GB, free: 9.301 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.3574, allocations: 0 / 1.066 GB, free: 9.301 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0001848/0.3576, allocations: 87.83 kB / 1.066 GB, free: 9.215 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00113/0.3587, allocations: 259 kB / 1.066 GB, free: 8.973 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001417/0.3601, allocations: 0.8053 MB / 1.067 GB, free: 8.125 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000401/0.3606, allocations: 0.8432 MB / 1.068 GB, free: 7.254 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003229/0.3609, allocations: 100.2 kB / 1.068 GB, free: 7.152 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.427e-05/0.361, allocations: 43.42 kB / 1.068 GB, free: 7.109 MB / 0.8419 GB Notification: Performance of SimCode: time 2.6e-07/0.361, allocations: 0 / 1.068 GB, free: 7.109 MB / 0.8419 GB Notification: Performance of Templates: time 0.4941/0.8551, allocations: 10.17 MB / 1.078 GB, free: 51.73 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 gbode -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