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.001255/0.001255, 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.001145/0.001145, allocations: 197.7 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.185/1.185, allocations: 222.9 MB / 240.2 MB, free: 4.402 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.092/2.092, allocations: 390.2 MB / 0.6647 GB, free: 460 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001216, allocations: 63.91 kB / 0.8126 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4975/0.4988, allocations: 140.3 MB / 0.9497 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass): time 0.004522/0.5033, allocations: 4.383 MB / 0.954 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1326/0.6359, allocations: 150.6 MB / 1.101 GB, free: 6.309 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006751/0.6366, allocations: 19.88 kB / 1.101 GB, free: 6.289 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.000456/0.6371, allocations: 174.4 kB / 1.101 GB, free: 6.117 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001349/0.6385, allocations: 0.4974 MB / 1.102 GB, free: 5.621 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001617/0.6401, allocations: 0.8341 MB / 1.103 GB, free: 4.793 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0009603/0.6411, allocations: 1.32 MB / 1.104 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000749/0.6418, allocations: 0.6907 MB / 1.104 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004454/0.6423, allocations: 498.3 kB / 1.105 GB, free: 2.266 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004629/0.6428, allocations: 0.5288 MB / 1.105 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001426/0.6429, allocations: 132 kB / 1.106 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006631/0.6436, allocations: 463.7 kB / 1.106 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0002206/0.6438, allocations: 323 kB / 1.106 GB, free: 0.8359 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0003833/0.6442, allocations: 0.5789 MB / 1.107 GB, free: 260 kB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001327/0.6455, allocations: 1.659 MB / 1.109 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.6455, allocations: 0 / 1.109 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.112e-06/0.6456, allocations: 4 kB / 1.109 GB, free: 14.59 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.163e-05/0.6456, allocations: 0 / 1.109 GB, free: 14.59 MB / 0.8731 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.002139/0.6477, allocations: 1.481 MB / 1.11 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.312e-05/0.6478, allocations: 8.031 kB / 1.11 GB, free: 13.04 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001451/0.6479, allocations: 148.1 kB / 1.11 GB, free: 12.89 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009981/0.6489, allocations: 223.2 kB / 1.11 GB, free: 12.67 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008495/0.6498, allocations: 0.7498 MB / 1.111 GB, free: 11.88 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.154e-05/0.6498, allocations: 74 kB / 1.111 GB, free: 11.81 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.981e-05/0.6499, allocations: 91.94 kB / 1.111 GB, free: 11.72 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001455/0.6514, allocations: 1.015 MB / 1.112 GB, free: 10.67 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.6514, allocations: 0 / 1.112 GB, free: 10.67 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.99e-05/0.6515, allocations: 40 kB / 1.112 GB, free: 10.63 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.704e-05/0.6515, allocations: 24 kB / 1.112 GB, free: 10.61 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001701/0.6532, allocations: 1.175 MB / 1.113 GB, free: 9.426 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003478/0.6567, allocations: 2.608 MB / 1.116 GB, free: 6.75 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002171/0.6589, allocations: 0.9763 MB / 1.117 GB, free: 5.754 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005197/0.6594, allocations: 314.7 kB / 1.117 GB, free: 5.445 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 6.321e-05/0.6595, allocations: 32.61 kB / 1.117 GB, free: 5.414 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008174/0.6603, allocations: 0.4953 MB / 1.118 GB, free: 4.898 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=82): time 1.884e-06/0.6603, allocations: 4 kB / 1.118 GB, free: 4.895 MB / 0.8731 GB Notification: Performance of matching and sorting (n=82): time 0.002937/0.6633, allocations: 1.225 MB / 1.119 GB, free: 3.641 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.883e-05/0.6634, allocations: 192.6 kB / 1.119 GB, free: 3.41 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006754/0.6641, allocations: 0.6372 MB / 1.12 GB, free: 2.766 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 5.631e-05/0.6641, allocations: 41.7 kB / 1.12 GB, free: 2.719 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002617/0.6644, allocations: 428.1 kB / 1.12 GB, free: 2.293 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001815/0.6646, allocations: 264.2 kB / 1.12 GB, free: 2.031 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002049/0.6648, allocations: 154.5 kB / 1.121 GB, free: 1.875 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001438/0.665, allocations: 390.8 kB / 1.121 GB, free: 1.484 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004962/0.6655, allocations: 249.9 kB / 1.121 GB, free: 1.238 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006086/0.6661, allocations: 374.5 kB / 1.122 GB, free: 0.8438 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/0.6671, allocations: 0.5955 MB / 1.122 GB, free: 240 kB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.6672, allocations: 0 / 1.122 GB, free: 240 kB / 0.8731 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001757/0.6689, allocations: 0.8175 MB / 1.123 GB, free: 15.41 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.6689, allocations: 4 kB / 1.123 GB, free: 15.41 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.669, allocations: 0 / 1.123 GB, free: 15.41 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005424/0.6695, allocations: 84.86 kB / 1.123 GB, free: 15.32 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006249/0.6701, allocations: 159.7 kB / 1.123 GB, free: 15.16 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001817/0.672, allocations: 1.623 MB / 1.125 GB, free: 13.39 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000615/0.6726, allocations: 105.4 kB / 1.125 GB, free: 13.29 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.708e-05/0.6727, allocations: 35.97 kB / 1.125 GB, free: 13.26 MB / 0.8887 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.0003321/0.673, allocations: 266.4 kB / 1.125 GB, free: 12.99 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001391/0.6731, allocations: 82.97 kB / 1.125 GB, free: 12.91 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002328/0.6755, allocations: 1.105 MB / 1.126 GB, free: 11.79 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.6755, allocations: 12 kB / 1.126 GB, free: 11.78 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.6755, allocations: 0 / 1.126 GB, free: 11.78 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.6755, allocations: 11.95 kB / 1.126 GB, free: 11.77 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003041/0.6786, allocations: 2.013 MB / 1.128 GB, free: 9.691 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.6786, allocations: 0 / 1.128 GB, free: 9.691 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005662/0.6792, allocations: 159.7 kB / 1.128 GB, free: 9.535 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000409/0.6796, allocations: 64.8 kB / 1.129 GB, free: 9.469 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.771e-05/0.6796, allocations: 27.97 kB / 1.129 GB, free: 9.441 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001617/0.6813, allocations: 1.658 MB / 1.13 GB, free: 7.637 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.6813, allocations: 0 / 1.13 GB, free: 7.637 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001879/0.6832, allocations: 1.016 MB / 1.131 GB, free: 6.605 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000293/0.6835, allocations: 279.7 kB / 1.131 GB, free: 6.312 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001193/0.6836, allocations: 20 kB / 1.131 GB, free: 6.293 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006426/0.6842, allocations: 72 kB / 1.132 GB, free: 6.223 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.6844, allocations: 72.83 kB / 1.132 GB, free: 6.148 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.435e-05/0.6845, allocations: 43.91 kB / 1.132 GB, free: 6.105 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0004857/0.6849, allocations: 467 kB / 1.132 GB, free: 5.652 MB / 0.8887 GB Notification: Performance of sort global known variables: time 9e-08/0.685, allocations: 0 / 1.132 GB, free: 5.652 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0007147/0.6857, allocations: 323.1 kB / 1.132 GB, free: 5.336 MB / 0.8887 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.003198/0.6889, allocations: 2.072 MB / 1.134 GB, free: 3.414 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002141/0.691, allocations: 1.023 MB / 1.135 GB, free: 2.379 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.691, allocations: 0 / 1.135 GB, free: 2.379 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0008829/0.6919, allocations: 0.5353 MB / 1.136 GB, free: 1.832 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001089/0.693, allocations: 283.9 kB / 1.136 GB, free: 1.574 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01016/0.7032, allocations: 6.778 MB / 1.143 GB, free: 10.64 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005034/0.7037, allocations: 1.043 MB / 1.144 GB, free: 9.566 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0007679/0.7045, allocations: 270.8 kB / 1.144 GB, free: 9.297 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004971/0.705, allocations: 403.3 kB / 1.144 GB, free: 8.902 MB / 0.9044 GB Notification: Performance of SimCode: time 4.2e-07/0.705, allocations: 0 / 1.144 GB, free: 8.902 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0451/0.7501, allocations: 21.58 MB / 1.166 GB, free: 3.695 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.19/10.95, allocations: 12.3 kB / 1.166 GB, free: 3.68 MB / 0.92 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