Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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.002094/0.002094, allocations: 78.41 kB / 19.18 MB, free: 2.527 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.002601/0.002601, allocations: 170.6 kB / 22.46 MB, free: 5.359 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.655/1.655, allocations: 177.1 MB / 202.8 MB, free: 9.176 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.024/3.024, allocations: 389 MB / 0.633 GB, free: 1.004 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.TwoWayValvesTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|valTab.m_flow|valLin.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|valTab.m_flow|valLin.m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.086e-06/3.086e-06, allocations: 0 / 1 GB, free: 7.289 MB / 0.9512 GB Notification: Performance of FrontEnd - Absyn->SCode: time 5.022e-05/5.331e-05, allocations: 10.16 kB / 1 GB, free: 7.277 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01959/0.01964, allocations: 14.38 MB / 1.014 GB, free: 8.836 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.007536/0.02718, allocations: 4.091 MB / 1.018 GB, free: 4.738 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005686/0.02775, allocations: 19.81 kB / 1.018 GB, free: 4.719 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001157/0.0289, allocations: 266.2 kB / 1.018 GB, free: 4.457 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001992/0.0309, allocations: 0.6899 MB / 1.019 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.00229/0.03319, allocations: 0.7503 MB / 1.02 GB, free: 3.023 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.001546/0.03473, allocations: 1.001 MB / 1.021 GB, free: 2.016 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004726/0.0352, allocations: 260.4 kB / 1.021 GB, free: 1.754 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001068/0.03627, allocations: 0.5879 MB / 1.022 GB, free: 1.164 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004563/0.03673, allocations: 267.2 kB / 1.022 GB, free: 0.9023 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 6.96e-05/0.0368, allocations: 31.94 kB / 1.022 GB, free: 0.8711 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001118/0.03792, allocations: 0.5456 MB / 1.022 GB, free: 332 kB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001465/0.03806, allocations: 99.55 kB / 1.023 GB, free: 232 kB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002038/0.03827, allocations: 147.6 kB / 1.023 GB, free: 84 kB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001318/0.03958, allocations: 0.7827 MB / 1.023 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.03959, allocations: 0 / 1.023 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.142e-06/0.03959, allocations: 0 / 1.023 GB, free: 15.3 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.015e-06/0.0396, allocations: 0 / 1.023 GB, free: 15.3 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: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.001394/0.04099, allocations: 0.7684 MB / 1.024 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.04104, allocations: 8.031 kB / 1.024 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000137/0.04117, allocations: 56.61 kB / 1.024 GB, free: 14.43 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007392/0.04191, allocations: 366.4 kB / 1.025 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.121e-05/0.04194, allocations: 20.88 kB / 1.025 GB, free: 14.03 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.419e-05/0.042, allocations: 31.94 kB / 1.025 GB, free: 14 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004696/0.04247, allocations: 212 kB / 1.025 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.04248, allocations: 3.938 kB / 1.025 GB, free: 13.79 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.391e-05/0.04251, allocations: 12 kB / 1.025 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.04252, allocations: 7.938 kB / 1.025 GB, free: 13.77 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004163/0.04294, allocations: 165.9 kB / 1.025 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001626/0.04457, allocations: 0.687 MB / 1.026 GB, free: 12.88 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003291/0.04489, allocations: 126.6 kB / 1.026 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001755/0.04507, allocations: 68.81 kB / 1.026 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001582/0.04523, allocations: 31.91 kB / 1.026 GB, free: 12.64 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.779e-05/0.04528, allocations: 42.5 kB / 1.026 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=14): time 1.422e-06/0.04528, allocations: 0 / 1.026 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14): time 0.0006618/0.04594, allocations: 233.3 kB / 1.026 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.458e-05/0.04599, allocations: 55.41 kB / 1.026 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005325/0.04653, allocations: 433.9 kB / 1.027 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.084e-05/0.04657, allocations: 33.7 kB / 1.027 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002141/0.04678, allocations: 228.6 kB / 1.027 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.883e-05/0.04683, allocations: 51.53 kB / 1.027 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.04694, allocations: 57.69 kB / 1.027 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001771/0.04711, allocations: 350.8 kB / 1.027 GB, free: 11.13 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001979/0.04731, allocations: 80.75 kB / 1.027 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004807/0.04779, allocations: 408.5 kB / 1.028 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000382/0.04817, allocations: 164.6 kB / 1.028 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.04818, allocations: 0 / 1.028 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005605/0.04874, allocations: 253.1 kB / 1.028 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.04875, allocations: 4 kB / 1.028 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.04876, allocations: 8 kB / 1.028 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.91e-05/0.04878, allocations: 96 / 1.028 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002464/0.04903, allocations: 47.91 kB / 1.028 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.04904, allocations: 3.984 kB / 1.028 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002988/0.04933, allocations: 39.81 kB / 1.028 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.496e-05/0.04937, allocations: 15.92 kB / 1.028 GB, free: 10.02 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003062/0.04968, allocations: 188.1 kB / 1.029 GB, free: 9.832 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000429/0.0501, allocations: 426.4 kB / 1.029 GB, free: 9.32 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003693/0.05047, allocations: 167.6 kB / 1.029 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.172e-06/0.05047, allocations: 0 / 1.029 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0005398/0.05101, allocations: 253.2 kB / 1.029 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.075e-05/0.05103, allocations: 12 kB / 1.029 GB, free: 8.879 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.127e-06/0.05103, allocations: 4 kB / 1.029 GB, free: 8.875 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.185e-06/0.05103, allocations: 0 / 1.029 GB, free: 8.875 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002077/0.05124, allocations: 47.91 kB / 1.029 GB, free: 8.828 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.05125, allocations: 4 kB / 1.029 GB, free: 8.824 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003223/0.05157, allocations: 31.86 kB / 1.029 GB, free: 8.793 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.638e-05/0.05159, allocations: 12 kB / 1.029 GB, free: 8.781 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (24): * Single equations (assignments): 24 * 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.000155/0.05175, allocations: 192.8 kB / 1.03 GB, free: 8.586 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.168e-05/0.05183, allocations: 47.66 kB / 1.03 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006327/0.05246, allocations: 246.6 kB / 1.03 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.05247, allocations: 0 / 1.03 GB, free: 8.293 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/0.05248, allocations: 4 kB / 1.03 GB, free: 8.289 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.05249, allocations: 3.984 kB / 1.03 GB, free: 8.285 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/0.05354, allocations: 0.6183 MB / 1.031 GB, free: 7.617 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.05354, allocations: 0 / 1.031 GB, free: 7.617 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001331/0.05368, allocations: 35.91 kB / 1.031 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.05368, allocations: 0 / 1.031 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.05369, allocations: 4 kB / 1.031 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.0537, allocations: 0 / 1.031 GB, free: 7.578 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.0537, allocations: 4 kB / 1.031 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005479/0.05425, allocations: 346.7 kB / 1.031 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00011/0.05436, allocations: 55.67 kB / 1.031 GB, free: 7.152 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.439e-05/0.05441, allocations: 15.91 kB / 1.031 GB, free: 7.137 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002174/0.05463, allocations: 15.98 kB / 1.031 GB, free: 7.121 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.922e-05/0.05469, allocations: 7.984 kB / 1.031 GB, free: 7.113 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.962e-05/0.05471, allocations: 11.94 kB / 1.031 GB, free: 7.102 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003677/0.05508, allocations: 303.1 kB / 1.031 GB, free: 6.809 MB / 0.9825 GB Notification: Performance of sort global known variables: time 9e-08/0.05508, allocations: 4 kB / 1.031 GB, free: 6.805 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0008348/0.05591, allocations: 203.5 kB / 1.031 GB, free: 6.605 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 (16): * Single equations (assignments): 14 * 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.001805/0.05772, allocations: 499.8 kB / 1.032 GB, free: 6.262 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0006998/0.05842, allocations: 267.8 kB / 1.032 GB, free: 6 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.05842, allocations: 4 kB / 1.032 GB, free: 5.996 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0002058/0.05863, allocations: 79.83 kB / 1.032 GB, free: 5.914 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009202/0.05955, allocations: 166.4 kB / 1.032 GB, free: 5.758 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001332/0.06088, allocations: 0.6765 MB / 1.033 GB, free: 5.043 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00024/0.06112, allocations: 223.7 kB / 1.033 GB, free: 4.801 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0002418/0.06136, allocations: 83.52 kB / 1.033 GB, free: 4.719 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.966e-05/0.06145, allocations: 40.48 kB / 1.033 GB, free: 4.68 MB / 0.9825 GB Notification: Performance of SimCode: time 3.5e-07/0.06145, allocations: 4 kB / 1.033 GB, free: 4.676 MB / 0.9825 GB Notification: Performance of Templates: time 0.01708/0.07853, allocations: 8.083 MB / 1.041 GB, free: 12.76 MB / 0.9981 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & ./Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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.51474816724658]