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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001244/0.001244, allocations: 103.8 kB / 16.41 MB, free: 6.449 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.001467/0.001467, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.387/1.387, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.581/2.581, allocations: 437 MB / 0.7112 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001589/0.001589, allocations: 67.91 kB / 1.019 GB, free: 9.395 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8955/0.8971, allocations: 151.6 MB / 1.167 GB, free: 3.852 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01651/0.9136, allocations: 15.55 MB / 1.182 GB, free: 4.246 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.006442/0.9201, allocations: 4.323 MB / 1.187 GB, free: 15.9 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005993/0.9208, allocations: 15.88 kB / 1.187 GB, free: 15.89 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0008617/0.9217, allocations: 278.3 kB / 1.187 GB, free: 15.61 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.001434/0.9231, allocations: 0.6232 MB / 1.188 GB, free: 14.99 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.001779/0.9249, allocations: 0.7116 MB / 1.188 GB, free: 14.29 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.001182/0.9261, allocations: 1.04 MB / 1.189 GB, free: 13.24 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004509/0.9266, allocations: 335.6 kB / 1.19 GB, free: 12.91 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006359/0.9272, allocations: 430.3 kB / 1.19 GB, free: 12.48 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004073/0.9276, allocations: 314.5 kB / 1.19 GB, free: 12.18 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 4.996e-05/0.9277, allocations: 28 kB / 1.19 GB, free: 12.15 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001056/0.9288, allocations: 0.6356 MB / 1.191 GB, free: 11.51 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.000103/0.9289, allocations: 103.6 kB / 1.191 GB, free: 11.41 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0002021/0.9291, allocations: 222.8 kB / 1.191 GB, free: 11.19 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0009493/0.93, allocations: 0.7651 MB / 1.192 GB, free: 10.43 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.93, allocations: 0 / 1.192 GB, free: 10.43 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.252e-06/0.9301, allocations: 0 / 1.192 GB, free: 10.43 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.073e-06/0.9301, allocations: 0 / 1.192 GB, free: 10.43 MB / 0.92 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.001184/0.9313, allocations: 0.8329 MB / 1.193 GB, free: 9.543 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.9313, allocations: 8.031 kB / 1.193 GB, free: 9.535 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001043/0.9314, allocations: 56.28 kB / 1.193 GB, free: 9.48 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006347/0.932, allocations: 425.5 kB / 1.193 GB, free: 9.023 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.151e-05/0.9321, allocations: 20.44 kB / 1.193 GB, free: 9.004 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.293e-05/0.9321, allocations: 31.98 kB / 1.193 GB, free: 8.973 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004277/0.9326, allocations: 211.2 kB / 1.194 GB, free: 8.762 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.9326, allocations: 0 / 1.194 GB, free: 8.762 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.277e-05/0.9326, allocations: 12 kB / 1.194 GB, free: 8.75 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.9326, allocations: 7.938 kB / 1.194 GB, free: 8.742 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003656/0.933, allocations: 165.6 kB / 1.194 GB, free: 8.582 MB / 0.92 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.001533/0.9345, allocations: 0.9456 MB / 1.195 GB, free: 7.555 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002791/0.9348, allocations: 130.6 kB / 1.195 GB, free: 7.418 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001499/0.935, allocations: 76.73 kB / 1.195 GB, free: 7.34 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002893/0.9353, allocations: 340.4 kB / 1.195 GB, free: 6.934 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.574e-05/0.9353, allocations: 34.56 kB / 1.195 GB, free: 6.891 MB / 0.92 GB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.9353, allocations: 0 / 1.195 GB, free: 6.891 MB / 0.92 GB Notification: Performance of matching and sorting (n=14): time 0.0006036/0.9359, allocations: 230.1 kB / 1.195 GB, free: 6.66 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.866e-05/0.936, allocations: 55.39 kB / 1.195 GB, free: 6.594 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004998/0.9365, allocations: 485.9 kB / 1.196 GB, free: 6.109 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 5.808e-05/0.9366, allocations: 33.7 kB / 1.196 GB, free: 6.07 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001743/0.9367, allocations: 232.6 kB / 1.196 GB, free: 5.84 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.478e-05/0.9368, allocations: 47.3 kB / 1.196 GB, free: 5.793 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.191e-05/0.9369, allocations: 65.59 kB / 1.196 GB, free: 5.723 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001591/0.937, allocations: 350.7 kB / 1.197 GB, free: 5.371 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001853/0.9372, allocations: 76.75 kB / 1.197 GB, free: 5.293 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002536/0.9375, allocations: 151.7 kB / 1.197 GB, free: 5.117 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003333/0.9378, allocations: 164.9 kB / 1.197 GB, free: 4.949 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.9379, allocations: 4 kB / 1.197 GB, free: 4.945 MB / 0.92 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005098/0.9384, allocations: 245 kB / 1.197 GB, free: 4.699 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.961e-05/0.9384, allocations: 8 kB / 1.197 GB, free: 4.691 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.9384, allocations: 0 / 1.197 GB, free: 4.691 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.9384, allocations: 4 kB / 1.197 GB, free: 4.688 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002357/0.9387, allocations: 43.97 kB / 1.197 GB, free: 4.645 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.9387, allocations: 15.91 kB / 1.197 GB, free: 4.629 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003033/0.939, allocations: 39.67 kB / 1.197 GB, free: 4.59 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.232e-05/0.939, allocations: 15.98 kB / 1.197 GB, free: 4.574 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000275/0.9393, allocations: 188.1 kB / 1.198 GB, free: 4.387 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002461/0.9396, allocations: 163.7 kB / 1.198 GB, free: 4.195 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003216/0.9399, allocations: 173.6 kB / 1.198 GB, free: 4.012 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.667e-06/0.9399, allocations: 0 / 1.198 GB, free: 4.012 MB / 0.92 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0004827/0.9404, allocations: 261.1 kB / 1.198 GB, free: 3.75 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.013e-05/0.9404, allocations: 10.5 kB / 1.198 GB, free: 3.742 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.834e-06/0.9404, allocations: 0 / 1.198 GB, free: 3.742 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.906e-06/0.9404, allocations: 0 / 1.198 GB, free: 3.742 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002128/0.9407, allocations: 47.91 kB / 1.198 GB, free: 3.695 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.9407, allocations: 4 kB / 1.198 GB, free: 3.691 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003229/0.941, allocations: 31.88 kB / 1.198 GB, free: 3.66 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.834e-05/0.941, allocations: 4.062 kB / 1.198 GB, free: 3.656 MB / 0.92 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.0001268/0.9412, allocations: 210.3 kB / 1.198 GB, free: 3.445 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.019e-05/0.9412, allocations: 43.44 kB / 1.198 GB, free: 3.402 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005258/0.9418, allocations: 245.2 kB / 1.199 GB, free: 3.16 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.845e-06/0.9418, allocations: 4 kB / 1.199 GB, free: 3.156 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.9418, allocations: 0 / 1.199 GB, free: 3.156 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.741e-06/0.9418, allocations: 7.984 kB / 1.199 GB, free: 3.148 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000957/0.9428, allocations: 0.7018 MB / 1.199 GB, free: 2.379 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.9428, allocations: 0 / 1.199 GB, free: 2.379 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001253/0.9429, allocations: 31.92 kB / 1.199 GB, free: 2.348 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.9429, allocations: 4.125 kB / 1.199 GB, free: 2.344 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.453e-05/0.9429, allocations: 8 kB / 1.199 GB, free: 2.336 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.819e-06/0.943, allocations: 7.938 kB / 1.199 GB, free: 2.328 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.943, allocations: 192 / 1.199 GB, free: 2.328 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004475/0.9434, allocations: 338.3 kB / 1.2 GB, free: 1.969 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001433/0.9436, allocations: 144.4 kB / 1.2 GB, free: 1.809 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.617e-05/0.9436, allocations: 3.984 kB / 1.2 GB, free: 1.805 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002082/0.9438, allocations: 19.92 kB / 1.2 GB, free: 1.785 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.225e-05/0.9439, allocations: 15.92 kB / 1.2 GB, free: 1.77 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.574e-05/0.9439, allocations: 12 kB / 1.2 GB, free: 1.758 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0003411/0.9443, allocations: 338.9 kB / 1.2 GB, free: 1.43 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9443, allocations: 0 / 1.2 GB, free: 1.43 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0006407/0.9449, allocations: 195.7 kB / 1.2 GB, free: 1.238 MB / 0.92 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.001041/0.946, allocations: 475.8 kB / 1.201 GB, free: 0.9023 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.000631/0.9466, allocations: 271.7 kB / 1.201 GB, free: 0.6367 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.9466, allocations: 0 / 1.201 GB, free: 0.6367 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001972/0.9468, allocations: 88.2 kB / 1.201 GB, free: 0.5508 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009522/0.9478, allocations: 202.5 kB / 1.201 GB, free: 368 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001171/0.949, allocations: 0.7379 MB / 1.202 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004054/0.9494, allocations: 0.827 MB / 1.203 GB, free: 14.72 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.729e-05/0.9495, allocations: 39.42 kB / 1.203 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of SimCode: time 2.5e-07/0.9495, allocations: 0 / 1.203 GB, free: 14.68 MB / 0.9356 GB Notification: Performance of Templates: time 0.01109/0.9606, allocations: 7.375 MB / 1.21 GB, free: 7.371 MB / 0.9356 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