Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.DryWetSelector.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.DXSystems.Cooling.BaseClasses.Examples.DryWetSelector,fileNamePrefix="Buildings_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_DryWetSelector",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.DryWetSelector,fileNamePrefix="Buildings_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_DryWetSelector",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.001632/0.001632, allocations: 108 kB / 15.61 MB, free: 152 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.001924/0.001924, allocations: 192.8 kB / 16.53 MB, free: 6.664 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.331/1.331, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.648/2.648, allocations: 469.4 MB / 0.742 GB, free: 7.699 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 66.95 kB / 0.9083 GB, free: 34.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2384, allocations: 159.1 MB / 1.064 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.DryWetSelector): time 0.002574/0.241, allocations: 1.733 MB / 1.065 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009828/0.242, allocations: 0.721 MB / 1.066 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.616e-05/0.2421, allocations: 4 kB / 1.066 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.754e-05/0.2421, allocations: 11.86 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.27e-05/0.2422, allocations: 23.73 kB / 1.066 GB, free: 12 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003308/0.2425, allocations: 95.7 kB / 1.066 GB, free: 11.9 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001117/0.2427, allocations: 111.6 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.2428, allocations: 37.03 kB / 1.066 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.894e-05/0.2429, allocations: 43.84 kB / 1.066 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.627e-05/0.2429, allocations: 55.7 kB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.04e-05/0.243, allocations: 16 kB / 1.066 GB, free: 11.64 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002117/0.2432, allocations: 103.9 kB / 1.067 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.295e-05/0.2432, allocations: 23.86 kB / 1.067 GB, free: 11.52 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.991e-05/0.2433, allocations: 51.73 kB / 1.067 GB, free: 11.47 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001924/0.2435, allocations: 147.6 kB / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.2435, allocations: 0 / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.153e-06/0.2435, allocations: 0 / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.399e-06/0.2435, allocations: 0 / 1.067 GB, free: 11.32 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 23 * Number of variables: 23 Notification: Performance of Generate backend data structure: time 0.0005736/0.2441, allocations: 447 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.2441, allocations: 12.03 kB / 1.067 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.777e-05/0.2441, allocations: 38.75 kB / 1.067 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.384e-05/0.2442, allocations: 16.75 kB / 1.067 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001033/0.2443, allocations: 180.2 kB / 1.067 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.2443, allocations: 16.25 kB / 1.067 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.468e-05/0.2443, allocations: 8.375 kB / 1.067 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003069/0.2446, allocations: 121.8 kB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.2447, allocations: 3.984 kB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.2447, allocations: 7.938 kB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.262e-06/0.2447, allocations: 4 kB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003716/0.2451, allocations: 107.8 kB / 1.068 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000485/0.2456, allocations: 404.3 kB / 1.068 GB, free: 9.836 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003102/0.2459, allocations: 110.5 kB / 1.068 GB, free: 9.719 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001954/0.2461, allocations: 60.81 kB / 1.068 GB, free: 9.656 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000437/0.2465, allocations: 0.5622 MB / 1.069 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.2466, allocations: 30.56 kB / 1.069 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=9): time 1.303e-06/0.2466, allocations: 0 / 1.069 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9): time 0.0006381/0.2472, allocations: 193.4 kB / 1.069 GB, free: 8.73 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.881e-05/0.2473, allocations: 51.41 kB / 1.069 GB, free: 8.668 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.2474, allocations: 163.3 kB / 1.069 GB, free: 8.496 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.526e-05/0.2474, allocations: 29.7 kB / 1.069 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.935e-05/0.2475, allocations: 100 kB / 1.069 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.151e-05/0.2475, allocations: 31.55 kB / 1.069 GB, free: 8.328 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.114e-05/0.2475, allocations: 17.72 kB / 1.069 GB, free: 8.305 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.178e-05/0.2476, allocations: 330.8 kB / 1.07 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001766/0.2478, allocations: 43.95 kB / 1.07 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001643/0.248, allocations: 47.89 kB / 1.07 GB, free: 7.883 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003299/0.2483, allocations: 97.34 kB / 1.07 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2483, allocations: 4 kB / 1.07 GB, free: 7.781 MB / 0.8262 GB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000393/0.2487, allocations: 141.4 kB / 1.07 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.2488, allocations: 7.938 kB / 1.07 GB, free: 7.629 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.2488, allocations: 4 kB / 1.07 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.979e-06/0.2488, allocations: 0 / 1.07 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001619/0.249, allocations: 31.97 kB / 1.07 GB, free: 7.594 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.479e-06/0.249, allocations: 4 kB / 1.07 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.2491, allocations: 19.83 kB / 1.07 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-06/0.2491, allocations: 4 kB / 1.07 GB, free: 7.566 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (9): * Single equations (assignments): 9 * 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 7.443e-05/0.2492, allocations: 118.3 kB / 1.07 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.649e-05/0.2492, allocations: 15.78 kB / 1.07 GB, free: 7.426 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004494/0.2497, allocations: 159 kB / 1.07 GB, free: 7.266 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.2497, allocations: 7.938 kB / 1.07 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.2497, allocations: 0 / 1.07 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.2497, allocations: 3.984 kB / 1.07 GB, free: 7.254 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001955/0.2499, allocations: 209.5 kB / 1.071 GB, free: 7 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2499, allocations: 0 / 1.071 GB, free: 7 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001413/0.2501, allocations: 27.97 kB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.2501, allocations: 3.938 kB / 1.071 GB, free: 6.969 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.957e-06/0.2501, allocations: 4 kB / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.2501, allocations: 0 / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.2501, allocations: 4 kB / 1.071 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004361/0.2505, allocations: 235.3 kB / 1.071 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.916e-05/0.2506, allocations: 104.8 kB / 1.071 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.087e-05/0.2506, allocations: 4.281 kB / 1.071 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000136/0.2508, allocations: 11.98 kB / 1.071 GB, free: 6.578 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.835e-05/0.2508, allocations: 7.984 kB / 1.071 GB, free: 6.57 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.61e-06/0.2508, allocations: 3.938 kB / 1.071 GB, free: 6.566 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.864e-05/0.2509, allocations: 124.9 kB / 1.071 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2509, allocations: 0 / 1.071 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002545/0.2512, allocations: 24 kB / 1.071 GB, free: 6.422 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (9): * Single equations (assignments): 9 * 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 Backend phase and start with SimCode phase: time 0.0006767/0.2519, allocations: 0.7786 MB / 1.072 GB, free: 5.617 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003989/0.2523, allocations: 115.8 kB / 1.072 GB, free: 5.504 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.2523, allocations: 7.938 kB / 1.072 GB, free: 5.496 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001839/0.2525, allocations: 55.95 kB / 1.072 GB, free: 5.441 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004123/0.2529, allocations: 25.38 kB / 1.072 GB, free: 5.418 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002117/0.255, allocations: 1.772 MB / 1.074 GB, free: 3.57 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002079/0.2552, allocations: 0.7002 MB / 1.074 GB, free: 2.844 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.398e-05/0.2553, allocations: 20.53 kB / 1.074 GB, free: 2.824 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.531e-05/0.2554, allocations: 27.44 kB / 1.075 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.2554, allocations: 0 / 1.075 GB, free: 2.797 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01731/0.2727, allocations: 3.102 MB / 1.078 GB, free: 15.83 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.16/7.432, allocations: 9.312 kB / 1.078 GB, free: 15.83 MB / 0.8419 GB (rm -f Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.DryWetSelector.pipe ; mkfifo Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.DryWetSelector.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.DryWetSelector.pipe >> ../files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.DryWetSelector.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.DryWetSelector_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 Buildings_latest_Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_DryWetSelector.fmu > Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.DryWetSelector.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.DryWetSelector_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_DXSystems_Cooling_BaseClasses_Examples_DryWetSelector.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.DXSystems.Cooling.BaseClasses.Examples.DryWetSelector.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches