Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.TwoWayValvesTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|valLin.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") translateModel(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|valLin.m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.01002/0.01002, allocations: 172 kB / 16.26 MB, free: 6.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.571/1.571, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.454/2.454, allocations: 390.9 MB / 0.6663 GB, free: 2.359 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000422/0.0004224, allocations: 12 kB / 0.816 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8124/0.8128, allocations: 142.4 MB / 0.955 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.02204/0.835, allocations: 14.96 MB / 0.9696 GB, free: 11.73 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.008396/0.8434, allocations: 4.293 MB / 0.9738 GB, free: 8.293 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009338/0.8444, allocations: 14.34 kB / 0.9739 GB, free: 8.285 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001179/0.8456, allocations: 217.9 kB / 0.9741 GB, free: 8.121 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.002153/0.8478, allocations: 0.5583 MB / 0.9746 GB, free: 7.684 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002508/0.8503, allocations: 0.6186 MB / 0.9752 GB, free: 7.258 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002315/0.8526, allocations: 1.33 MB / 0.9765 GB, free: 6.512 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005607/0.8532, allocations: 285.2 kB / 0.9768 GB, free: 6.344 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008437/0.854, allocations: 375.3 kB / 0.9771 GB, free: 6.141 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004838/0.8545, allocations: 322.6 kB / 0.9774 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.785e-05/0.8546, allocations: 14.06 kB / 0.9775 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001451/0.8561, allocations: 0.5942 MB / 0.978 GB, free: 5.629 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001337/0.8562, allocations: 93.44 kB / 0.9781 GB, free: 5.562 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0003703/0.8566, allocations: 231.1 kB / 0.9783 GB, free: 5.402 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001303/0.8579, allocations: 0.734 MB / 0.9791 GB, free: 4.934 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.8579, allocations: 0.9688 kB / 0.9791 GB, free: 4.934 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.674e-06/0.8579, allocations: 0 / 0.9791 GB, free: 4.934 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.625e-06/0.8579, allocations: 0 / 0.9791 GB, free: 4.934 MB / 0.7325 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.001385/0.8593, allocations: 0.7497 MB / 0.9798 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.8594, allocations: 8.562 kB / 0.9798 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.8595, allocations: 55.06 kB / 0.9799 GB, free: 4.246 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007152/0.8602, allocations: 418.9 kB / 0.9803 GB, free: 3.875 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.184e-05/0.8603, allocations: 19.44 kB / 0.9803 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.835e-05/0.8603, allocations: 28.12 kB / 0.9803 GB, free: 3.855 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004761/0.8608, allocations: 226.2 kB / 0.9805 GB, free: 3.723 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.8608, allocations: 0 / 0.9805 GB, free: 3.723 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.201e-05/0.8608, allocations: 5.625 kB / 0.9805 GB, free: 3.719 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.8609, allocations: 9.578 kB / 0.9805 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004184/0.8613, allocations: 176.2 kB / 0.9807 GB, free: 3.637 MB / 0.7325 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.00175/0.863, allocations: 0.9504 MB / 0.9816 GB, free: 2.84 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003448/0.8634, allocations: 136.8 kB / 0.9818 GB, free: 2.766 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002746/0.8637, allocations: 82.69 kB / 0.9818 GB, free: 2.723 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003116/0.864, allocations: 336.2 kB / 0.9822 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.26e-05/0.8641, allocations: 39.77 kB / 0.9822 GB, free: 2.289 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.543e-06/0.8641, allocations: 0 / 0.9822 GB, free: 2.289 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0007155/0.8648, allocations: 252.9 kB / 0.9824 GB, free: 2.168 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.686e-05/0.8648, allocations: 52.66 kB / 0.9825 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000609/0.8655, allocations: 478.8 kB / 0.9829 GB, free: 1.82 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.503e-05/0.8655, allocations: 30.8 kB / 0.983 GB, free: 1.785 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001884/0.8657, allocations: 229.4 kB / 0.9832 GB, free: 1.578 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.939e-05/0.8657, allocations: 41.95 kB / 0.9832 GB, free: 1.543 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.841e-05/0.8658, allocations: 32.11 kB / 0.9833 GB, free: 1.512 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001559/0.866, allocations: 360.5 kB / 0.9836 GB, free: 1.16 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001879/0.8662, allocations: 74.34 kB / 0.9837 GB, free: 1.129 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000335/0.8665, allocations: 161.2 kB / 0.9838 GB, free: 1.004 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003724/0.8669, allocations: 174.4 kB / 0.984 GB, free: 0.9102 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.8669, allocations: 0 / 0.984 GB, free: 0.9102 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006432/0.8675, allocations: 269.4 kB / 0.9843 GB, free: 0.7695 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 7.297e-05/0.8676, allocations: 105.3 kB / 0.9844 GB, free: 0.6602 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.8676, allocations: 5.312 kB / 0.9844 GB, free: 0.6562 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.8677, allocations: 1.312 kB / 0.9844 GB, free: 0.6562 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002391/0.8679, allocations: 49.78 kB / 0.9844 GB, free: 0.6445 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.315e-05/0.8679, allocations: 9.422 kB / 0.9844 GB, free: 0.6367 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004377/0.8684, allocations: 52.53 kB / 0.9845 GB, free: 0.6055 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.864e-05/0.8684, allocations: 15.2 kB / 0.9845 GB, free: 0.5977 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.963e-06/0.8684, allocations: 4 kB / 0.9845 GB, free: 0.5977 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004329/0.8689, allocations: 191.6 kB / 0.9847 GB, free: 0.5156 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.863e-06/0.8689, allocations: 0 / 0.9847 GB, free: 0.5156 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.115e-06/0.8689, allocations: 2.844 kB / 0.9847 GB, free: 0.5156 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000198/0.8691, allocations: 52.59 kB / 0.9847 GB, free: 0.5 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.815e-06/0.8691, allocations: 1.094 kB / 0.9847 GB, free: 0.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003051/0.8694, allocations: 39.19 kB / 0.9848 GB, free: 492 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.276e-05/0.8695, allocations: 11.72 kB / 0.9848 GB, free: 488 kB / 0.7325 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.0002176/0.8697, allocations: 248 kB / 0.985 GB, free: 244 kB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.647e-05/0.8698, allocations: 43.44 kB / 0.9851 GB, free: 200 kB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005786/0.8703, allocations: 261.1 kB / 0.9853 GB, free: 15.93 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.22e-05/0.8704, allocations: 4 kB / 0.9853 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.8704, allocations: 0 / 0.9853 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.8704, allocations: 0 / 0.9853 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/0.8714, allocations: 0.7124 MB / 0.986 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.8715, allocations: 0 / 0.986 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001389/0.8716, allocations: 31.92 kB / 0.986 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.8716, allocations: 4 kB / 0.986 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.532e-05/0.8716, allocations: 7.984 kB / 0.986 GB, free: 15.1 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.8717, allocations: 4.125 kB / 0.986 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.8717, allocations: 7.938 kB / 0.9861 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000485/0.8722, allocations: 360.2 kB / 0.9864 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001341/0.8723, allocations: 140.5 kB / 0.9865 GB, free: 14.55 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.929e-05/0.8724, allocations: 7.984 kB / 0.9865 GB, free: 14.54 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002325/0.8726, allocations: 28.02 kB / 0.9866 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.419e-05/0.8727, allocations: 19.86 kB / 0.9866 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.367e-05/0.8727, allocations: 8 kB / 0.9866 GB, free: 14.49 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.000366/0.8731, allocations: 334.9 kB / 0.9869 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8731, allocations: 0 / 0.9869 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0007476/0.8738, allocations: 199.6 kB / 0.9871 GB, free: 13.97 MB / 0.7481 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.001324/0.8752, allocations: 487.3 kB / 0.9876 GB, free: 13.62 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0007007/0.8759, allocations: 287.5 kB / 0.9878 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.8759, allocations: 4 kB / 0.9878 GB, free: 13.34 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002/0.8761, allocations: 92.14 kB / 0.9879 GB, free: 13.25 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001437/0.8775, allocations: 223.2 kB / 0.9881 GB, free: 13.04 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001471/0.879, allocations: 0.8507 MB / 0.989 GB, free: 12.15 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004226/0.8795, allocations: 0.8272 MB / 0.9898 GB, free: 11.3 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0003316/0.8798, allocations: 87.55 kB / 0.9899 GB, free: 11.21 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.457e-05/0.8799, allocations: 43.36 kB / 0.9899 GB, free: 11.16 MB / 0.7481 GB Notification: Performance of SimCode: time 4.01e-07/0.8799, allocations: 0 / 0.9899 GB, free: 11.16 MB / 0.7481 GB Notification: Performance of Templates: time 0.01642/0.8963, allocations: 8.285 MB / 0.998 GB, free: 3.004 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches