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.001096/0.001095, allocations: 96.62 kB / 15.36 MB, free: 0.7344 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.007993/0.007993, allocations: 169.8 kB / 16.27 MB, free: 6.648 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.556/1.556, allocations: 223.3 MB / 240.3 MB, free: 5.34 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.481/2.481, allocations: 390.9 MB / 0.6663 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003506/0.0003506, allocations: 8 kB / 0.816 GB, free: 13.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7515/0.7518, allocations: 142.4 MB / 0.955 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable): time 0.01831/0.7702, allocations: 16.85 MB / 0.9715 GB, free: 10.14 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.007998/0.7783, allocations: 4.873 MB / 0.9762 GB, free: 6.238 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008304/0.7791, allocations: 10.78 kB / 0.9763 GB, free: 6.234 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001084/0.7802, allocations: 207.8 kB / 0.9765 GB, free: 6.074 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001991/0.7823, allocations: 0.5585 MB / 0.977 GB, free: 5.637 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002514/0.7848, allocations: 0.6486 MB / 0.9776 GB, free: 5.184 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002837/0.7876, allocations: 1.275 MB / 0.9789 GB, free: 4.48 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001041/0.7887, allocations: 287.9 kB / 0.9792 GB, free: 4.293 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001429/0.7902, allocations: 367 kB / 0.9795 GB, free: 4.094 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009321/0.7911, allocations: 308.9 kB / 0.9798 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001368/0.7913, allocations: 14.62 kB / 0.9798 GB, free: 3.914 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002149/0.7934, allocations: 0.6954 MB / 0.9805 GB, free: 3.523 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002491/0.7937, allocations: 121.6 kB / 0.9806 GB, free: 3.445 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0007196/0.7944, allocations: 248.3 kB / 0.9808 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.002346/0.7968, allocations: 0.8513 MB / 0.9817 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.7968, allocations: 1.094 kB / 0.9817 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.773e-06/0.7968, allocations: 0 / 0.9817 GB, free: 2.734 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 2.57e-05/0.7968, allocations: 0 / 0.9817 GB, free: 2.734 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.001805/0.7987, allocations: 0.7938 MB / 0.9825 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.7987, allocations: 8.875 kB / 0.9825 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002575/0.799, allocations: 61.81 kB / 0.9825 GB, free: 2.012 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009302/0.7999, allocations: 446.9 kB / 0.9829 GB, free: 1.625 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.16e-05/0.8, allocations: 28.81 kB / 0.983 GB, free: 1.609 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.17e-05/0.8, allocations: 27.56 kB / 0.983 GB, free: 1.602 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006655/0.8007, allocations: 292.6 kB / 0.9833 GB, free: 1.402 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.8007, allocations: 1.344 kB / 0.9833 GB, free: 1.402 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.183e-05/0.8008, allocations: 10.16 kB / 0.9833 GB, free: 1.395 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.8008, allocations: 9.531 kB / 0.9833 GB, free: 1.391 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005113/0.8013, allocations: 197.5 kB / 0.9835 GB, free: 1.305 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.002273/0.8036, allocations: 1.48 MB / 0.9849 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003412/0.8039, allocations: 174.4 kB / 0.9851 GB, free: 15.89 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001905/0.8042, allocations: 88.11 kB / 0.9852 GB, free: 15.85 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001759/0.8059, allocations: 1.29 MB / 0.9864 GB, free: 14.51 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.846e-05/0.806, allocations: 39.59 kB / 0.9865 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=15): time 2.004e-06/0.806, allocations: 0 / 0.9865 GB, free: 14.46 MB / 0.7481 GB Notification: Performance of matching and sorting (n=15): time 0.0007829/0.8068, allocations: 272.6 kB / 0.9867 GB, free: 14.33 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.726e-05/0.8068, allocations: 52.69 kB / 0.9868 GB, free: 14.27 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007768/0.8076, allocations: 0.5776 MB / 0.9874 GB, free: 13.71 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.232e-05/0.8076, allocations: 33.7 kB / 0.9874 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002278/0.8079, allocations: 272 kB / 0.9876 GB, free: 13.4 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 4.464e-05/0.8079, allocations: 51.3 kB / 0.9877 GB, free: 13.35 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.77e-05/0.808, allocations: 29.7 kB / 0.9877 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000156/0.8081, allocations: 362.8 kB / 0.9881 GB, free: 12.95 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001959/0.8083, allocations: 76.52 kB / 0.9881 GB, free: 12.88 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003052/0.8087, allocations: 218.7 kB / 0.9883 GB, free: 12.62 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004413/0.8091, allocations: 243 kB / 0.9886 GB, free: 12.35 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.8091, allocations: 0 / 0.9886 GB, free: 12.35 MB / 0.7481 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006707/0.8098, allocations: 324.8 kB / 0.9889 GB, free: 12.02 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001158/0.8099, allocations: 164.3 kB / 0.989 GB, free: 11.83 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.8099, allocations: 0 / 0.989 GB, free: 11.83 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.036e-05/0.81, allocations: 4 kB / 0.9891 GB, free: 11.82 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002817/0.8103, allocations: 67.84 kB / 0.9891 GB, free: 11.76 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.8103, allocations: 11.98 kB / 0.9891 GB, free: 11.75 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000452/0.8107, allocations: 51.58 kB / 0.9892 GB, free: 11.7 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.216e-05/0.8108, allocations: 15.98 kB / 0.9892 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 9.648e-06/0.8108, allocations: 4 kB / 0.9892 GB, free: 11.68 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005266/0.8113, allocations: 247.6 kB / 0.9894 GB, free: 11.43 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.8114, allocations: 4 kB / 0.9894 GB, free: 11.43 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.522e-06/0.8114, allocations: 4 kB / 0.9894 GB, free: 11.43 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002442/0.8116, allocations: 76.19 kB / 0.9895 GB, free: 11.35 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.8116, allocations: 7.938 kB / 0.9895 GB, free: 11.34 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000385/0.812, allocations: 43.75 kB / 0.9896 GB, free: 11.3 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.556e-05/0.8121, allocations: 8 kB / 0.9896 GB, free: 11.29 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.0002739/0.8123, allocations: 261 kB / 0.9898 GB, free: 11.03 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001004/0.8125, allocations: 59.27 kB / 0.9899 GB, free: 10.97 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006225/0.8131, allocations: 267.9 kB / 0.9901 GB, free: 10.7 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-05/0.8131, allocations: 7.984 kB / 0.9901 GB, free: 10.7 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.8131, allocations: 3.984 kB / 0.9901 GB, free: 10.69 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.8131, allocations: 0 / 0.9901 GB, free: 10.69 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001187/0.8143, allocations: 0.7472 MB / 0.9909 GB, free: 9.875 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.8143, allocations: 4 kB / 0.9909 GB, free: 9.871 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001469/0.8145, allocations: 35.92 kB / 0.9909 GB, free: 9.836 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.199e-06/0.8145, allocations: 4 kB / 0.9909 GB, free: 9.832 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.8145, allocations: 0 / 0.9909 GB, free: 9.832 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.8145, allocations: 7.984 kB / 0.9909 GB, free: 9.824 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.8145, allocations: 0 / 0.9909 GB, free: 9.824 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005779/0.8151, allocations: 370.2 kB / 0.9913 GB, free: 9.434 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001886/0.8153, allocations: 148.5 kB / 0.9914 GB, free: 9.27 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.497e-05/0.8154, allocations: 7.984 kB / 0.9914 GB, free: 9.262 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002309/0.8156, allocations: 19.92 kB / 0.9914 GB, free: 9.242 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.628e-05/0.8157, allocations: 11.98 kB / 0.9915 GB, free: 9.23 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.454e-05/0.8157, allocations: 12 kB / 0.9915 GB, free: 9.219 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0005453/0.8163, allocations: 418.8 kB / 0.9919 GB, free: 8.812 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8163, allocations: 0 / 0.9919 GB, free: 8.812 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0008409/0.8171, allocations: 235.6 kB / 0.9921 GB, free: 8.582 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.001297/0.8184, allocations: 0.4976 MB / 0.9926 GB, free: 8.219 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0007968/0.8192, allocations: 333.6 kB / 0.9929 GB, free: 7.895 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.8193, allocations: 0 / 0.9929 GB, free: 7.895 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0002097/0.8195, allocations: 104.8 kB / 0.993 GB, free: 7.793 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001549/0.821, allocations: 239.8 kB / 0.9932 GB, free: 7.562 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001894/0.8229, allocations: 0.982 MB / 0.9942 GB, free: 6.539 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006232/0.8236, allocations: 0.8467 MB / 0.995 GB, free: 5.664 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0004935/0.8241, allocations: 104.3 kB / 0.9951 GB, free: 5.559 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.921e-05/0.8242, allocations: 39.44 kB / 0.9951 GB, free: 5.52 MB / 0.7481 GB Notification: Performance of SimCode: time 7.41e-07/0.8242, allocations: 3.938 kB / 0.9951 GB, free: 5.516 MB / 0.7481 GB Notification: Performance of Templates: time 0.01907/0.8433, allocations: 9.849 MB / 1.005 GB, free: 11.81 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