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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.00154/0.00154, allocations: 100.1 kB / 16.27 MB, free: 6.414 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.001525/0.001525, allocations: 188.7 kB / 17.2 MB, free: 5.953 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.339/1.339, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.637/2.637, allocations: 482.4 MB / 0.7553 GB, free: 6.988 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001851/0.001851, allocations: 66.17 kB / 0.9245 GB, free: 15.97 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7305/0.7324, allocations: 162.2 MB / 1.083 GB, free: 1.641 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.02022/0.7526, allocations: 17.43 MB / 1.1 GB, free: 5.18 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.007814/0.7605, allocations: 4.901 MB / 1.105 GB, free: 1.734 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006875/0.7612, allocations: 13.81 kB / 1.105 GB, free: 1.73 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0009384/0.7622, allocations: 251 kB / 1.105 GB, free: 1.582 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.001709/0.7639, allocations: 0.6095 MB / 1.106 GB, free: 1.227 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.002254/0.7662, allocations: 0.7261 MB / 1.106 GB, free: 0.8711 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.001356/0.7676, allocations: 0.9555 MB / 1.107 GB, free: 444 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005426/0.7681, allocations: 341.1 kB / 1.108 GB, free: 292 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008756/0.769, allocations: 462.8 kB / 1.108 GB, free: 76 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004527/0.7695, allocations: 302.5 kB / 1.108 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 6.026e-05/0.7695, allocations: 28.81 kB / 1.108 GB, free: 15.94 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001416/0.7709, allocations: 0.7241 MB / 1.109 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001592/0.7711, allocations: 127 kB / 1.109 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002666/0.7714, allocations: 242 kB / 1.109 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001442/0.7728, allocations: 0.8673 MB / 1.11 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.7729, allocations: 4 kB / 1.11 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.493e-06/0.7729, allocations: 4 kB / 1.11 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.788e-06/0.7729, allocations: 0 / 1.11 GB, free: 15.17 MB / 0.8575 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.001399/0.7743, allocations: 0.8732 MB / 1.111 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.7743, allocations: 9 kB / 1.111 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001756/0.7745, allocations: 58.55 kB / 1.111 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006047/0.7751, allocations: 448.9 kB / 1.112 GB, free: 14.13 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.602e-05/0.7752, allocations: 29.44 kB / 1.112 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.058e-05/0.7752, allocations: 28.62 kB / 1.112 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005217/0.7757, allocations: 280.5 kB / 1.112 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.7758, allocations: 5.312 kB / 1.112 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.571e-05/0.7758, allocations: 11.27 kB / 1.112 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.7758, allocations: 5.5 kB / 1.112 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004379/0.7763, allocations: 193.9 kB / 1.112 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00223/0.7785, allocations: 1.475 MB / 1.114 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003408/0.7788, allocations: 162.2 kB / 1.114 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001851/0.779, allocations: 84.75 kB / 1.114 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001722/0.7808, allocations: 1.278 MB / 1.115 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.096e-05/0.7808, allocations: 36.45 kB / 1.115 GB, free: 11.4 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.7808, allocations: 0 / 1.115 GB, free: 11.4 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15): time 0.0006331/0.7815, allocations: 241.9 kB / 1.115 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.866e-05/0.7815, allocations: 57.59 kB / 1.115 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007069/0.7822, allocations: 0.584 MB / 1.116 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.172e-05/0.7823, allocations: 32.58 kB / 1.116 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.000226/0.7825, allocations: 265.5 kB / 1.116 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.01e-05/0.7826, allocations: 59.23 kB / 1.116 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001088/0.7827, allocations: 69.03 kB / 1.116 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001755/0.7829, allocations: 358 kB / 1.117 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001887/0.7831, allocations: 79.3 kB / 1.117 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003007/0.7834, allocations: 206 kB / 1.117 GB, free: 10.12 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004259/0.7838, allocations: 239.8 kB / 1.117 GB, free: 9.957 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.009e-06/0.7838, allocations: 0.8438 kB / 1.117 GB, free: 9.957 MB / 0.8575 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005933/0.7844, allocations: 312.7 kB / 1.117 GB, free: 9.824 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.7845, allocations: 17.75 kB / 1.117 GB, free: 9.812 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.7845, allocations: 2.156 kB / 1.117 GB, free: 9.812 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.7845, allocations: 4.891 kB / 1.117 GB, free: 9.812 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000244/0.7847, allocations: 64.5 kB / 1.118 GB, free: 9.805 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.7848, allocations: 8.406 kB / 1.118 GB, free: 9.801 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003122/0.7851, allocations: 41.41 kB / 1.118 GB, free: 9.781 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.485e-05/0.7851, allocations: 12.31 kB / 1.118 GB, free: 9.781 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003086/0.7854, allocations: 213.8 kB / 1.118 GB, free: 9.656 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002937/0.7857, allocations: 215.5 kB / 1.118 GB, free: 9.488 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003995/0.7861, allocations: 238.2 kB / 1.118 GB, free: 9.328 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.533e-06/0.7862, allocations: 192 / 1.118 GB, free: 9.328 MB / 0.8575 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0005652/0.7867, allocations: 304.5 kB / 1.119 GB, free: 9.203 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.736e-06/0.7868, allocations: 10.62 kB / 1.119 GB, free: 9.199 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.7868, allocations: 11.17 kB / 1.119 GB, free: 9.191 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.033e-06/0.7868, allocations: 7.781 kB / 1.119 GB, free: 9.188 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002169/0.787, allocations: 59.69 kB / 1.119 GB, free: 9.184 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.787, allocations: 4.844 kB / 1.119 GB, free: 9.184 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003259/0.7873, allocations: 38.2 kB / 1.119 GB, free: 9.168 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.454e-05/0.7874, allocations: 12.81 kB / 1.119 GB, free: 9.168 MB / 0.8575 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.0001384/0.7875, allocations: 202.3 kB / 1.119 GB, free: 8.969 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.563e-05/0.7876, allocations: 54.61 kB / 1.119 GB, free: 8.938 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005759/0.7882, allocations: 255.7 kB / 1.119 GB, free: 8.828 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.868e-06/0.7882, allocations: 2 kB / 1.119 GB, free: 8.828 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.7882, allocations: 1.281 kB / 1.119 GB, free: 8.828 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.7882, allocations: 0.6094 kB / 1.119 GB, free: 8.828 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001115/0.7894, allocations: 0.7368 MB / 1.12 GB, free: 8.336 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.7894, allocations: 1.125 kB / 1.12 GB, free: 8.336 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001273/0.7895, allocations: 33.3 kB / 1.12 GB, free: 8.332 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.537e-06/0.7895, allocations: 2.156 kB / 1.12 GB, free: 8.332 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.529e-05/0.7895, allocations: 11.06 kB / 1.12 GB, free: 8.324 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.7895, allocations: 2.188 kB / 1.12 GB, free: 8.324 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.7896, allocations: 2.156 kB / 1.12 GB, free: 8.324 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005306/0.7901, allocations: 359.8 kB / 1.12 GB, free: 8.074 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001596/0.7903, allocations: 142.6 kB / 1.12 GB, free: 7.945 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.464e-05/0.7903, allocations: 7.172 kB / 1.12 GB, free: 7.941 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001888/0.7905, allocations: 16.77 kB / 1.12 GB, free: 7.934 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.992e-05/0.7906, allocations: 19.55 kB / 1.12 GB, free: 7.926 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.51e-05/0.7906, allocations: 6.25 kB / 1.12 GB, free: 7.926 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0005008/0.7911, allocations: 418.7 kB / 1.121 GB, free: 7.746 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7911, allocations: 4 kB / 1.121 GB, free: 7.742 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0008153/0.7919, allocations: 222.2 kB / 1.121 GB, free: 7.703 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.001561/0.7935, allocations: 0.4972 MB / 1.122 GB, free: 7.473 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0007405/0.7943, allocations: 324.8 kB / 1.122 GB, free: 7.387 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.7943, allocations: 8 kB / 1.122 GB, free: 7.379 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001946/0.7945, allocations: 82.3 kB / 1.122 GB, free: 7.359 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001223/0.7957, allocations: 248.1 kB / 1.122 GB, free: 7.285 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.7971, allocations: 0.8424 MB / 1.123 GB, free: 6.785 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004952/0.7976, allocations: 0.8396 MB / 1.124 GB, free: 6.074 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.474e-05/0.7977, allocations: 43.59 kB / 1.124 GB, free: 6.062 MB / 0.8575 GB Notification: Performance of SimCode: time 3.71e-07/0.7977, allocations: 4 kB / 1.124 GB, free: 6.059 MB / 0.8575 GB Notification: Performance of Templates: time 0.01438/0.8121, allocations: 8.498 MB / 1.132 GB, free: 2.711 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=400 -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