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.004294/0.004294, allocations: 98.14 kB / 15.73 MB, free: 6.062 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.001048/0.001048, allocations: 195.6 kB / 16.68 MB, free: 5.969 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.284/1.284, allocations: 222.9 MB / 240.4 MB, free: 15.1 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.386/2.386, allocations: 437.1 MB / 0.7105 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001466/0.001466, allocations: 63.89 kB / 1.018 GB, free: 9.891 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6876/0.6891, allocations: 151.6 MB / 1.166 GB, free: 3.766 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesTable): time 0.01563/0.7048, allocations: 15.55 MB / 1.181 GB, free: 4.164 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.005902/0.7107, allocations: 4.335 MB / 1.186 GB, free: 15.81 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003936/0.7111, allocations: 11.94 kB / 1.186 GB, free: 15.8 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0008771/0.712, allocations: 270.3 kB / 1.186 GB, free: 15.54 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.001448/0.7135, allocations: 0.6297 MB / 1.186 GB, free: 14.9 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.001762/0.7153, allocations: 0.7156 MB / 1.187 GB, free: 14.2 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.001135/0.7164, allocations: 1.025 MB / 1.188 GB, free: 13.16 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000435/0.7169, allocations: 335.8 kB / 1.188 GB, free: 12.83 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006988/0.7176, allocations: 426.4 kB / 1.189 GB, free: 12.41 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004199/0.718, allocations: 322.5 kB / 1.189 GB, free: 12.09 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 5.999e-05/0.7181, allocations: 28 kB / 1.189 GB, free: 12.07 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001046/0.7191, allocations: 0.6317 MB / 1.19 GB, free: 11.43 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0001129/0.7192, allocations: 103.5 kB / 1.19 GB, free: 11.33 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.0001965/0.7195, allocations: 218.8 kB / 1.19 GB, free: 11.12 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.001015/0.7205, allocations: 0.7703 MB / 1.191 GB, free: 10.35 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.7205, allocations: 0 / 1.191 GB, free: 10.35 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.272e-06/0.7205, allocations: 0 / 1.191 GB, free: 10.35 MB / 0.92 GB Notification: Performance of Transformations before backend: time 7.915e-06/0.7205, allocations: 4 kB / 1.191 GB, free: 10.34 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.001203/0.7217, allocations: 0.8476 MB / 1.192 GB, free: 9.445 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.7218, allocations: 12.92 kB / 1.192 GB, free: 9.434 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.48e-05/0.7218, allocations: 58.73 kB / 1.192 GB, free: 9.367 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.701e-05/0.7219, allocations: 52.61 kB / 1.192 GB, free: 9.316 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006764/0.7226, allocations: 453.5 kB / 1.192 GB, free: 8.832 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.929e-05/0.7226, allocations: 20.44 kB / 1.192 GB, free: 8.812 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.115e-05/0.7227, allocations: 24 kB / 1.192 GB, free: 8.789 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004091/0.7231, allocations: 215.2 kB / 1.193 GB, free: 8.574 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.7231, allocations: 0 / 1.193 GB, free: 8.574 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.936e-05/0.7232, allocations: 7.938 kB / 1.193 GB, free: 8.566 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.7232, allocations: 8 kB / 1.193 GB, free: 8.559 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003711/0.7235, allocations: 161.6 kB / 1.193 GB, free: 8.402 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.7251, allocations: 0.946 MB / 1.194 GB, free: 7.375 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002828/0.7254, allocations: 138.5 kB / 1.194 GB, free: 7.23 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001532/0.7256, allocations: 68.81 kB / 1.194 GB, free: 7.16 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002571/0.7258, allocations: 336.4 kB / 1.194 GB, free: 6.758 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.18e-05/0.7258, allocations: 30.56 kB / 1.194 GB, free: 6.719 MB / 0.92 GB Notification: Performance of pre-optimization done (n=14): time 1.442e-06/0.7259, allocations: 0 / 1.194 GB, free: 6.719 MB / 0.92 GB Notification: Performance of matching and sorting (n=14): time 0.0005892/0.7265, allocations: 254.1 kB / 1.194 GB, free: 6.465 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.89e-05/0.7265, allocations: 55.41 kB / 1.194 GB, free: 6.398 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000476/0.727, allocations: 470 kB / 1.195 GB, free: 5.93 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.769e-05/0.727, allocations: 33.7 kB / 1.195 GB, free: 5.891 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001545/0.7272, allocations: 232.7 kB / 1.195 GB, free: 5.66 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.358e-05/0.7272, allocations: 47.58 kB / 1.195 GB, free: 5.613 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.299e-05/0.7273, allocations: 65.64 kB / 1.195 GB, free: 5.543 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.7274, allocations: 358.7 kB / 1.196 GB, free: 5.184 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001741/0.7276, allocations: 68.81 kB / 1.196 GB, free: 5.113 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003038/0.7279, allocations: 154.1 kB / 1.196 GB, free: 4.938 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003581/0.7283, allocations: 168.7 kB / 1.196 GB, free: 4.766 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.7283, allocations: 4 kB / 1.196 GB, free: 4.762 MB / 0.92 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004977/0.7288, allocations: 249.3 kB / 1.196 GB, free: 4.512 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.7288, allocations: 7.984 kB / 1.196 GB, free: 4.504 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.7289, allocations: 8 kB / 1.196 GB, free: 4.496 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.7289, allocations: 0 / 1.196 GB, free: 4.496 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002288/0.7291, allocations: 51.91 kB / 1.196 GB, free: 4.445 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.001e-06/0.7291, allocations: 0 / 1.196 GB, free: 4.445 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003159/0.7294, allocations: 31.88 kB / 1.196 GB, free: 4.414 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.132e-05/0.7295, allocations: 15.92 kB / 1.196 GB, free: 4.398 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002695/0.7298, allocations: 192 kB / 1.197 GB, free: 4.207 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000235/0.73, allocations: 161.2 kB / 1.197 GB, free: 4.016 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0003201/0.7303, allocations: 173.7 kB / 1.197 GB, free: 3.832 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.262e-06/0.7304, allocations: 0 / 1.197 GB, free: 3.832 MB / 0.92 GB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0004956/0.7309, allocations: 254.6 kB / 1.197 GB, free: 3.578 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 9.558e-06/0.7309, allocations: 4 kB / 1.197 GB, free: 3.574 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.758e-06/0.7309, allocations: 4 kB / 1.197 GB, free: 3.57 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.148e-06/0.7309, allocations: 0 / 1.197 GB, free: 3.57 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000196/0.7311, allocations: 51.97 kB / 1.197 GB, free: 3.52 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.146e-06/0.7311, allocations: 0 / 1.197 GB, free: 3.52 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003274/0.7314, allocations: 40.05 kB / 1.197 GB, free: 3.48 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.294e-05/0.7315, allocations: 8 kB / 1.197 GB, free: 3.473 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.0001089/0.7316, allocations: 204.1 kB / 1.197 GB, free: 3.266 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.477e-05/0.7317, allocations: 43.91 kB / 1.197 GB, free: 3.223 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000533/0.7322, allocations: 255.8 kB / 1.198 GB, free: 2.973 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.114e-06/0.7322, allocations: 0 / 1.198 GB, free: 2.973 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.7322, allocations: 3.984 kB / 1.198 GB, free: 2.969 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.7322, allocations: 3.938 kB / 1.198 GB, free: 2.965 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000982/0.7332, allocations: 0.7006 MB / 1.198 GB, free: 2.195 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.7332, allocations: 4 kB / 1.198 GB, free: 2.191 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001225/0.7334, allocations: 27.98 kB / 1.198 GB, free: 2.164 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.7334, allocations: 4 kB / 1.198 GB, free: 2.16 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.7334, allocations: 7.938 kB / 1.198 GB, free: 2.152 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.7334, allocations: 7.922 kB / 1.198 GB, free: 2.145 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.632e-06/0.7334, allocations: 7.938 kB / 1.198 GB, free: 2.137 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005033/0.7339, allocations: 334.7 kB / 1.199 GB, free: 1.781 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001465/0.7341, allocations: 136.7 kB / 1.199 GB, free: 1.629 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.867e-05/0.7342, allocations: 15.92 kB / 1.199 GB, free: 1.613 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002094/0.7344, allocations: 15.98 kB / 1.199 GB, free: 1.598 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.648e-05/0.7344, allocations: 11.98 kB / 1.199 GB, free: 1.586 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.592e-05/0.7345, allocations: 8 kB / 1.199 GB, free: 1.578 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.0003515/0.7348, allocations: 338.8 kB / 1.199 GB, free: 1.25 MB / 0.92 GB Notification: Performance of sort global known variables: time 2.81e-07/0.7348, allocations: 0 / 1.199 GB, free: 1.25 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0006532/0.7355, allocations: 199.6 kB / 1.199 GB, free: 1.055 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.001877/0.7374, allocations: 1.268 MB / 1.201 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006872/0.7381, allocations: 266.2 kB / 1.201 GB, free: 15.63 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.7381, allocations: 0 / 1.201 GB, free: 15.63 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002042/0.7383, allocations: 91.77 kB / 1.201 GB, free: 15.54 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001005/0.7393, allocations: 198.4 kB / 1.201 GB, free: 15.35 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004442/0.7438, allocations: 3.355 MB / 1.204 GB, free: 11.88 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003959/0.7442, allocations: 0.827 MB / 1.205 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.0002882/0.7445, allocations: 95.14 kB / 1.205 GB, free: 10.94 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001871/0.7447, allocations: 139.4 kB / 1.206 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of SimCode: time 6.11e-07/0.7447, allocations: 0 / 1.206 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03152/0.7762, allocations: 12.82 MB / 1.218 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.056/8.832, allocations: 13.42 kB / 1.218 GB, free: 14.1 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