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: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="Buildings_10_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="Buildings_10_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008411/0.008411, allocations: 100.5 kB / 15.73 MB, free: 6.047 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.001885/0.001885, allocations: 195.4 kB / 16.67 MB, free: 5.949 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.301/1.301, allocations: 222.9 MB / 240.4 MB, free: 15.15 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.344/2.344, allocations: 437 MB / 0.7105 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 63.91 kB / 1.018 GB, free: 9.906 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6941/0.6954, allocations: 151.6 MB / 1.166 GB, free: 3.812 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01533/0.7108, allocations: 15.55 MB / 1.181 GB, free: 4.207 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.005476/0.7163, allocations: 4.328 MB / 1.186 GB, free: 15.86 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002745/0.7166, allocations: 15.88 kB / 1.186 GB, free: 15.84 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0007683/0.7174, allocations: 270.3 kB / 1.186 GB, free: 15.58 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.001117/0.7185, allocations: 0.6335 MB / 1.186 GB, free: 14.94 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.001517/0.7201, allocations: 0.7125 MB / 1.187 GB, free: 14.24 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.001069/0.7211, allocations: 1.037 MB / 1.188 GB, free: 13.2 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004212/0.7216, allocations: 327.8 kB / 1.188 GB, free: 12.87 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005658/0.7221, allocations: 430.3 kB / 1.189 GB, free: 12.45 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003752/0.7225, allocations: 326.5 kB / 1.189 GB, free: 12.12 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 5.122e-05/0.7226, allocations: 28 kB / 1.189 GB, free: 12.1 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009157/0.7235, allocations: 0.6278 MB / 1.19 GB, free: 11.47 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.7236, allocations: 103.5 kB / 1.19 GB, free: 11.37 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0002094/0.7239, allocations: 222.8 kB / 1.19 GB, free: 11.15 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0009231/0.7248, allocations: 0.7702 MB / 1.191 GB, free: 10.38 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.7248, allocations: 0 / 1.191 GB, free: 10.38 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.392e-06/0.7248, allocations: 0 / 1.191 GB, free: 10.38 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.925e-06/0.7248, allocations: 4 kB / 1.191 GB, free: 10.38 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.001121/0.7259, allocations: 0.8438 MB / 1.192 GB, free: 9.48 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.726, allocations: 12.92 kB / 1.192 GB, free: 9.469 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.572e-05/0.7261, allocations: 58.67 kB / 1.192 GB, free: 9.402 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.165e-05/0.7262, allocations: 52.61 kB / 1.192 GB, free: 9.352 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006387/0.7268, allocations: 445.6 kB / 1.192 GB, free: 8.875 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.826e-05/0.7268, allocations: 20.44 kB / 1.192 GB, free: 8.855 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.234e-05/0.7269, allocations: 24 kB / 1.192 GB, free: 8.832 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003997/0.7273, allocations: 215.2 kB / 1.193 GB, free: 8.617 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.7273, allocations: 0 / 1.193 GB, free: 8.617 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.188e-05/0.7273, allocations: 11.94 kB / 1.193 GB, free: 8.605 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.074e-06/0.7273, allocations: 8 kB / 1.193 GB, free: 8.598 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003742/0.7277, allocations: 169.6 kB / 1.193 GB, free: 8.434 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.001468/0.7292, allocations: 0.946 MB / 1.194 GB, free: 7.406 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002767/0.7295, allocations: 138.6 kB / 1.194 GB, free: 7.262 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.7296, allocations: 68.81 kB / 1.194 GB, free: 7.191 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002531/0.7299, allocations: 332.4 kB / 1.194 GB, free: 6.793 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.842e-05/0.7299, allocations: 30.56 kB / 1.194 GB, free: 6.754 MB / 0.92 GB Notification: Performance of pre-optimization done (n=14): time 2.635e-06/0.7299, allocations: 0 / 1.194 GB, free: 6.754 MB / 0.92 GB Notification: Performance of matching and sorting (n=14): time 0.0005927/0.7305, allocations: 258.4 kB / 1.194 GB, free: 6.496 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.576e-05/0.7306, allocations: 55.41 kB / 1.194 GB, free: 6.43 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004766/0.7311, allocations: 474 kB / 1.195 GB, free: 5.957 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.7311, allocations: 29.7 kB / 1.195 GB, free: 5.922 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001664/0.7313, allocations: 236.7 kB / 1.195 GB, free: 5.688 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.498e-05/0.7313, allocations: 47.64 kB / 1.195 GB, free: 5.641 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.977e-05/0.7314, allocations: 69.64 kB / 1.195 GB, free: 5.566 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.7316, allocations: 354.7 kB / 1.196 GB, free: 5.211 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001824/0.7318, allocations: 72.81 kB / 1.196 GB, free: 5.137 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000254/0.732, allocations: 152.8 kB / 1.196 GB, free: 4.961 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003442/0.7324, allocations: 164.8 kB / 1.196 GB, free: 4.793 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.7324, allocations: 4 kB / 1.196 GB, free: 4.789 MB / 0.92 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004954/0.7329, allocations: 249.2 kB / 1.196 GB, free: 4.539 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.7329, allocations: 7.938 kB / 1.196 GB, free: 4.531 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.7329, allocations: 8 kB / 1.196 GB, free: 4.523 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.078e-05/0.7329, allocations: 0 / 1.196 GB, free: 4.523 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002214/0.7332, allocations: 43.97 kB / 1.196 GB, free: 4.48 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.7332, allocations: 0 / 1.196 GB, free: 4.48 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002952/0.7335, allocations: 31.88 kB / 1.196 GB, free: 4.449 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.72e-05/0.7335, allocations: 11.98 kB / 1.196 GB, free: 4.438 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002672/0.7338, allocations: 192 kB / 1.197 GB, free: 4.246 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002371/0.734, allocations: 171.4 kB / 1.197 GB, free: 4.047 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003223/0.7344, allocations: 169.5 kB / 1.197 GB, free: 3.867 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.192e-06/0.7344, allocations: 3.938 kB / 1.197 GB, free: 3.863 MB / 0.92 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0004754/0.7348, allocations: 257.2 kB / 1.197 GB, free: 3.605 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 9.668e-06/0.7349, allocations: 6.656 kB / 1.197 GB, free: 3.602 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.106e-06/0.7349, allocations: 4 kB / 1.197 GB, free: 3.598 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.414e-06/0.7349, allocations: 0 / 1.197 GB, free: 3.598 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000201/0.7351, allocations: 52.03 kB / 1.197 GB, free: 3.547 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.7351, allocations: 3.938 kB / 1.197 GB, free: 3.543 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003291/0.7354, allocations: 39.86 kB / 1.197 GB, free: 3.504 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.588e-05/0.7355, allocations: 8 kB / 1.197 GB, free: 3.496 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.00011/0.7356, allocations: 196.2 kB / 1.197 GB, free: 3.297 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.035e-05/0.7357, allocations: 43.72 kB / 1.197 GB, free: 3.254 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005197/0.7362, allocations: 257.1 kB / 1.198 GB, free: 3 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.7362, allocations: 3.984 kB / 1.198 GB, free: 2.996 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.7362, allocations: 0 / 1.198 GB, free: 2.996 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.7362, allocations: 0 / 1.198 GB, free: 2.996 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009245/0.7371, allocations: 0.7023 MB / 1.198 GB, free: 2.227 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.7372, allocations: 4.188 kB / 1.198 GB, free: 2.223 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001219/0.7373, allocations: 27.92 kB / 1.198 GB, free: 2.195 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.7373, allocations: 7.938 kB / 1.198 GB, free: 2.188 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.351e-05/0.7373, allocations: 7.938 kB / 1.198 GB, free: 2.18 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.7373, allocations: 3.984 kB / 1.198 GB, free: 2.176 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.7373, allocations: 0 / 1.198 GB, free: 2.176 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004647/0.7378, allocations: 338.7 kB / 1.199 GB, free: 1.816 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001307/0.7379, allocations: 144.7 kB / 1.199 GB, free: 1.656 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.145e-05/0.738, allocations: 11.88 kB / 1.199 GB, free: 1.645 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.7382, allocations: 23.92 kB / 1.199 GB, free: 1.621 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.177e-05/0.7383, allocations: 7.984 kB / 1.199 GB, free: 1.613 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.358e-05/0.7383, allocations: 12 kB / 1.199 GB, free: 1.602 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0003291/0.7386, allocations: 330.9 kB / 1.199 GB, free: 1.281 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7386, allocations: 0 / 1.199 GB, free: 1.281 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0005738/0.7392, allocations: 203.6 kB / 1.199 GB, free: 1.082 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.001687/0.7409, allocations: 1.257 MB / 1.201 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005993/0.7415, allocations: 277.6 kB / 1.201 GB, free: 15.66 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.7415, allocations: 0 / 1.201 GB, free: 15.66 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001806/0.7417, allocations: 79.89 kB / 1.201 GB, free: 15.58 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000964/0.7427, allocations: 198.5 kB / 1.201 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003936/0.7466, allocations: 3.346 MB / 1.204 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003313/0.747, allocations: 0.8269 MB / 1.205 GB, free: 11.07 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0002356/0.7472, allocations: 99.12 kB / 1.205 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001783/0.7474, allocations: 139.4 kB / 1.205 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of SimCode: time 3.9e-07/0.7474, allocations: 3.938 kB / 1.206 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02865/0.7761, allocations: 12.83 MB / 1.218 GB, free: 14.14 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.999/8.775, allocations: 9.656 kB / 1.218 GB, free: 14.14 MB / 0.9512 GB (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 & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.fmu > Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable_res.csv","/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