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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002001/0.002001, allocations: 80.3 kB / 19.18 MB, free: 2.52 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002741/0.002741, allocations: 161 kB / 22.45 MB, free: 5.375 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.583/1.583, allocations: 177.1 MB / 202.8 MB, free: 9.168 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.027/3.027, allocations: 389 MB / 0.633 GB, free: 1.008 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|valTab.m_flow|kv.y",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.454e-06/2.454e-06, allocations: 0 / 1 GB, free: 7.297 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.659e-05/3.904e-05, allocations: 9.938 kB / 1 GB, free: 7.289 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.03207/0.03211, allocations: 16.2 MB / 1.016 GB, free: 7.023 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.01291/0.04502, allocations: 4.659 MB / 1.021 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009852/0.046, allocations: 19.81 kB / 1.021 GB, free: 2.324 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001613/0.04761, allocations: 258.2 kB / 1.021 GB, free: 2.07 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.003141/0.05076, allocations: 0.6814 MB / 1.021 GB, free: 1.387 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.003705/0.05446, allocations: 0.7673 MB / 1.022 GB, free: 0.625 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.002236/0.0567, allocations: 0.9583 MB / 1.023 GB, free: 15.66 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001043/0.05774, allocations: 276.8 kB / 1.023 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002631/0.06037, allocations: 0.5879 MB / 1.024 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007193/0.06109, allocations: 267.2 kB / 1.024 GB, free: 14.54 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001037/0.06119, allocations: 28 kB / 1.024 GB, free: 14.51 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002087/0.06328, allocations: 0.6197 MB / 1.025 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002576/0.06354, allocations: 139.4 kB / 1.025 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0003347/0.06387, allocations: 155.6 kB / 1.025 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002104/0.06598, allocations: 0.8995 MB / 1.026 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.06598, allocations: 4 kB / 1.026 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.283e-06/0.06598, allocations: 0 / 1.026 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.082e-05/0.066, allocations: 0 / 1.026 GB, free: 12.69 MB / 0.9825 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.00207/0.06807, allocations: 0.8149 MB / 1.027 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 6.109e-05/0.06813, allocations: 8.031 kB / 1.027 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003318/0.06846, allocations: 64.56 kB / 1.027 GB, free: 11.77 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001139/0.0696, allocations: 402.2 kB / 1.027 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.303e-05/0.06964, allocations: 20.88 kB / 1.027 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.376e-05/0.06972, allocations: 28.38 kB / 1.027 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008418/0.07056, allocations: 289.2 kB / 1.028 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.455e-05/0.07058, allocations: 3.938 kB / 1.028 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.09e-05/0.07062, allocations: 16 kB / 1.028 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.07064, allocations: 4 kB / 1.028 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007163/0.07135, allocations: 189.8 kB / 1.028 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002743/0.07409, allocations: 1.159 MB / 1.029 GB, free: 9.586 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005296/0.07462, allocations: 166.6 kB / 1.029 GB, free: 9.414 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002816/0.07491, allocations: 76.8 kB / 1.029 GB, free: 9.336 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001878/0.07678, allocations: 0.5273 MB / 1.03 GB, free: 8.789 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.008e-05/0.07683, allocations: 34.56 kB / 1.03 GB, free: 8.746 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=15): time 2.114e-06/0.07684, allocations: 0 / 1.03 GB, free: 8.746 MB / 0.9825 GB Notification: Performance of matching and sorting (n=15): time 0.00102/0.07786, allocations: 253.2 kB / 1.03 GB, free: 8.492 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.813e-05/0.07792, allocations: 55.34 kB / 1.03 GB, free: 8.426 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001028/0.07895, allocations: 0.5566 MB / 1.031 GB, free: 7.855 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 5.155e-05/0.079, allocations: 37.7 kB / 1.031 GB, free: 7.812 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003415/0.07935, allocations: 264.3 kB / 1.031 GB, free: 7.547 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 7.64e-05/0.07942, allocations: 59.52 kB / 1.031 GB, free: 7.488 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001736/0.0796, allocations: 69.92 kB / 1.031 GB, free: 7.41 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002763/0.07987, allocations: 358.8 kB / 1.031 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000306/0.08018, allocations: 77.94 kB / 1.031 GB, free: 6.973 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000722/0.0809, allocations: 438.1 kB / 1.032 GB, free: 6.441 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007218/0.08162, allocations: 238.9 kB / 1.032 GB, free: 6.176 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.08163, allocations: 0 / 1.032 GB, free: 6.176 MB / 0.9825 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001004/0.08263, allocations: 313 kB / 1.032 GB, free: 5.859 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.13e-05/0.08266, allocations: 4 kB / 1.032 GB, free: 5.855 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.563e-05/0.08268, allocations: 7.938 kB / 1.032 GB, free: 5.848 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.122e-05/0.08271, allocations: 4 kB / 1.032 GB, free: 5.844 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004438/0.08315, allocations: 63.89 kB / 1.032 GB, free: 5.781 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.273e-05/0.08317, allocations: 7.938 kB / 1.032 GB, free: 5.773 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005099/0.08368, allocations: 48.02 kB / 1.032 GB, free: 5.727 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.494e-05/0.08374, allocations: 11.98 kB / 1.032 GB, free: 5.715 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005429/0.08428, allocations: 220.6 kB / 1.033 GB, free: 5.496 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006558/0.08494, allocations: 442.8 kB / 1.033 GB, free: 4.961 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006691/0.08561, allocations: 231.6 kB / 1.033 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.385e-06/0.08561, allocations: 192 / 1.033 GB, free: 4.703 MB / 0.9825 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.0009803/0.08659, allocations: 313.4 kB / 1.034 GB, free: 4.391 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.08661, allocations: 7.938 kB / 1.034 GB, free: 4.383 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.08661, allocations: 4 kB / 1.034 GB, free: 4.379 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.345e-06/0.08662, allocations: 4 kB / 1.034 GB, free: 4.375 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000387/0.08701, allocations: 63.89 kB / 1.034 GB, free: 4.312 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.125e-05/0.08702, allocations: 4 kB / 1.034 GB, free: 4.309 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005305/0.08755, allocations: 43.8 kB / 1.034 GB, free: 4.266 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.693e-05/0.08759, allocations: 8 kB / 1.034 GB, free: 4.258 MB / 0.9825 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.0002227/0.08781, allocations: 208.2 kB / 1.034 GB, free: 4.047 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001302/0.08794, allocations: 43.72 kB / 1.034 GB, free: 4.004 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009133/0.08885, allocations: 267.6 kB / 1.034 GB, free: 3.738 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/0.08887, allocations: 3.984 kB / 1.034 GB, free: 3.734 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.728e-06/0.08888, allocations: 3.938 kB / 1.034 GB, free: 3.73 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.08888, allocations: 0 / 1.034 GB, free: 3.73 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00165/0.09053, allocations: 0.6443 MB / 1.035 GB, free: 3.039 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.059e-06/0.09054, allocations: 0 / 1.035 GB, free: 3.039 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002172/0.09075, allocations: 35.92 kB / 1.035 GB, free: 3.004 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.034e-05/0.09076, allocations: 7.938 kB / 1.035 GB, free: 2.996 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.09078, allocations: 0 / 1.035 GB, free: 2.996 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.196e-06/0.09079, allocations: 4 kB / 1.035 GB, free: 2.992 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.09079, allocations: 0 / 1.035 GB, free: 2.992 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000867/0.09166, allocations: 358.6 kB / 1.035 GB, free: 2.613 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002101/0.09187, allocations: 71.52 kB / 1.035 GB, free: 2.543 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.028e-05/0.09196, allocations: 8 kB / 1.035 GB, free: 2.535 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003274/0.09229, allocations: 7.984 kB / 1.035 GB, free: 2.527 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/0.09241, allocations: 23.91 kB / 1.035 GB, free: 2.504 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.122e-05/0.09243, allocations: 4 kB / 1.035 GB, free: 2.5 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0007854/0.09321, allocations: 398.8 kB / 1.036 GB, free: 2.113 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.2e-07/0.09321, allocations: 0 / 1.036 GB, free: 2.113 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001379/0.09459, allocations: 235.5 kB / 1.036 GB, free: 1.883 MB / 0.9825 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.002569/0.09716, allocations: 0.5063 MB / 1.036 GB, free: 1.523 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001171/0.09833, allocations: 306.3 kB / 1.037 GB, free: 1.227 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.09834, allocations: 0 / 1.037 GB, free: 1.227 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003183/0.09865, allocations: 88.95 kB / 1.037 GB, free: 1.141 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001748/0.1004, allocations: 217.4 kB / 1.037 GB, free: 0.9297 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002236/0.1026, allocations: 0.7827 MB / 1.038 GB, free: 108 kB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004286/0.1031, allocations: 246.1 kB / 1.038 GB, free: 15.84 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0004463/0.1035, allocations: 95.33 kB / 1.038 GB, free: 15.74 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001292/0.1036, allocations: 32.5 kB / 1.038 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of SimCode: time 1.142e-06/0.1036, allocations: 0 / 1.038 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of Templates: time 0.02972/0.1334, allocations: 9.979 MB / 1.048 GB, free: 5.941 MB / 0.9981 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.makefile [Timeout 300] (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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1) [Timeout 800] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.433976009488106]