Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.TwoWayValveTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valTab.m_flow|kv.y",fileNamePrefix="Buildings_9_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_9_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.001383/0.001383, 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.001612/0.001612, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.484/1.484, 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.411/2.411, allocations: 390.2 MB / 0.6647 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001333, allocations: 63.91 kB / 0.8125 GB, free: 14.46 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8584/0.8597, allocations: 140.4 MB / 0.9496 GB, free: 9.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.01766/0.8774, allocations: 17.46 MB / 0.9666 GB, free: 11.07 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.008245/0.8857, allocations: 4.907 MB / 0.9714 GB, free: 7.125 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008713/0.8867, allocations: 21.16 kB / 0.9714 GB, free: 7.113 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001021/0.8877, allocations: 255 kB / 0.9717 GB, free: 6.906 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001934/0.8897, allocations: 0.6069 MB / 0.9723 GB, free: 6.43 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002507/0.8922, allocations: 0.7226 MB / 0.973 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001895/0.8941, allocations: 0.9641 MB / 0.9739 GB, free: 5.363 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006507/0.8948, allocations: 335.4 kB / 0.9742 GB, free: 5.148 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009571/0.8957, allocations: 421.2 kB / 0.9746 GB, free: 4.906 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005283/0.8963, allocations: 317.2 kB / 0.975 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 7.621e-05/0.8964, allocations: 29.78 kB / 0.975 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001858/0.8982, allocations: 0.7253 MB / 0.9757 GB, free: 4.312 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.000165/0.8984, allocations: 132.5 kB / 0.9758 GB, free: 4.223 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0002817/0.8987, allocations: 237.5 kB / 0.976 GB, free: 4.07 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001633/0.9004, allocations: 0.8715 MB / 0.9769 GB, free: 3.516 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.9004, allocations: 3.984 kB / 0.9769 GB, free: 3.512 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.473e-06/0.9004, allocations: 0.8438 kB / 0.9769 GB, free: 3.512 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 9.127e-06/0.9004, allocations: 0 / 0.9769 GB, free: 3.512 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001569/0.902, allocations: 0.872 MB / 0.9777 GB, free: 2.77 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.034e-05/0.902, allocations: 10 kB / 0.9778 GB, free: 2.77 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002505/0.9023, allocations: 62.59 kB / 0.9778 GB, free: 2.738 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000719/0.903, allocations: 442.3 kB / 0.9782 GB, free: 2.355 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.032e-05/0.9031, allocations: 29.34 kB / 0.9783 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.568e-05/0.9031, allocations: 31.94 kB / 0.9783 GB, free: 2.328 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006284/0.9038, allocations: 287.5 kB / 0.9786 GB, free: 2.129 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.9038, allocations: 0 / 0.9786 GB, free: 2.129 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.957e-05/0.9038, allocations: 10.78 kB / 0.9786 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.151e-05/0.9038, allocations: 5.906 kB / 0.9786 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004513/0.9043, allocations: 191.2 kB / 0.9788 GB, free: 2.031 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.002022/0.9063, allocations: 1.496 MB / 0.9802 GB, free: 0.7031 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003516/0.9067, allocations: 153.7 kB / 0.9804 GB, free: 0.6211 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001922/0.9069, allocations: 82.56 kB / 0.9805 GB, free: 0.5781 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001736/0.9086, allocations: 1.273 MB / 0.9817 GB, free: 15.24 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.231e-05/0.9087, allocations: 39.62 kB / 0.9817 GB, free: 15.2 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=15): time 1.663e-06/0.9087, allocations: 4 kB / 0.9817 GB, free: 15.19 MB / 0.7481 GB Notification: Performance of matching and sorting (n=15): time 0.0007033/0.9094, allocations: 254 kB / 0.982 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.527e-05/0.9095, allocations: 53.16 kB / 0.982 GB, free: 15 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007596/0.9102, allocations: 0.581 MB / 0.9826 GB, free: 14.66 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.183e-05/0.9103, allocations: 31.86 kB / 0.9826 GB, free: 14.62 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002475/0.9105, allocations: 273.5 kB / 0.9829 GB, free: 14.38 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.355e-05/0.9106, allocations: 57.78 kB / 0.9829 GB, free: 14.33 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/0.9107, allocations: 71.45 kB / 0.983 GB, free: 14.29 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.00021/0.911, allocations: 358.8 kB / 0.9834 GB, free: 13.94 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002204/0.9112, allocations: 78.25 kB / 0.9834 GB, free: 13.9 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003687/0.9116, allocations: 211.5 kB / 0.9836 GB, free: 13.71 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004558/0.912, allocations: 231.7 kB / 0.9839 GB, free: 13.54 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.912, allocations: 5.312 kB / 0.9839 GB, free: 13.54 MB / 0.7481 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006314/0.9127, allocations: 309.8 kB / 0.9842 GB, free: 13.38 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.9127, allocations: 12.12 kB / 0.9842 GB, free: 13.37 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.9127, allocations: 2.75 kB / 0.9842 GB, free: 13.37 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.18e-05/0.9127, allocations: 4.594 kB / 0.9842 GB, free: 13.37 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002552/0.913, allocations: 63.66 kB / 0.9842 GB, free: 13.36 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.913, allocations: 7.094 kB / 0.9842 GB, free: 13.35 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003276/0.9134, allocations: 43.69 kB / 0.9843 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.861e-05/0.9134, allocations: 15.56 kB / 0.9843 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000324/0.9137, allocations: 218.5 kB / 0.9845 GB, free: 13.17 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002967/0.914, allocations: 210.1 kB / 0.9847 GB, free: 12.98 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003897/0.9144, allocations: 227 kB / 0.9849 GB, free: 12.82 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.204e-06/0.9145, allocations: 4 kB / 0.9849 GB, free: 12.81 MB / 0.7481 GB Notification: Performance of matching and sorting (n=33) (initialization_lambda0): time 0.00058/0.915, allocations: 305.7 kB / 0.9852 GB, free: 12.64 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/0.9151, allocations: 8 kB / 0.9852 GB, free: 12.63 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.9151, allocations: 7.938 kB / 0.9852 GB, free: 12.62 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.582e-06/0.9151, allocations: 4 kB / 0.9852 GB, free: 12.62 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000212/0.9153, allocations: 68.09 kB / 0.9853 GB, free: 12.55 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.9153, allocations: 15.92 kB / 0.9853 GB, free: 12.54 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003186/0.9156, allocations: 35.73 kB / 0.9854 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.295e-05/0.9157, allocations: 15.98 kB / 0.9854 GB, free: 12.48 MB / 0.7481 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.0001517/0.9158, allocations: 200.1 kB / 0.9856 GB, free: 12.28 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.708e-05/0.9159, allocations: 47.38 kB / 0.9856 GB, free: 12.23 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00055/0.9165, allocations: 265.6 kB / 0.9859 GB, free: 11.97 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/0.9165, allocations: 4 kB / 0.9859 GB, free: 11.96 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.9165, allocations: 0 / 0.9859 GB, free: 11.96 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.9165, allocations: 0 / 0.9859 GB, free: 11.96 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001185/0.9177, allocations: 0.7317 MB / 0.9866 GB, free: 11.16 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.65e-06/0.9177, allocations: 4 kB / 0.9866 GB, free: 11.16 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001192/0.9179, allocations: 35.97 kB / 0.9866 GB, free: 11.12 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.9179, allocations: 0 / 0.9866 GB, free: 11.12 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.487e-05/0.9179, allocations: 4.188 kB / 0.9866 GB, free: 11.12 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.9179, allocations: 0 / 0.9866 GB, free: 11.12 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.9179, allocations: 8.125 kB / 0.9866 GB, free: 11.11 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004731/0.9184, allocations: 350.2 kB / 0.987 GB, free: 10.74 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001543/0.9185, allocations: 152.4 kB / 0.9871 GB, free: 10.57 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.063e-05/0.9186, allocations: 4 kB / 0.9871 GB, free: 10.57 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000189/0.9188, allocations: 15.98 kB / 0.9871 GB, free: 10.55 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.253e-05/0.9189, allocations: 19.92 kB / 0.9871 GB, free: 10.54 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.425e-05/0.9189, allocations: 4 kB / 0.9871 GB, free: 10.53 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0004754/0.9194, allocations: 418.8 kB / 0.9875 GB, free: 10.12 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2e-07/0.9194, allocations: 0 / 0.9875 GB, free: 10.12 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0008838/0.9203, allocations: 227.7 kB / 0.9878 GB, free: 9.902 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 (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.00124/0.9215, allocations: 0.4948 MB / 0.9882 GB, free: 9.539 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0007658/0.9223, allocations: 329.2 kB / 0.9886 GB, free: 9.219 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.9223, allocations: 0 / 0.9886 GB, free: 9.219 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.000181/0.9225, allocations: 93.08 kB / 0.9886 GB, free: 9.129 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001234/0.9237, allocations: 255.6 kB / 0.9889 GB, free: 8.887 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.9252, allocations: 0.8131 MB / 0.9897 GB, free: 8.031 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004234/0.9256, allocations: 0.851 MB / 0.9905 GB, free: 7.152 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0003712/0.926, allocations: 96.25 kB / 0.9906 GB, free: 7.055 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.936e-05/0.9261, allocations: 39.44 kB / 0.9906 GB, free: 7.016 MB / 0.7481 GB Notification: Performance of SimCode: time 8.81e-07/0.9261, allocations: 0 / 0.9906 GB, free: 7.016 MB / 0.7481 GB Notification: Performance of Templates: time 0.0188/0.9449, allocations: 10.2 MB / 1.001 GB, free: 12.96 MB / 0.7637 GB make -j1 -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.makefile (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.sim & ./Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches