Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.SolarGeometry.BaseClasses.Examples.AltitudeAngle,fileNamePrefix="Buildings_latest_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_AltitudeAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle,fileNamePrefix="Buildings_latest_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.006141/0.006141, allocations: 96.34 kB / 15.73 MB, free: 6.055 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.001649/0.001649, allocations: 202.7 kB / 16.68 MB, free: 5.977 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.403/1.403, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.894/2.894, allocations: 482.4 MB / 0.7548 GB, free: 10.92 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 63.91 kB / 1.083 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2798, allocations: 162.2 MB / 1.241 GB, free: 10.24 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle): time 0.006769/0.2866, allocations: 4.936 MB / 1.246 GB, free: 5.277 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.6584/0.945, allocations: 150.6 MB / 1.393 GB, free: 1.863 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006733/0.9457, allocations: 19.88 kB / 1.393 GB, free: 1.855 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.00062/0.9463, allocations: 193 kB / 1.394 GB, free: 1.688 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.001765/0.9481, allocations: 0.5599 MB / 1.394 GB, free: 1.285 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.001992/0.9501, allocations: 0.8566 MB / 1.395 GB, free: 0.6484 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.001694/0.9518, allocations: 1.428 MB / 1.396 GB, free: 15.77 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009057/0.9528, allocations: 0.5905 MB / 1.397 GB, free: 15.4 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007556/0.9535, allocations: 0.4972 MB / 1.397 GB, free: 15.1 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007138/0.9543, allocations: 0.5232 MB / 1.398 GB, free: 14.73 MB / 1.107 GB Notification: Performance of NFPackage.collectConstants: time 0.0001574/0.9544, allocations: 118.7 kB / 1.398 GB, free: 14.73 MB / 1.107 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008397/0.9553, allocations: 485.4 kB / 1.399 GB, free: 14.55 MB / 1.107 GB Notification: Performance of NFScalarize.scalarize: time 0.0003052/0.9556, allocations: 304 kB / 1.399 GB, free: 14.31 MB / 1.107 GB Notification: Performance of NFVerifyModel.verify: time 0.0005653/0.9562, allocations: 0.5771 MB / 1.399 GB, free: 13.88 MB / 1.107 GB Notification: Performance of NFConvertDAE.convert: time 0.001875/0.958, allocations: 1.68 MB / 1.401 GB, free: 12.67 MB / 1.107 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.9581, allocations: 0 / 1.401 GB, free: 12.67 MB / 1.107 GB Notification: Performance of FrontEnd: time 1.172e-06/0.9581, allocations: 1.562 kB / 1.401 GB, free: 12.67 MB / 1.107 GB Notification: Performance of Transformations before backend: time 1.336e-05/0.9581, allocations: 4 kB / 1.401 GB, free: 12.67 MB / 1.107 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.002645/0.9607, allocations: 1.502 MB / 1.402 GB, free: 11.48 MB / 1.107 GB Notification: Performance of prepare preOptimizeDAE: time 3.284e-05/0.9608, allocations: 9.375 kB / 1.402 GB, free: 11.48 MB / 1.107 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001669/0.9609, allocations: 137.8 kB / 1.403 GB, free: 11.37 MB / 1.107 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009305/0.9619, allocations: 198.2 kB / 1.403 GB, free: 11.27 MB / 1.107 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001174/0.9631, allocations: 0.7815 MB / 1.404 GB, free: 10.63 MB / 1.107 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.791e-05/0.9631, allocations: 65.66 kB / 1.404 GB, free: 10.6 MB / 1.107 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001151/0.9633, allocations: 83.19 kB / 1.404 GB, free: 10.57 MB / 1.107 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001665/0.9649, allocations: 0.9494 MB / 1.405 GB, free: 9.965 MB / 1.107 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.318e-05/0.965, allocations: 3.938 kB / 1.405 GB, free: 9.961 MB / 1.107 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.196e-05/0.9651, allocations: 37.88 kB / 1.405 GB, free: 9.934 MB / 1.107 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.739e-05/0.9651, allocations: 20.78 kB / 1.405 GB, free: 9.934 MB / 1.107 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001913/0.967, allocations: 1.13 MB / 1.406 GB, free: 9.391 MB / 1.107 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004176/0.9712, allocations: 2.792 MB / 1.409 GB, free: 7.133 MB / 1.107 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001682/0.9729, allocations: 0.907 MB / 1.409 GB, free: 6.617 MB / 1.107 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005934/0.9735, allocations: 319.8 kB / 1.41 GB, free: 6.457 MB / 1.107 GB Notification: Performance of preOpt evalFunc (simulation): time 8.006e-05/0.9736, allocations: 26.84 kB / 1.41 GB, free: 6.445 MB / 1.107 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009483/0.9745, allocations: 0.532 MB / 1.41 GB, free: 6.102 MB / 1.107 GB Notification: Performance of pre-optimization done (n=85): time 2.154e-06/0.9746, allocations: 0 / 1.41 GB, free: 6.102 MB / 1.107 GB Notification: Performance of matching and sorting (n=85): time 0.003437/0.978, allocations: 1.267 MB / 1.411 GB, free: 5.414 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.9781, allocations: 190.2 kB / 1.412 GB, free: 5.195 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008073/0.9789, allocations: 0.6431 MB / 1.412 GB, free: 4.82 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 6.881e-05/0.979, allocations: 41.83 kB / 1.412 GB, free: 4.777 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003336/0.9794, allocations: 410.5 kB / 1.413 GB, free: 4.418 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002443/0.9796, allocations: 291.5 kB / 1.413 GB, free: 4.168 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002492/0.9799, allocations: 159.2 kB / 1.413 GB, free: 4.066 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0002062/0.9801, allocations: 386 kB / 1.414 GB, free: 3.699 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005482/0.9806, allocations: 255.1 kB / 1.414 GB, free: 3.578 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006713/0.9813, allocations: 384 kB / 1.414 GB, free: 3.332 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001191/0.9825, allocations: 0.6112 MB / 1.415 GB, free: 2.996 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.9825, allocations: 0 / 1.415 GB, free: 2.996 MB / 1.107 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002011/0.9846, allocations: 0.8377 MB / 1.416 GB, free: 2.57 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.9846, allocations: 5.656 kB / 1.416 GB, free: 2.57 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.876e-06/0.9846, allocations: 6.062 kB / 1.416 GB, free: 2.566 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006238/0.9852, allocations: 89.17 kB / 1.416 GB, free: 2.52 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006689/0.9859, allocations: 155.1 kB / 1.416 GB, free: 2.484 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002223/0.9881, allocations: 1.624 MB / 1.417 GB, free: 0.8867 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006835/0.9888, allocations: 91.19 kB / 1.417 GB, free: 0.8281 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.1e-05/0.9889, allocations: 33.69 kB / 1.418 GB, free: 0.8164 MB / 1.107 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.0003809/0.9893, allocations: 293.9 kB / 1.418 GB, free: 0.582 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.9895, allocations: 86.22 kB / 1.418 GB, free: 0.5352 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002583/0.9921, allocations: 1.133 MB / 1.419 GB, free: 15.91 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.9921, allocations: 13.06 kB / 1.419 GB, free: 15.9 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.9921, allocations: 0 / 1.419 GB, free: 15.9 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.162e-05/0.9921, allocations: 6.047 kB / 1.419 GB, free: 15.9 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003366/0.9955, allocations: 2.027 MB / 1.421 GB, free: 14.57 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.9955, allocations: 3.938 kB / 1.421 GB, free: 14.56 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006255/0.9961, allocations: 167.7 kB / 1.421 GB, free: 14.52 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004599/0.9966, allocations: 70.81 kB / 1.421 GB, free: 14.48 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.265e-05/0.9967, allocations: 23.42 kB / 1.421 GB, free: 14.46 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002039/0.9987, allocations: 1.658 MB / 1.423 GB, free: 12.85 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.9987, allocations: 5.312 kB / 1.423 GB, free: 12.84 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002231/1.001, allocations: 1.059 MB / 1.424 GB, free: 11.98 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003815/1.001, allocations: 288.1 kB / 1.424 GB, free: 11.68 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001272/1.002, allocations: 20 kB / 1.424 GB, free: 11.66 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007163/1.002, allocations: 64.95 kB / 1.424 GB, free: 11.6 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001807/1.002, allocations: 80.83 kB / 1.424 GB, free: 11.52 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.36e-05/1.003, allocations: 39.97 kB / 1.424 GB, free: 11.48 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.0005983/1.003, allocations: 471 kB / 1.425 GB, free: 11.03 MB / 1.123 GB Notification: Performance of sort global known variables: time 1.3e-07/1.003, allocations: 0 / 1.425 GB, free: 11.03 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.0008159/1.004, allocations: 327.1 kB / 1.425 GB, free: 10.71 MB / 1.123 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.004422/1.008, allocations: 2.123 MB / 1.427 GB, free: 8.746 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.00176/1.01, allocations: 0.8359 MB / 1.428 GB, free: 7.895 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 4.718e-06/1.01, allocations: 4 kB / 1.428 GB, free: 7.891 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.001054/1.011, allocations: 0.5472 MB / 1.429 GB, free: 7.336 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001314/1.013, allocations: 309.8 kB / 1.429 GB, free: 7.047 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01084/1.023, allocations: 6.425 MB / 1.435 GB, free: 476 kB / 1.123 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007163/1.024, allocations: 1.044 MB / 1.436 GB, free: 15.39 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 0.0007794/1.025, allocations: 263 kB / 1.436 GB, free: 15.13 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006129/1.026, allocations: 403.2 kB / 1.437 GB, free: 14.74 MB / 1.139 GB Notification: Performance of SimCode: time 2.81e-07/1.026, allocations: 0 / 1.437 GB, free: 14.74 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0561/1.082, allocations: 22.27 MB / 1.459 GB, free: 8.801 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.81/13.89, allocations: 16.67 kB / 1.459 GB, free: 8.789 MB / 1.154 GB (rm -f Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.pipe ; mkfifo Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.pipe ; head -c 1048576 < Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.pipe >> ../files/Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle_res.csv --start-time 0 --stop-time 86400 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 Buildings_latest_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_AltitudeAngle.fmu > Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.AltitudeAngle_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_AltitudeAngle.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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