Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.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.SolarGeometry.BaseClasses.Examples.AltitudeAngle,fileNamePrefix="Buildings_9_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_AltitudeAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle,fileNamePrefix="Buildings_9_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_AltitudeAngle",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.005564/0.005564, allocations: 99.81 kB / 15.73 MB, free: 6.062 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.001343/0.001343, allocations: 195.1 kB / 16.67 MB, free: 5.973 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.226/1.226, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.051/2.051, allocations: 390.3 MB / 0.6648 GB, free: 0.6367 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 59.91 kB / 0.9504 GB, free: 8.18 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6843/0.6856, allocations: 140.4 MB / 1.087 GB, free: 5.289 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle): time 0.005039/0.6906, allocations: 4.447 MB / 1.092 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.1553/0.8459, allocations: 150.6 MB / 1.239 GB, free: 0.7266 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009575/0.8469, allocations: 19.84 kB / 1.239 GB, free: 0.7188 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0006977/0.8476, allocations: 184.5 kB / 1.239 GB, free: 0.5547 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.002066/0.8498, allocations: 0.5128 MB / 1.24 GB, free: 184 kB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002269/0.852, allocations: 0.8517 MB / 1.24 GB, free: 15.53 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001587/0.8536, allocations: 1.355 MB / 1.242 GB, free: 14.69 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009446/0.8546, allocations: 0.6276 MB / 1.242 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007647/0.8554, allocations: 0.4931 MB / 1.243 GB, free: 13.98 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007494/0.8561, allocations: 0.5097 MB / 1.243 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0002634/0.8564, allocations: 118.3 kB / 1.243 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001054/0.8575, allocations: 487 kB / 1.244 GB, free: 13.43 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003248/0.8578, allocations: 307.2 kB / 1.244 GB, free: 13.19 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.000664/0.8585, allocations: 0.5602 MB / 1.245 GB, free: 12.77 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002055/0.8605, allocations: 1.652 MB / 1.246 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.8606, allocations: 4 kB / 1.246 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.112e-06/0.8606, allocations: 0 / 1.246 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.954e-05/0.8606, allocations: 0 / 1.246 GB, free: 11.14 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 219 * Number of variables: 219 Notification: Performance of Generate backend data structure: time 0.002764/0.8634, allocations: 1.489 MB / 1.248 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.8634, allocations: 12.03 kB / 1.248 GB, free: 9.582 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001617/0.8636, allocations: 139.6 kB / 1.248 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009293/0.8645, allocations: 196 kB / 1.248 GB, free: 9.246 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001175/0.8657, allocations: 0.7862 MB / 1.249 GB, free: 8.418 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.318e-05/0.8658, allocations: 62 kB / 1.249 GB, free: 8.359 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001086/0.8659, allocations: 84 kB / 1.249 GB, free: 8.277 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001527/0.8674, allocations: 0.9496 MB / 1.25 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.101e-05/0.8674, allocations: 0 / 1.25 GB, free: 7.285 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.503e-05/0.8675, allocations: 39.98 kB / 1.25 GB, free: 7.246 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.595e-05/0.8676, allocations: 20 kB / 1.25 GB, free: 7.227 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001688/0.8693, allocations: 1.132 MB / 1.251 GB, free: 6.094 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003744/0.873, allocations: 2.532 MB / 1.254 GB, free: 3.492 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001498/0.8745, allocations: 0.911 MB / 1.254 GB, free: 2.559 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005234/0.8751, allocations: 314.7 kB / 1.255 GB, free: 2.25 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 7.42e-05/0.8752, allocations: 32.67 kB / 1.255 GB, free: 2.219 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008413/0.876, allocations: 0.5253 MB / 1.255 GB, free: 1.672 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=85): time 2.354e-06/0.876, allocations: 0 / 1.255 GB, free: 1.672 MB / 0.9825 GB Notification: Performance of matching and sorting (n=85): time 0.0031/0.8791, allocations: 1.255 MB / 1.257 GB, free: 404 kB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.643e-05/0.8792, allocations: 192.9 kB / 1.257 GB, free: 168 kB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000771/0.88, allocations: 0.6411 MB / 1.257 GB, free: 15.52 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.996e-05/0.8801, allocations: 41.7 kB / 1.257 GB, free: 15.47 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.00028/0.8804, allocations: 413 kB / 1.258 GB, free: 15.06 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002045/0.8806, allocations: 289.5 kB / 1.258 GB, free: 14.78 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002239/0.8808, allocations: 158.6 kB / 1.258 GB, free: 14.61 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.881, allocations: 386.8 kB / 1.259 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004877/0.8814, allocations: 253.9 kB / 1.259 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005943/0.8821, allocations: 383.3 kB / 1.259 GB, free: 13.57 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001058/0.8831, allocations: 0.6172 MB / 1.26 GB, free: 12.94 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.8831, allocations: 0 / 1.26 GB, free: 12.94 MB / 0.9981 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001839/0.885, allocations: 0.8336 MB / 1.261 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.885, allocations: 7.938 kB / 1.261 GB, free: 12.09 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.464e-05/0.885, allocations: 11.97 kB / 1.261 GB, free: 12.08 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005566/0.8856, allocations: 80.91 kB / 1.261 GB, free: 12 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006364/0.8862, allocations: 155.8 kB / 1.261 GB, free: 11.85 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001885/0.8881, allocations: 1.626 MB / 1.262 GB, free: 10.07 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006986/0.8889, allocations: 99.67 kB / 1.263 GB, free: 9.973 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.127e-05/0.8889, allocations: 35.92 kB / 1.263 GB, free: 9.938 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 (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,decAng.tNext,$PRE.decAng.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (93): * Single equations (assignments): 92 * 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.0003852/0.8893, allocations: 269.7 kB / 1.263 GB, free: 9.664 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001798/0.8895, allocations: 87.44 kB / 1.263 GB, free: 9.578 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002358/0.8919, allocations: 1.136 MB / 1.264 GB, free: 8.426 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/0.8919, allocations: 15.98 kB / 1.264 GB, free: 8.41 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.8919, allocations: 3.938 kB / 1.264 GB, free: 8.406 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.8919, allocations: 7.969 kB / 1.264 GB, free: 8.398 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003201/0.8951, allocations: 2.034 MB / 1.266 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.648e-06/0.8952, allocations: 0 / 1.266 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005915/0.8958, allocations: 163.7 kB / 1.266 GB, free: 6.141 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004245/0.8962, allocations: 68.78 kB / 1.266 GB, free: 6.07 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.146e-05/0.8963, allocations: 23.98 kB / 1.266 GB, free: 6.047 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001716/0.898, allocations: 1.658 MB / 1.268 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.898, allocations: 0 / 1.268 GB, free: 4.246 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001988/0.9, allocations: 1.057 MB / 1.269 GB, free: 3.172 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003966/0.9004, allocations: 296.1 kB / 1.269 GB, free: 2.863 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001412/0.9006, allocations: 16 kB / 1.269 GB, free: 2.848 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006927/0.9013, allocations: 67.92 kB / 1.269 GB, free: 2.781 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/0.9014, allocations: 72.89 kB / 1.269 GB, free: 2.711 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.131e-05/0.9015, allocations: 43.97 kB / 1.269 GB, free: 2.668 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0005482/0.902, allocations: 467 kB / 1.27 GB, free: 2.215 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.902, allocations: 0 / 1.27 GB, free: 2.215 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0008098/0.9029, allocations: 327.1 kB / 1.27 GB, free: 1.895 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,decAng.tNext,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 6 (decAng.tNext,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 (100): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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.003437/0.9063, allocations: 2.114 MB / 1.272 GB, free: 15.93 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001641/0.908, allocations: 0.8505 MB / 1.273 GB, free: 15.07 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.908, allocations: 0 / 1.273 GB, free: 15.07 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0009117/0.9089, allocations: 0.5395 MB / 1.274 GB, free: 14.52 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001236/0.9102, allocations: 289.5 kB / 1.274 GB, free: 14.25 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01063/0.9208, allocations: 6.547 MB / 1.28 GB, free: 7.547 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005707/0.9214, allocations: 1.036 MB / 1.281 GB, free: 6.48 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0007848/0.9222, allocations: 266.8 kB / 1.282 GB, free: 6.215 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005398/0.9227, allocations: 403.3 kB / 1.282 GB, free: 5.82 MB / 1.014 GB Notification: Performance of SimCode: time 8.02e-07/0.9228, allocations: 0 / 1.282 GB, free: 5.82 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04657/0.9693, allocations: 21.9 MB / 1.303 GB, free: 272 kB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.77, allocations: 10.05 kB / 1.303 GB, free: 264 kB / 1.029 GB (rm -f Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.pipe ; mkfifo Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.pipe ; head -c 1048576 < Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.pipe >> ../files/Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_9_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_AltitudeAngle.fmu > Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_AltitudeAngle.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=86400.000000 File[27]=1002.240000 " Variables in the reference:time,altAng.alt Variables in the result:time,altAng.alt,decAng.calTimAux,decAng.decAng,decAng.modTimAux,solHouAng.solHouAng