Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975HeatLoss",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975HeatLoss",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.007518/0.007518, allocations: 99.83 kB / 15.73 MB, free: 6.02 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.001893/0.001893, allocations: 193.6 kB / 16.67 MB, free: 5.934 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.327/1.327, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.572/2.572, allocations: 469.4 MB / 0.7422 GB, free: 3.449 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 63.89 kB / 1.064 GB, free: 14.26 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6687/0.6699, allocations: 159.1 MB / 1.22 GB, free: 2.266 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss): time 0.002699/0.6726, allocations: 1.911 MB / 1.222 GB, free: 352 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003508/0.6762, allocations: 3.447 MB / 1.225 GB, free: 12.88 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.736e-05/0.6762, allocations: 4 kB / 1.225 GB, free: 12.87 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0002134/0.6765, allocations: 50.3 kB / 1.225 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0003827/0.6769, allocations: 147.1 kB / 1.225 GB, free: 12.68 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 6.348e-05/0.6769, allocations: 23.95 kB / 1.225 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002029/0.6771, allocations: 171.2 kB / 1.225 GB, free: 12.49 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 8.776e-05/0.6772, allocations: 29.62 kB / 1.225 GB, free: 12.46 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001589/0.6774, allocations: 95.61 kB / 1.225 GB, free: 12.37 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001342/0.6775, allocations: 83.61 kB / 1.226 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.349e-05/0.6776, allocations: 8 kB / 1.226 GB, free: 12.28 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 7.786e-05/0.6777, allocations: 31.92 kB / 1.226 GB, free: 12.25 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 5.819e-05/0.6777, allocations: 35.84 kB / 1.226 GB, free: 12.21 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 8.727e-05/0.6778, allocations: 83.52 kB / 1.226 GB, free: 12.13 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002041/0.678, allocations: 176.1 kB / 1.226 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.678, allocations: 0 / 1.226 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.082e-06/0.678, allocations: 0 / 1.226 GB, free: 11.96 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.258e-06/0.6781, allocations: 0 / 1.226 GB, free: 11.96 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0008524/0.6789, allocations: 0.5138 MB / 1.226 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.081e-05/0.679, allocations: 8.625 kB / 1.226 GB, free: 11.39 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.015e-05/0.679, allocations: 38.75 kB / 1.226 GB, free: 11.34 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.207e-05/0.679, allocations: 20.8 kB / 1.226 GB, free: 11.32 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003275/0.6794, allocations: 258.9 kB / 1.227 GB, free: 11.03 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.625e-06/0.6794, allocations: 384 / 1.227 GB, free: 11.03 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.921e-05/0.6794, allocations: 4.375 kB / 1.227 GB, free: 11.02 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003481/0.6798, allocations: 149.5 kB / 1.227 GB, free: 10.87 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.6798, allocations: 0 / 1.227 GB, free: 10.87 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.424e-05/0.6798, allocations: 0 / 1.227 GB, free: 10.87 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.734e-05/0.6798, allocations: 15.98 kB / 1.227 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004517/0.6803, allocations: 135.9 kB / 1.227 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006598/0.681, allocations: 452.5 kB / 1.227 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004212/0.6814, allocations: 170.5 kB / 1.228 GB, free: 10.05 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002605/0.6817, allocations: 108.8 kB / 1.228 GB, free: 9.945 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.816e-05/0.6817, allocations: 3.984 kB / 1.228 GB, free: 9.941 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.299e-05/0.6817, allocations: 34.56 kB / 1.228 GB, free: 9.898 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=13): time 1.262e-06/0.6817, allocations: 3.938 kB / 1.228 GB, free: 9.895 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13): time 0.0008576/0.6826, allocations: 300.7 kB / 1.228 GB, free: 9.598 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.117e-05/0.6826, allocations: 51.41 kB / 1.228 GB, free: 9.535 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001864/0.6828, allocations: 213 kB / 1.228 GB, free: 9.32 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.6829, allocations: 29.7 kB / 1.228 GB, free: 9.285 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 6.418e-05/0.6829, allocations: 116.1 kB / 1.228 GB, free: 9.168 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 5.101e-05/0.683, allocations: 55.58 kB / 1.228 GB, free: 9.113 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.774e-05/0.683, allocations: 25.7 kB / 1.228 GB, free: 9.082 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.6832, allocations: 334.8 kB / 1.229 GB, free: 8.746 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002471/0.6834, allocations: 75.94 kB / 1.229 GB, free: 8.672 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002239/0.6836, allocations: 71.94 kB / 1.229 GB, free: 8.602 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004664/0.6841, allocations: 176.6 kB / 1.229 GB, free: 8.426 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.6841, allocations: 0 / 1.229 GB, free: 8.426 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005451/0.6847, allocations: 220.2 kB / 1.229 GB, free: 8.207 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.219e-05/0.6847, allocations: 7.938 kB / 1.229 GB, free: 8.199 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.6847, allocations: 0 / 1.229 GB, free: 8.199 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.798e-06/0.6847, allocations: 4 kB / 1.229 GB, free: 8.195 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002506/0.685, allocations: 31.97 kB / 1.229 GB, free: 8.164 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.375e-06/0.685, allocations: 3.984 kB / 1.229 GB, free: 8.16 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001745/0.6852, allocations: 23.88 kB / 1.229 GB, free: 8.137 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.495e-05/0.6852, allocations: 11.94 kB / 1.229 GB, free: 8.125 MB / 0.9512 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 (13): * Single equations (assignments): 13 * 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.0001054/0.6853, allocations: 125.8 kB / 1.23 GB, free: 7.992 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.73e-05/0.6854, allocations: 15.91 kB / 1.23 GB, free: 7.977 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.87e-05/0.6854, allocations: 25.84 kB / 1.23 GB, free: 7.949 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.6854, allocations: 7.984 kB / 1.23 GB, free: 7.941 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.6854, allocations: 0 / 1.23 GB, free: 7.941 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.6854, allocations: 0 / 1.23 GB, free: 7.941 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002768/0.6857, allocations: 269.4 kB / 1.23 GB, free: 7.629 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.6857, allocations: 0 / 1.23 GB, free: 7.629 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000232/0.686, allocations: 35.97 kB / 1.23 GB, free: 7.594 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.686, allocations: 3.984 kB / 1.23 GB, free: 7.59 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.55e-05/0.686, allocations: 8 kB / 1.23 GB, free: 7.582 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.686, allocations: 7.938 kB / 1.23 GB, free: 7.574 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.686, allocations: 0 / 1.23 GB, free: 7.574 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000602/0.6866, allocations: 315.3 kB / 1.23 GB, free: 7.25 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 9.997e-05/0.6867, allocations: 112.9 kB / 1.23 GB, free: 7.121 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.235e-05/0.6868, allocations: 4 kB / 1.23 GB, free: 7.117 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002048/0.687, allocations: 11.98 kB / 1.23 GB, free: 7.105 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.892e-05/0.687, allocations: 11.98 kB / 1.23 GB, free: 7.094 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.503e-05/0.6871, allocations: 7.984 kB / 1.23 GB, free: 7.086 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001336/0.6872, allocations: 164.4 kB / 1.23 GB, free: 6.926 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6872, allocations: 0 / 1.23 GB, free: 6.926 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0002753/0.6875, allocations: 35.94 kB / 1.231 GB, free: 6.891 MB / 0.9512 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 (13): * Single equations (assignments): 13 * 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.0008598/0.6884, allocations: 0.8567 MB / 1.231 GB, free: 6.008 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0005213/0.6889, allocations: 178.3 kB / 1.232 GB, free: 5.836 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.6889, allocations: 0 / 1.232 GB, free: 5.836 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0002552/0.6892, allocations: 99.86 kB / 1.232 GB, free: 5.738 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003655/0.6895, allocations: 34.22 kB / 1.232 GB, free: 5.703 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003087/0.6926, allocations: 2.313 MB / 1.234 GB, free: 3.316 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002728/0.6929, allocations: 0.7275 MB / 1.235 GB, free: 2.562 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0001585/0.6931, allocations: 56.56 kB / 1.235 GB, free: 2.508 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.793e-05/0.6932, allocations: 55.41 kB / 1.235 GB, free: 2.453 MB / 0.9512 GB Notification: Performance of SimCode: time 3.6e-07/0.6932, allocations: 0 / 1.235 GB, free: 2.453 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01875/0.7119, allocations: 3.918 MB / 1.239 GB, free: 14.7 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.393/8.105, allocations: 3.859 kB / 1.239 GB, free: 14.69 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 Buildings_latest_Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975HeatLoss.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_SolarCollectors_BaseClasses_Examples_EN12975HeatLoss.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.SolarCollectors.BaseClasses.Examples.EN12975HeatLoss.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches