Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass,fileNamePrefix="Buildings_latest_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass,fileNamePrefix="Buildings_latest_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.006035/0.006035, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.001614/0.001614, allocations: 194.7 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.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.781/2.781, allocations: 482.4 MB / 0.7548 GB, free: 6.855 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001928/0.001928, allocations: 63.14 kB / 1.083 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.2777, allocations: 162.2 MB / 1.241 GB, free: 9.305 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass): time 0.007209/0.285, allocations: 5.123 MB / 1.246 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.1676/0.4526, allocations: 150.7 MB / 1.394 GB, free: 12.89 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007177/0.4534, allocations: 19.88 kB / 1.394 GB, free: 12.87 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.0005628/0.4539, allocations: 202.1 kB / 1.394 GB, free: 12.67 MB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 0.001581/0.4556, allocations: 0.5556 MB / 1.394 GB, free: 12.11 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.001884/0.4575, allocations: 0.8551 MB / 1.395 GB, free: 11.27 MB / 1.123 GB Notification: Performance of NFFlatten.flatten: time 0.001479/0.4589, allocations: 1.44 MB / 1.397 GB, free: 9.82 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009405/0.4599, allocations: 0.656 MB / 1.397 GB, free: 9.137 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000627/0.4605, allocations: 0.5061 MB / 1.398 GB, free: 8.629 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006435/0.4612, allocations: 0.5407 MB / 1.398 GB, free: 8.086 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 0.0001831/0.4614, allocations: 124 kB / 1.398 GB, free: 7.965 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008866/0.4623, allocations: 0.4918 MB / 1.399 GB, free: 7.473 MB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 0.000311/0.4626, allocations: 322.9 kB / 1.399 GB, free: 7.156 MB / 1.123 GB Notification: Performance of NFVerifyModel.verify: time 0.000569/0.4632, allocations: 0.6025 MB / 1.4 GB, free: 6.551 MB / 1.123 GB Notification: Performance of NFConvertDAE.convert: time 0.001972/0.4651, allocations: 1.747 MB / 1.401 GB, free: 4.797 MB / 1.123 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.4652, allocations: 0 / 1.401 GB, free: 4.797 MB / 1.123 GB Notification: Performance of FrontEnd: time 1.282e-06/0.4652, allocations: 3.938 kB / 1.401 GB, free: 4.793 MB / 1.123 GB Notification: Performance of Transformations before backend: time 1.206e-05/0.4652, allocations: 0 / 1.401 GB, free: 4.793 MB / 1.123 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.002619/0.4678, allocations: 1.518 MB / 1.403 GB, free: 3.223 MB / 1.123 GB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.4679, allocations: 16.03 kB / 1.403 GB, free: 3.207 MB / 1.123 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001753/0.468, allocations: 152.1 kB / 1.403 GB, free: 3.051 MB / 1.123 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001136/0.4692, allocations: 224 kB / 1.403 GB, free: 2.832 MB / 1.123 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001198/0.4704, allocations: 0.7854 MB / 1.404 GB, free: 2.004 MB / 1.123 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.479e-05/0.4705, allocations: 74 kB / 1.404 GB, free: 1.934 MB / 1.123 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001241/0.4706, allocations: 88 kB / 1.404 GB, free: 1.848 MB / 1.123 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001817/0.4724, allocations: 1.015 MB / 1.405 GB, free: 0.793 MB / 1.123 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.392e-05/0.4725, allocations: 3.938 kB / 1.405 GB, free: 0.7891 MB / 1.123 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.886e-05/0.4726, allocations: 47.98 kB / 1.405 GB, free: 0.7422 MB / 1.123 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.98e-05/0.4726, allocations: 20 kB / 1.405 GB, free: 0.7227 MB / 1.123 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00214/0.4748, allocations: 1.175 MB / 1.406 GB, free: 15.55 MB / 1.139 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004466/0.4792, allocations: 2.964 MB / 1.409 GB, free: 12.43 MB / 1.139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002632/0.4819, allocations: 0.9771 MB / 1.41 GB, free: 11.43 MB / 1.139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006417/0.4825, allocations: 314.7 kB / 1.411 GB, free: 11.12 MB / 1.139 GB Notification: Performance of preOpt evalFunc (simulation): time 7.674e-05/0.4826, allocations: 32.55 kB / 1.411 GB, free: 11.09 MB / 1.139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009722/0.4836, allocations: 0.5047 MB / 1.411 GB, free: 10.56 MB / 1.139 GB Notification: Performance of pre-optimization done (n=82): time 2.274e-06/0.4836, allocations: 0 / 1.411 GB, free: 10.56 MB / 1.139 GB Notification: Performance of matching and sorting (n=82): time 0.003498/0.4871, allocations: 1.233 MB / 1.412 GB, free: 9.301 MB / 1.139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.4872, allocations: 200.6 kB / 1.412 GB, free: 9.062 MB / 1.139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008399/0.4881, allocations: 0.6411 MB / 1.413 GB, free: 8.418 MB / 1.139 GB Notification: Performance of collectPreVariables (initialization): time 6.545e-05/0.4882, allocations: 41.7 kB / 1.413 GB, free: 8.371 MB / 1.139 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003554/0.4885, allocations: 425 kB / 1.414 GB, free: 7.949 MB / 1.139 GB Notification: Performance of collectInitialBindings (initialization): time 0.000238/0.4888, allocations: 281.6 kB / 1.414 GB, free: 7.672 MB / 1.139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002561/0.489, allocations: 146.6 kB / 1.414 GB, free: 7.52 MB / 1.139 GB Notification: Performance of setup shared object (initialization): time 0.0002032/0.4893, allocations: 386.8 kB / 1.414 GB, free: 7.133 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005983/0.4899, allocations: 257.9 kB / 1.415 GB, free: 6.883 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000721/0.4906, allocations: 366.5 kB / 1.415 GB, free: 6.5 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001297/0.4919, allocations: 0.6033 MB / 1.416 GB, free: 5.883 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.4919, allocations: 0 / 1.416 GB, free: 5.883 MB / 1.139 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002099/0.494, allocations: 0.8335 MB / 1.416 GB, free: 5.043 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.494, allocations: 7.938 kB / 1.416 GB, free: 5.035 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.494, allocations: 0 / 1.416 GB, free: 5.035 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000621/0.4947, allocations: 84.86 kB / 1.416 GB, free: 4.949 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007124/0.4954, allocations: 155.8 kB / 1.417 GB, free: 4.797 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002312/0.4977, allocations: 1.636 MB / 1.418 GB, free: 3.016 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006776/0.4984, allocations: 101.4 kB / 1.418 GB, free: 2.918 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.898e-05/0.4985, allocations: 27.98 kB / 1.418 GB, free: 2.891 MB / 1.139 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.0003997/0.4989, allocations: 273.7 kB / 1.419 GB, free: 2.613 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001645/0.4991, allocations: 91.42 kB / 1.419 GB, free: 2.523 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002681/0.5018, allocations: 1.093 MB / 1.42 GB, free: 1.406 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.276e-05/0.5018, allocations: 15.98 kB / 1.42 GB, free: 1.391 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.5018, allocations: 0 / 1.42 GB, free: 1.391 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.5018, allocations: 3.984 kB / 1.42 GB, free: 1.387 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003597/0.5054, allocations: 2.009 MB / 1.422 GB, free: 15.32 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.5054, allocations: 0 / 1.422 GB, free: 15.32 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006465/0.5061, allocations: 151.7 kB / 1.422 GB, free: 15.17 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004648/0.5066, allocations: 72.78 kB / 1.422 GB, free: 15.1 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.989e-05/0.5066, allocations: 23.98 kB / 1.422 GB, free: 15.07 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002038/0.5087, allocations: 1.666 MB / 1.424 GB, free: 13.27 MB / 1.154 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.5087, allocations: 0 / 1.424 GB, free: 13.27 MB / 1.154 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002255/0.511, allocations: 1.03 MB / 1.425 GB, free: 12.21 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003855/0.5114, allocations: 276.2 kB / 1.425 GB, free: 11.93 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001254/0.5115, allocations: 23.98 kB / 1.425 GB, free: 11.9 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007147/0.5122, allocations: 63.94 kB / 1.425 GB, free: 11.84 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001594/0.5124, allocations: 72.89 kB / 1.425 GB, free: 11.77 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.984e-05/0.5125, allocations: 35.92 kB / 1.425 GB, free: 11.73 MB / 1.154 GB Notification: Performance of sorting global known variables: time 0.0006207/0.5131, allocations: 471 kB / 1.425 GB, free: 11.28 MB / 1.154 GB Notification: Performance of sort global known variables: time 2.91e-07/0.5131, allocations: 4 kB / 1.425 GB, free: 11.27 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.0008725/0.514, allocations: 339 kB / 1.426 GB, free: 10.94 MB / 1.154 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.004412/0.5184, allocations: 2.078 MB / 1.428 GB, free: 9.02 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.001872/0.5203, allocations: 0.8235 MB / 1.429 GB, free: 8.18 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.5203, allocations: 0 / 1.429 GB, free: 8.18 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.001064/0.5214, allocations: 0.5315 MB / 1.429 GB, free: 7.637 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001348/0.5227, allocations: 308.5 kB / 1.429 GB, free: 7.363 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01119/0.5339, allocations: 6.453 MB / 1.436 GB, free: 0.7578 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007172/0.5347, allocations: 1.039 MB / 1.437 GB, free: 15.69 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 0.0008531/0.5355, allocations: 278.9 kB / 1.437 GB, free: 15.41 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006016/0.5362, allocations: 399.3 kB / 1.437 GB, free: 15.02 MB / 1.17 GB Notification: Performance of SimCode: time 7.21e-07/0.5362, allocations: 0 / 1.437 GB, free: 15.02 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05928/0.5954, allocations: 22.29 MB / 1.459 GB, free: 9.098 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/13.5, allocations: 448 / 1.459 GB, free: 9.098 MB / 1.186 GB (rm -f Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe ; mkfifo Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe ; head -c 1048576 < Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe >> ../files/Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass_res.csv --start-time 0 --stop-time 864000 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 345.6 Buildings_latest_Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass.fmu > Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.BoundaryConditions.SolarIrradiation.BaseClasses.Examples.RelativeAirMass_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_BoundaryConditions_SolarIrradiation_BaseClasses_Examples_RelativeAirMass.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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