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.001262/0.001262, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 196.1 kB / 16.53 MB, free: 6.699 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.475/1.475, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.485/2.485, allocations: 390.2 MB / 0.6647 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00152/0.00152, allocations: 64.09 kB / 0.8125 GB, free: 14.47 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.94/0.9416, allocations: 140.4 MB / 0.9496 GB, free: 9.133 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.02286/0.9645, allocations: 15.54 MB / 0.9648 GB, free: 12.63 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.009733/0.9743, allocations: 4.327 MB / 0.969 GB, free: 9.145 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001206/0.9755, allocations: 16.78 kB / 0.969 GB, free: 9.137 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001507/0.9771, allocations: 265.3 kB / 0.9693 GB, free: 8.926 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.002608/0.9797, allocations: 0.6006 MB / 0.9698 GB, free: 8.453 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002701/0.9825, allocations: 0.6989 MB / 0.9705 GB, free: 7.953 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.00218/0.9847, allocations: 1.043 MB / 0.9715 GB, free: 7.348 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009325/0.9856, allocations: 329.5 kB / 0.9719 GB, free: 7.148 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001337/0.987, allocations: 418.5 kB / 0.9723 GB, free: 6.914 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008608/0.9878, allocations: 322.3 kB / 0.9726 GB, free: 6.727 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001403/0.988, allocations: 27.06 kB / 0.9726 GB, free: 6.727 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002044/0.99, allocations: 0.6249 MB / 0.9732 GB, free: 6.387 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002367/0.9903, allocations: 104.4 kB / 0.9733 GB, free: 6.309 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.000576/0.9909, allocations: 226.6 kB / 0.9735 GB, free: 6.16 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.002146/0.993, allocations: 0.7561 MB / 0.9743 GB, free: 5.676 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.993, allocations: 0 / 0.9743 GB, free: 5.676 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.765e-06/0.9931, allocations: 0 / 0.9743 GB, free: 5.676 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 2.801e-05/0.9931, allocations: 0 / 0.9743 GB, free: 5.676 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.002168/0.9953, allocations: 0.8279 MB / 0.9751 GB, free: 4.965 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.9953, allocations: 12.66 kB / 0.9751 GB, free: 4.961 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002408/0.9956, allocations: 64.12 kB / 0.9751 GB, free: 4.926 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007436/0.9963, allocations: 409.6 kB / 0.9755 GB, free: 4.566 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.831e-05/0.9964, allocations: 20.47 kB / 0.9755 GB, free: 4.559 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.346e-05/0.9965, allocations: 27.38 kB / 0.9756 GB, free: 4.551 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005248/0.997, allocations: 213.1 kB / 0.9758 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.997, allocations: 0 / 0.9758 GB, free: 4.422 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.701e-05/0.997, allocations: 10.8 kB / 0.9758 GB, free: 4.414 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.9971, allocations: 4.25 kB / 0.9758 GB, free: 4.414 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004018/0.9975, allocations: 165.9 kB / 0.9759 GB, free: 4.336 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.001781/0.9993, allocations: 0.9525 MB / 0.9769 GB, free: 3.535 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003101/0.9996, allocations: 131.3 kB / 0.977 GB, free: 3.461 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001666/0.9998, allocations: 76.61 kB / 0.9771 GB, free: 3.418 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003385/1, allocations: 340.7 kB / 0.9774 GB, free: 3.027 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.914e-05/1, allocations: 35.91 kB / 0.9774 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.563e-06/1, allocations: 0 / 0.9774 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0007269/1.001, allocations: 236.7 kB / 0.9777 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.912e-05/1.001, allocations: 53.44 kB / 0.9777 GB, free: 2.801 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006031/1.002, allocations: 474.2 kB / 0.9782 GB, free: 2.52 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.913e-05/1.002, allocations: 32.48 kB / 0.9782 GB, free: 2.484 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001894/1.002, allocations: 233.1 kB / 0.9784 GB, free: 2.273 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 4.252e-05/1.002, allocations: 53.36 kB / 0.9785 GB, free: 2.227 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/1.002, allocations: 58.97 kB / 0.9785 GB, free: 2.188 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001551/1.002, allocations: 359.4 kB / 0.9789 GB, free: 1.836 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001899/1.002, allocations: 73.7 kB / 0.9789 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000272/1.003, allocations: 147.9 kB / 0.9791 GB, free: 1.68 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003561/1.003, allocations: 161.6 kB / 0.9792 GB, free: 1.59 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/1.003, allocations: 1 kB / 0.9792 GB, free: 1.59 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0006134/1.004, allocations: 261 kB / 0.9795 GB, free: 1.449 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/1.004, allocations: 5.281 kB / 0.9795 GB, free: 1.449 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/1.004, allocations: 3.938 kB / 0.9795 GB, free: 1.445 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/1.004, allocations: 3.062 kB / 0.9795 GB, free: 1.445 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002369/1.004, allocations: 46.19 kB / 0.9795 GB, free: 1.434 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.194e-05/1.004, allocations: 5.547 kB / 0.9795 GB, free: 1.43 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00034/1.004, allocations: 41.16 kB / 0.9796 GB, free: 1.402 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.454e-05/1.004, allocations: 12.34 kB / 0.9796 GB, free: 1.398 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003012/1.005, allocations: 195.9 kB / 0.9798 GB, free: 1.258 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000254/1.005, allocations: 154.1 kB / 0.9799 GB, free: 1.129 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003399/1.005, allocations: 179.4 kB / 0.9801 GB, free: 1.012 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.163e-06/1.005, allocations: 0.9375 kB / 0.9801 GB, free: 1.012 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0004996/1.006, allocations: 250.5 kB / 0.9803 GB, free: 0.8789 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/1.006, allocations: 5.781 kB / 0.9803 GB, free: 0.8789 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-06/1.006, allocations: 5.125 kB / 0.9803 GB, free: 0.875 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.428e-06/1.006, allocations: 2.688 kB / 0.9803 GB, free: 0.875 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001938/1.006, allocations: 47.03 kB / 0.9804 GB, free: 0.8633 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.077e-06/1.006, allocations: 1.469 kB / 0.9804 GB, free: 0.8633 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003386/1.006, allocations: 34.91 kB / 0.9804 GB, free: 0.8438 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.272e-05/1.006, allocations: 12.17 kB / 0.9804 GB, free: 0.8398 MB / 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.0001335/1.007, allocations: 201 kB / 0.9806 GB, free: 0.6406 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.768e-05/1.007, allocations: 47.19 kB / 0.9807 GB, free: 0.6133 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005862/1.007, allocations: 243 kB / 0.9809 GB, free: 480 kB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.096e-05/1.007, allocations: 1.438 kB / 0.9809 GB, free: 480 kB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/1.007, allocations: 0 / 0.9809 GB, free: 480 kB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/1.007, allocations: 1 kB / 0.9809 GB, free: 480 kB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001107/1.008, allocations: 0.7093 MB / 0.9816 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/1.008, allocations: 0.9375 kB / 0.9816 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001297/1.008, allocations: 38.25 kB / 0.9816 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/1.009, allocations: 2.344 kB / 0.9816 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/1.009, allocations: 6.344 kB / 0.9816 GB, free: 15.86 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/1.009, allocations: 6.406 kB / 0.9817 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/1.009, allocations: 1.156 kB / 0.9817 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000544/1.009, allocations: 343.9 kB / 0.982 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001363/1.009, allocations: 137.7 kB / 0.9821 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.944e-05/1.009, allocations: 5.469 kB / 0.9821 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000209/1.01, allocations: 15.45 kB / 0.9821 GB, free: 15.44 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.52e-05/1.01, allocations: 14.77 kB / 0.9822 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.498e-05/1.01, allocations: 4.844 kB / 0.9822 GB, free: 15.43 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0004088/1.01, allocations: 337.3 kB / 0.9825 GB, free: 15.23 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.4e-07/1.01, allocations: 4 kB / 0.9825 GB, free: 15.23 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0008056/1.011, allocations: 193.8 kB / 0.9827 GB, free: 15.19 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.001275/1.012, allocations: 498.5 kB / 0.9831 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0007253/1.013, allocations: 277.4 kB / 0.9834 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/1.013, allocations: 0 / 0.9834 GB, free: 14.75 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001988/1.013, allocations: 80.27 kB / 0.9835 GB, free: 14.67 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001129/1.014, allocations: 204.9 kB / 0.9837 GB, free: 14.48 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001263/1.015, allocations: 0.7091 MB / 0.9844 GB, free: 13.73 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004011/1.016, allocations: 0.8268 MB / 0.9852 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0003013/1.016, allocations: 95.14 kB / 0.9853 GB, free: 12.78 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.671e-05/1.016, allocations: 39.42 kB / 0.9853 GB, free: 12.74 MB / 0.7481 GB Notification: Performance of SimCode: time 5.01e-07/1.016, allocations: 0 / 0.9853 GB, free: 12.74 MB / 0.7481 GB Notification: Performance of Templates: time 0.01556/1.032, allocations: 8.476 MB / 0.9936 GB, free: 4.395 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