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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001222/0.001222, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.001574/0.001574, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.622/1.622, allocations: 223.3 MB / 240 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.595/2.595, allocations: 390.9 MB / 0.666 GB, free: 2.418 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003854/0.0003855, allocations: 16 kB / 0.8154 GB, free: 13.58 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.853/0.8534, allocations: 142.4 MB / 0.9544 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01373/0.8671, allocations: 14.22 MB / 0.9683 GB, free: 12.37 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.006996/0.8742, allocations: 4.048 MB / 0.9723 GB, free: 9.113 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008338/0.875, allocations: 10.62 kB / 0.9723 GB, free: 9.109 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0009425/0.876, allocations: 208.8 kB / 0.9725 GB, free: 8.949 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001549/0.8776, allocations: 484.8 kB / 0.973 GB, free: 8.578 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001909/0.8795, allocations: 0.6014 MB / 0.9735 GB, free: 8.172 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.001645/0.8811, allocations: 1.135 MB / 0.9746 GB, free: 7.488 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004633/0.8816, allocations: 260.8 kB / 0.9749 GB, free: 7.328 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008022/0.8824, allocations: 366.4 kB / 0.9752 GB, free: 7.133 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005044/0.8829, allocations: 301.9 kB / 0.9755 GB, free: 6.965 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 5.461e-05/0.883, allocations: 13.5 kB / 0.9755 GB, free: 6.965 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001449/0.8845, allocations: 0.5365 MB / 0.9761 GB, free: 6.68 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001278/0.8846, allocations: 87.19 kB / 0.9762 GB, free: 6.617 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001434/0.8848, allocations: 105.3 kB / 0.9763 GB, free: 6.547 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0007927/0.8856, allocations: 0.521 MB / 0.9768 GB, free: 6.219 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.8856, allocations: 0 / 0.9768 GB, free: 6.219 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.653e-06/0.8856, allocations: 0 / 0.9768 GB, free: 6.219 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.864e-06/0.8856, allocations: 0 / 0.9768 GB, free: 6.219 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.00121/0.8868, allocations: 0.7583 MB / 0.9775 GB, free: 5.555 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.8869, allocations: 9.219 kB / 0.9775 GB, free: 5.555 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001041/0.887, allocations: 57.98 kB / 0.9776 GB, free: 5.523 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005573/0.8875, allocations: 390.5 kB / 0.9779 GB, free: 5.184 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.6e-05/0.8876, allocations: 19.78 kB / 0.978 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.609e-05/0.8876, allocations: 26.62 kB / 0.978 GB, free: 5.164 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004544/0.8881, allocations: 224.8 kB / 0.9782 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.8881, allocations: 0 / 0.9782 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.66e-05/0.8881, allocations: 14.64 kB / 0.9782 GB, free: 5.02 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.8882, allocations: 5.219 kB / 0.9782 GB, free: 5.02 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003901/0.8885, allocations: 177.2 kB / 0.9784 GB, free: 4.938 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.001595/0.8902, allocations: 0.945 MB / 0.9793 GB, free: 4.152 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002904/0.8905, allocations: 143 kB / 0.9794 GB, free: 4.07 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001649/0.8906, allocations: 73.78 kB / 0.9795 GB, free: 4.035 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002916/0.8909, allocations: 335.4 kB / 0.9798 GB, free: 3.648 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.362e-05/0.891, allocations: 35.69 kB / 0.9799 GB, free: 3.605 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=14): time 1.463e-06/0.891, allocations: 4.938 kB / 0.9799 GB, free: 3.602 MB / 0.7325 GB Notification: Performance of matching and sorting (n=14): time 0.0006247/0.8916, allocations: 250.4 kB / 0.9801 GB, free: 3.477 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.8917, allocations: 57.44 kB / 0.9802 GB, free: 3.41 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005666/0.8922, allocations: 474.3 kB / 0.9806 GB, free: 3.125 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.707e-05/0.8923, allocations: 28.33 kB / 0.9806 GB, free: 3.094 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001796/0.8925, allocations: 245.2 kB / 0.9809 GB, free: 2.871 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.391e-05/0.8925, allocations: 40.48 kB / 0.9809 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.166e-05/0.8925, allocations: 4.875 kB / 0.9809 GB, free: 2.832 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001427/0.8927, allocations: 349.5 kB / 0.9813 GB, free: 2.492 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001704/0.8928, allocations: 74.8 kB / 0.9813 GB, free: 2.457 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002615/0.8931, allocations: 151.9 kB / 0.9815 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001947/0.8933, allocations: 95.55 kB / 0.9816 GB, free: 2.293 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.8933, allocations: 0 / 0.9816 GB, free: 2.293 MB / 0.7325 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004876/0.8938, allocations: 265.3 kB / 0.9818 GB, free: 2.152 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.079e-05/0.8939, allocations: 108 kB / 0.9819 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.8939, allocations: 0 / 0.9819 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.8939, allocations: 1.156 kB / 0.9819 GB, free: 2.043 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002327/0.8942, allocations: 46.34 kB / 0.982 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.8942, allocations: 5.375 kB / 0.982 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003325/0.8945, allocations: 55.25 kB / 0.982 GB, free: 1.996 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.465e-05/0.8946, allocations: 15.7 kB / 0.982 GB, free: 1.988 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 6.873e-06/0.8946, allocations: 3.469 kB / 0.982 GB, free: 1.988 MB / 0.7325 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003971/0.895, allocations: 193.3 kB / 0.9822 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.104e-06/0.895, allocations: 0 / 0.9822 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.769e-06/0.895, allocations: 2.781 kB / 0.9822 GB, free: 1.902 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001885/0.8952, allocations: 44.25 kB / 0.9823 GB, free: 1.895 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.767e-06/0.8952, allocations: 1.5 kB / 0.9823 GB, free: 1.895 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002804/0.8955, allocations: 47.53 kB / 0.9823 GB, free: 1.867 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.466e-05/0.8955, allocations: 19.2 kB / 0.9823 GB, free: 1.855 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002059/0.8957, allocations: 230.2 kB / 0.9826 GB, free: 1.645 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.444e-05/0.8958, allocations: 45.8 kB / 0.9826 GB, free: 1.617 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005446/0.8964, allocations: 265.2 kB / 0.9829 GB, free: 1.461 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.8964, allocations: 2.094 kB / 0.9829 GB, free: 1.461 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.8964, allocations: 1.562 kB / 0.9829 GB, free: 1.461 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.8964, allocations: 4 kB / 0.9829 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009774/0.8974, allocations: 0.7088 MB / 0.9836 GB, free: 0.8711 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.8974, allocations: 1.344 kB / 0.9836 GB, free: 0.8711 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000123/0.8975, allocations: 34.03 kB / 0.9836 GB, free: 0.8633 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.8975, allocations: 1.188 kB / 0.9836 GB, free: 0.8633 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/0.8976, allocations: 11.06 kB / 0.9836 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.376e-06/0.8976, allocations: 6.594 kB / 0.9836 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.8976, allocations: 1.438 kB / 0.9836 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004678/0.898, allocations: 358 kB / 0.9839 GB, free: 0.582 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001369/0.8982, allocations: 153.3 kB / 0.9841 GB, free: 440 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.05e-05/0.8983, allocations: 2.719 kB / 0.9841 GB, free: 440 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002128/0.8985, allocations: 21.58 kB / 0.9841 GB, free: 432 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.029e-05/0.8985, allocations: 18.59 kB / 0.9841 GB, free: 420 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.8986, allocations: 9.531 kB / 0.9841 GB, free: 416 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003449/0.8989, allocations: 332.7 kB / 0.9845 GB, free: 212 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8989, allocations: 0 / 0.9845 GB, free: 212 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0006955/0.8996, allocations: 204.8 kB / 0.9847 GB, free: 16 kB / 0.7325 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001068/0.9007, allocations: 476.3 kB / 0.9851 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0006005/0.9013, allocations: 290.2 kB / 0.9854 GB, free: 15.4 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.9013, allocations: 0 / 0.9854 GB, free: 15.4 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001749/0.9015, allocations: 87.83 kB / 0.9855 GB, free: 15.32 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.9027, allocations: 218.5 kB / 0.9857 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.9039, allocations: 0.8407 MB / 0.9865 GB, free: 14.23 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003572/0.9043, allocations: 0.8233 MB / 0.9873 GB, free: 13.38 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0003056/0.9046, allocations: 95.52 kB / 0.9874 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.351e-05/0.9047, allocations: 43.42 kB / 0.9874 GB, free: 13.23 MB / 0.7481 GB Notification: Performance of SimCode: time 5.61e-07/0.9047, allocations: 0 / 0.9874 GB, free: 13.23 MB / 0.7481 GB Notification: Performance of Templates: time 0.01441/0.9191, allocations: 8.059 MB / 0.9953 GB, free: 5.301 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