Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.0008302/0.0008302, allocations: 98.88 kB / 16.02 MB, free: 76 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.000944/0.000944, allocations: 182.3 kB / 16.92 MB, free: 6.914 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.403/1.403, allocations: 223.3 MB / 241 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.723/2.723, allocations: 437.8 MB / 0.7128 GB, free: 6.934 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005691/0.0005691, allocations: 16 kB / 0.8735 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6703/0.6709, allocations: 153.8 MB / 1.024 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01608/0.687, allocations: 14.97 MB / 1.038 GB, free: 0.7969 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.006845/0.6939, allocations: 4.296 MB / 1.043 GB, free: 12.49 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007123/0.6946, allocations: 11.88 kB / 1.043 GB, free: 12.48 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001052/0.6957, allocations: 226.9 kB / 1.043 GB, free: 12.25 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.001858/0.6976, allocations: 0.5558 MB / 1.043 GB, free: 11.7 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.001897/0.6995, allocations: 0.6269 MB / 1.044 GB, free: 11.08 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.001836/0.7013, allocations: 1.31 MB / 1.045 GB, free: 9.762 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006022/0.7019, allocations: 285.8 kB / 1.045 GB, free: 9.484 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009089/0.7029, allocations: 382.3 kB / 1.046 GB, free: 9.109 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000562/0.7034, allocations: 314.5 kB / 1.046 GB, free: 8.801 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 6.91e-05/0.7035, allocations: 12 kB / 1.046 GB, free: 8.789 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001304/0.7048, allocations: 0.6004 MB / 1.047 GB, free: 8.188 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001253/0.705, allocations: 91.53 kB / 1.047 GB, free: 8.098 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002858/0.7053, allocations: 240.4 kB / 1.047 GB, free: 7.855 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0007762/0.7061, allocations: 0.5301 MB / 1.048 GB, free: 7.324 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.7061, allocations: 0 / 1.048 GB, free: 7.324 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.843e-06/0.7061, allocations: 0 / 1.048 GB, free: 7.324 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.957e-06/0.7061, allocations: 0 / 1.048 GB, free: 7.324 MB / 0.795 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.001205/0.7073, allocations: 0.7552 MB / 1.048 GB, free: 6.52 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.7074, allocations: 8.031 kB / 1.048 GB, free: 6.512 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.841e-05/0.7074, allocations: 52.38 kB / 1.048 GB, free: 6.461 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000562/0.708, allocations: 417.3 kB / 1.049 GB, free: 6.012 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.366e-05/0.708, allocations: 16.44 kB / 1.049 GB, free: 5.996 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.88e-05/0.7081, allocations: 28 kB / 1.049 GB, free: 5.969 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004349/0.7085, allocations: 223.2 kB / 1.049 GB, free: 5.746 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.7086, allocations: 4 kB / 1.049 GB, free: 5.742 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.385e-05/0.7086, allocations: 11.98 kB / 1.049 GB, free: 5.73 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.7086, allocations: 8 kB / 1.049 GB, free: 5.723 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004007/0.709, allocations: 169.6 kB / 1.049 GB, free: 5.555 MB / 0.795 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.001543/0.7106, allocations: 0.9535 MB / 1.05 GB, free: 4.52 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002979/0.7109, allocations: 139.8 kB / 1.05 GB, free: 4.375 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001658/0.7111, allocations: 80.75 kB / 1.05 GB, free: 4.293 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002887/0.7114, allocations: 332.5 kB / 1.051 GB, free: 3.895 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.7114, allocations: 46.55 kB / 1.051 GB, free: 3.84 MB / 0.795 GB Notification: Performance of pre-optimization done (n=14): time 1.583e-06/0.7114, allocations: 0 / 1.051 GB, free: 3.84 MB / 0.795 GB Notification: Performance of matching and sorting (n=14): time 0.0006495/0.7121, allocations: 255.4 kB / 1.051 GB, free: 3.586 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.555e-05/0.7121, allocations: 51.41 kB / 1.051 GB, free: 3.523 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005349/0.7127, allocations: 477.9 kB / 1.051 GB, free: 3.043 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.394e-05/0.7127, allocations: 33.7 kB / 1.051 GB, free: 3.004 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001829/0.7129, allocations: 228.5 kB / 1.052 GB, free: 2.777 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.692e-05/0.7129, allocations: 43.36 kB / 1.052 GB, free: 2.734 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.769e-05/0.713, allocations: 25.7 kB / 1.052 GB, free: 2.703 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001547/0.7131, allocations: 362.7 kB / 1.052 GB, free: 2.34 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001845/0.7133, allocations: 71.95 kB / 1.052 GB, free: 2.27 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002572/0.7136, allocations: 154 kB / 1.052 GB, free: 2.094 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003633/0.714, allocations: 182.3 kB / 1.052 GB, free: 1.906 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.714, allocations: 0 / 1.052 GB, free: 1.906 MB / 0.795 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000524/0.7145, allocations: 270.4 kB / 1.053 GB, free: 1.637 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.351e-05/0.7146, allocations: 103.3 kB / 1.053 GB, free: 1.523 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/0.7146, allocations: 0 / 1.053 GB, free: 1.523 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.7146, allocations: 4 kB / 1.053 GB, free: 1.52 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002501/0.7149, allocations: 55.91 kB / 1.053 GB, free: 1.465 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.7149, allocations: 3.938 kB / 1.053 GB, free: 1.461 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000337/0.7152, allocations: 43.75 kB / 1.053 GB, free: 1.418 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.246e-05/0.7153, allocations: 11.98 kB / 1.053 GB, free: 1.406 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.322e-06/0.7153, allocations: 8 kB / 1.053 GB, free: 1.398 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0004271/0.7157, allocations: 189.6 kB / 1.053 GB, free: 1.215 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.984e-06/0.7157, allocations: 0 / 1.053 GB, free: 1.215 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.364e-06/0.7157, allocations: 0 / 1.053 GB, free: 1.215 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002109/0.7159, allocations: 59.91 kB / 1.053 GB, free: 1.156 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.716, allocations: 3.984 kB / 1.053 GB, free: 1.152 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003052/0.7163, allocations: 43.72 kB / 1.053 GB, free: 1.109 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.976e-05/0.7163, allocations: 8 kB / 1.053 GB, free: 1.102 MB / 0.795 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.0002206/0.7165, allocations: 249 kB / 1.053 GB, free: 0.8477 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.756e-05/0.7166, allocations: 39.53 kB / 1.054 GB, free: 0.8086 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005727/0.7172, allocations: 261.1 kB / 1.054 GB, free: 0.543 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.7172, allocations: 8 kB / 1.054 GB, free: 0.5352 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.7172, allocations: 96 / 1.054 GB, free: 0.5352 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.7172, allocations: 3.938 kB / 1.054 GB, free: 0.5312 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001016/0.7182, allocations: 0.7122 MB / 1.054 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.7183, allocations: 4 kB / 1.054 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001249/0.7184, allocations: 31.92 kB / 1.055 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.093e-06/0.7184, allocations: 4 kB / 1.055 GB, free: 15.71 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.7184, allocations: 7.922 kB / 1.055 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.7184, allocations: 4 kB / 1.055 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.7184, allocations: 3.938 kB / 1.055 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005036/0.7189, allocations: 359.8 kB / 1.055 GB, free: 15.32 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001504/0.7191, allocations: 140.5 kB / 1.055 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.313e-05/0.7192, allocations: 11.98 kB / 1.055 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002314/0.7194, allocations: 15.98 kB / 1.055 GB, free: 15.13 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.441e-05/0.7195, allocations: 23.92 kB / 1.055 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.337e-05/0.7195, allocations: 4 kB / 1.055 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0003699/0.7199, allocations: 338.9 kB / 1.055 GB, free: 14.78 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7199, allocations: 0 / 1.055 GB, free: 14.78 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0006693/0.7205, allocations: 199.6 kB / 1.056 GB, free: 14.58 MB / 0.8106 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.001238/0.7218, allocations: 489.6 kB / 1.056 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000689/0.7225, allocations: 287.6 kB / 1.056 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.7225, allocations: 0 / 1.056 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001927/0.7227, allocations: 83.89 kB / 1.056 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001406/0.7241, allocations: 228.2 kB / 1.057 GB, free: 13.65 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001338/0.7255, allocations: 0.8914 MB / 1.057 GB, free: 12.71 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004059/0.7259, allocations: 0.8233 MB / 1.058 GB, free: 11.87 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.88e-05/0.726, allocations: 39.44 kB / 1.058 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of SimCode: time 3.31e-07/0.726, allocations: 0 / 1.058 GB, free: 11.83 MB / 0.8106 GB Notification: Performance of Templates: time 0.01138/0.7374, allocations: 7.343 MB / 1.065 GB, free: 4.555 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.makefile (rm -f Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & ./Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches