Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass,fileNamePrefix="Buildings_9_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass,fileNamePrefix="Buildings_9_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass",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.005013/0.005013, allocations: 104.6 kB / 15.74 MB, free: 6.492 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.00125/0.00125, allocations: 191.7 kB / 16.68 MB, free: 6.375 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.269/1.269, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.241/2.241, allocations: 390.2 MB / 0.6648 GB, free: 216 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 64.84 kB / 0.9504 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2282/0.2293, allocations: 140.4 MB / 1.087 GB, free: 1.977 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass): time 0.005508/0.2349, allocations: 4.385 MB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1414/0.3763, allocations: 150.6 MB / 1.239 GB, free: 6.391 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007213/0.377, allocations: 23.88 kB / 1.239 GB, free: 6.367 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006406/0.3777, allocations: 174.4 kB / 1.239 GB, free: 6.195 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.00175/0.3795, allocations: 0.4965 MB / 1.239 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001907/0.3814, allocations: 0.8482 MB / 1.24 GB, free: 4.859 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.001408/0.3828, allocations: 1.312 MB / 1.242 GB, free: 3.539 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009622/0.3838, allocations: 0.699 MB / 1.242 GB, free: 2.82 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006457/0.3845, allocations: 0.4905 MB / 1.243 GB, free: 2.328 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000648/0.3851, allocations: 0.525 MB / 1.243 GB, free: 1.801 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0002338/0.3854, allocations: 128 kB / 1.243 GB, free: 1.676 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008611/0.3862, allocations: 491.6 kB / 1.244 GB, free: 1.195 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003028/0.3865, allocations: 319 kB / 1.244 GB, free: 0.8828 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005586/0.3871, allocations: 0.5751 MB / 1.245 GB, free: 312 kB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.001848/0.389, allocations: 1.702 MB / 1.246 GB, free: 14.6 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.389, allocations: 0 / 1.246 GB, free: 14.6 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.423e-06/0.389, allocations: 0 / 1.246 GB, free: 14.6 MB / 1.014 GB Notification: Performance of Transformations before backend: time 3.811e-05/0.389, allocations: 0 / 1.246 GB, free: 14.6 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.00283/0.3919, allocations: 1.481 MB / 1.248 GB, free: 13.07 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.3919, allocations: 8.031 kB / 1.248 GB, free: 13.06 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001884/0.3921, allocations: 160.1 kB / 1.248 GB, free: 12.89 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001139/0.3933, allocations: 211.3 kB / 1.248 GB, free: 12.69 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001182/0.3944, allocations: 0.7848 MB / 1.249 GB, free: 11.86 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.412e-05/0.3945, allocations: 70 kB / 1.249 GB, free: 11.79 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001275/0.3946, allocations: 88 kB / 1.249 GB, free: 11.7 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0017/0.3964, allocations: 1.007 MB / 1.25 GB, free: 10.66 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/0.3964, allocations: 0 / 1.25 GB, free: 10.66 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.209e-05/0.3965, allocations: 40 kB / 1.25 GB, free: 10.62 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.884e-05/0.3965, allocations: 24 kB / 1.25 GB, free: 10.6 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001917/0.3984, allocations: 1.179 MB / 1.251 GB, free: 9.414 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003987/0.4024, allocations: 2.596 MB / 1.254 GB, free: 6.754 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002389/0.4048, allocations: 0.9629 MB / 1.255 GB, free: 5.773 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005787/0.4054, allocations: 314.7 kB / 1.255 GB, free: 5.461 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 7.122e-05/0.4055, allocations: 32.61 kB / 1.255 GB, free: 5.43 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008703/0.4064, allocations: 0.499 MB / 1.256 GB, free: 4.91 MB / 1.014 GB Notification: Performance of pre-optimization done (n=82): time 3.567e-06/0.4064, allocations: 3.984 kB / 1.256 GB, free: 4.906 MB / 1.014 GB Notification: Performance of matching and sorting (n=82): time 0.003116/0.4095, allocations: 1.221 MB / 1.257 GB, free: 3.66 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.063e-05/0.4096, allocations: 192.6 kB / 1.257 GB, free: 3.43 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007587/0.4104, allocations: 0.6371 MB / 1.258 GB, free: 2.785 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 6.95e-05/0.4105, allocations: 45.7 kB / 1.258 GB, free: 2.734 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002871/0.4108, allocations: 424.2 kB / 1.258 GB, free: 2.312 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.000193/0.411, allocations: 264.1 kB / 1.258 GB, free: 2.051 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002168/0.4112, allocations: 146.6 kB / 1.258 GB, free: 1.898 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001468/0.4113, allocations: 394.7 kB / 1.259 GB, free: 1.504 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005339/0.4119, allocations: 249.9 kB / 1.259 GB, free: 1.262 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006282/0.4125, allocations: 370.5 kB / 1.259 GB, free: 0.8711 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001111/0.4136, allocations: 0.5955 MB / 1.26 GB, free: 268 kB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.4136, allocations: 4 kB / 1.26 GB, free: 264 kB / 1.014 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.4392/0.8528, allocations: 0.8138 MB / 1.261 GB, free: 173.4 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.8529, allocations: 7.156 kB / 1.261 GB, free: 173.4 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.8529, allocations: 3.125 kB / 1.261 GB, free: 173.4 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000583/0.8535, allocations: 83.69 kB / 1.261 GB, free: 173.4 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006726/0.8542, allocations: 159.6 kB / 1.261 GB, free: 173.4 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00169/0.8559, allocations: 1.625 MB / 1.263 GB, free: 172 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006677/0.8565, allocations: 87.91 kB / 1.263 GB, free: 172 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.39e-05/0.8566, allocations: 31.8 kB / 1.263 GB, free: 172 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 15 (weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003972/0.857, allocations: 283 kB / 1.263 GB, free: 171.9 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001536/0.8572, allocations: 86.59 kB / 1.263 GB, free: 171.9 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002475/0.8597, allocations: 1.09 MB / 1.264 GB, free: 171.8 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.8597, allocations: 13.28 kB / 1.264 GB, free: 171.8 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.526e-06/0.8597, allocations: 0.7031 kB / 1.264 GB, free: 171.8 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.257e-05/0.8597, allocations: 12.45 kB / 1.264 GB, free: 171.8 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003341/0.863, allocations: 2.017 MB / 1.266 GB, free: 171.2 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.8631, allocations: 2.25 kB / 1.266 GB, free: 171.2 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006202/0.8637, allocations: 152.3 kB / 1.266 GB, free: 171.1 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004274/0.8641, allocations: 74.23 kB / 1.266 GB, free: 171.1 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.392e-05/0.8642, allocations: 24.98 kB / 1.266 GB, free: 171.1 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001498/0.8657, allocations: 1.668 MB / 1.268 GB, free: 169.6 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.8657, allocations: 0 / 1.268 GB, free: 169.6 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002012/0.8677, allocations: 1.026 MB / 1.269 GB, free: 169.1 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000328/0.8681, allocations: 274.9 kB / 1.269 GB, free: 168.9 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001075/0.8682, allocations: 23 kB / 1.269 GB, free: 168.9 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006615/0.8689, allocations: 67.17 kB / 1.269 GB, free: 168.9 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/0.869, allocations: 68.8 kB / 1.269 GB, free: 168.9 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.538e-05/0.8691, allocations: 37.5 kB / 1.269 GB, free: 168.9 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0005686/0.8697, allocations: 467.8 kB / 1.27 GB, free: 168.7 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.4e-07/0.8697, allocations: 0.7812 kB / 1.27 GB, free: 168.7 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0008501/0.8705, allocations: 313.5 kB / 1.27 GB, free: 168.6 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003385/0.8739, allocations: 2.074 MB / 1.272 GB, free: 167.5 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001832/0.8758, allocations: 0.8185 MB / 1.273 GB, free: 167.2 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.8758, allocations: 2.25 kB / 1.273 GB, free: 167.2 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.00109/0.8769, allocations: 0.5294 MB / 1.274 GB, free: 166.9 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001254/0.8781, allocations: 299 kB / 1.274 GB, free: 166.8 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01058/0.8887, allocations: 6.518 MB / 1.28 GB, free: 163.6 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004891/0.8892, allocations: 1.047 MB / 1.281 GB, free: 162.8 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0007836/0.89, allocations: 268.2 kB / 1.281 GB, free: 162.8 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004739/0.8905, allocations: 405.2 kB / 1.282 GB, free: 162.5 MB / 1.014 GB Notification: Performance of SimCode: time 5.11e-07/0.8905, allocations: 0 / 1.282 GB, free: 162.5 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04558/0.9361, allocations: 21.84 MB / 1.303 GB, free: 155.2 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/12.68, allocations: 13.16 kB / 1.303 GB, free: 155.2 MB / 1.014 GB (rm -f Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe ; mkfifo Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe ; head -c 1048576 < Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe >> ../files/Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass_res.csv --start-time 0 --stop-time 864000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 345.6 Buildings_9_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass.fmu > Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=864000.000000 File[6]=1728.000000 " Variables in the reference:time,relAirMas.relAirMas Variables in the result:time,relAirMas.relAirMas,weaBus.HDifHor,weaBus.HDirNor,weaBus.HGloHor,weaBus.HHorIR