Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.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.IncidenceAngle,fileNamePrefix="Buildings_latest_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_IncidenceAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle,fileNamePrefix="Buildings_latest_Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_IncidenceAngle",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.004084/0.004084, allocations: 100.9 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.0012/0.0012, allocations: 192.8 kB / 16.67 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.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.757/2.757, allocations: 482.4 MB / 0.7548 GB, free: 6.836 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001925, allocations: 68.66 kB / 1.083 GB, free: 13.91 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.2747, allocations: 162.2 MB / 1.241 GB, free: 9.285 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle): time 0.006986/0.2817, allocations: 4.974 MB / 1.246 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.1673/0.449, allocations: 150.8 MB / 1.394 GB, free: 12.88 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000744/0.4498, allocations: 19.88 kB / 1.394 GB, free: 12.86 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.0006317/0.4505, allocations: 190.2 kB / 1.394 GB, free: 12.68 MB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 0.001847/0.4523, allocations: 0.5753 MB / 1.394 GB, free: 12.1 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.001982/0.4543, allocations: 0.8454 MB / 1.395 GB, free: 11.26 MB / 1.123 GB Notification: Performance of NFFlatten.flatten: time 0.001724/0.4561, allocations: 1.46 MB / 1.397 GB, free: 9.797 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009023/0.457, allocations: 0.5793 MB / 1.397 GB, free: 9.191 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007655/0.4578, allocations: 0.5177 MB / 1.398 GB, free: 8.672 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006607/0.4584, allocations: 0.5329 MB / 1.398 GB, free: 8.137 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 0.0001818/0.4586, allocations: 120 kB / 1.398 GB, free: 8.02 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008647/0.4595, allocations: 487.6 kB / 1.399 GB, free: 7.543 MB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 0.0003033/0.4598, allocations: 310.9 kB / 1.399 GB, free: 7.238 MB / 1.123 GB Notification: Performance of NFVerifyModel.verify: time 0.0005527/0.4604, allocations: 0.5869 MB / 1.4 GB, free: 6.648 MB / 1.123 GB Notification: Performance of NFConvertDAE.convert: time 0.001901/0.4623, allocations: 1.7 MB / 1.401 GB, free: 4.941 MB / 1.123 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.4623, allocations: 0 / 1.401 GB, free: 4.941 MB / 1.123 GB Notification: Performance of FrontEnd: time 1.263e-06/0.4623, allocations: 0 / 1.401 GB, free: 4.941 MB / 1.123 GB Notification: Performance of Transformations before backend: time 1.074e-05/0.4623, allocations: 4 kB / 1.401 GB, free: 4.938 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.002654/0.465, allocations: 1.513 MB / 1.403 GB, free: 3.371 MB / 1.123 GB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.465, allocations: 8.031 kB / 1.403 GB, free: 3.363 MB / 1.123 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001719/0.4652, allocations: 143.7 kB / 1.403 GB, free: 3.215 MB / 1.123 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009393/0.4661, allocations: 204 kB / 1.403 GB, free: 3.016 MB / 1.123 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001196/0.4673, allocations: 0.7823 MB / 1.404 GB, free: 2.191 MB / 1.123 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.07e-05/0.4674, allocations: 66 kB / 1.404 GB, free: 2.125 MB / 1.123 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001232/0.4675, allocations: 84 kB / 1.404 GB, free: 2.043 MB / 1.123 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001709/0.4693, allocations: 0.9769 MB / 1.405 GB, free: 1.027 MB / 1.123 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.082e-05/0.4693, allocations: 0 / 1.405 GB, free: 1.027 MB / 1.123 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.209e-05/0.4694, allocations: 36 kB / 1.405 GB, free: 0.9922 MB / 1.123 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.93e-05/0.4694, allocations: 20 kB / 1.405 GB, free: 0.9727 MB / 1.123 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002013/0.4714, allocations: 1.159 MB / 1.406 GB, free: 15.81 MB / 1.139 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004334/0.4758, allocations: 2.923 MB / 1.409 GB, free: 12.76 MB / 1.139 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001684/0.4775, allocations: 0.8355 MB / 1.41 GB, free: 11.91 MB / 1.139 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006231/0.4781, allocations: 322.7 kB / 1.41 GB, free: 11.59 MB / 1.139 GB Notification: Performance of preOpt evalFunc (simulation): time 8.315e-05/0.4782, allocations: 36.67 kB / 1.41 GB, free: 11.56 MB / 1.139 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009618/0.4792, allocations: 0.5371 MB / 1.411 GB, free: 11.01 MB / 1.139 GB Notification: Performance of pre-optimization done (n=88): time 1.974e-06/0.4792, allocations: 0 / 1.411 GB, free: 11.01 MB / 1.139 GB Notification: Performance of matching and sorting (n=88): time 0.003546/0.4827, allocations: 1.306 MB / 1.412 GB, free: 9.676 MB / 1.139 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.4829, allocations: 196.8 kB / 1.412 GB, free: 9.438 MB / 1.139 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008265/0.4837, allocations: 0.6528 MB / 1.413 GB, free: 8.777 MB / 1.139 GB Notification: Performance of collectPreVariables (initialization): time 6.806e-05/0.4838, allocations: 41.7 kB / 1.413 GB, free: 8.73 MB / 1.139 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003424/0.4841, allocations: 417.1 kB / 1.413 GB, free: 8.316 MB / 1.139 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002528/0.4844, allocations: 297.5 kB / 1.414 GB, free: 8.023 MB / 1.139 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002689/0.4847, allocations: 170.5 kB / 1.414 GB, free: 7.852 MB / 1.139 GB Notification: Performance of setup shared object (initialization): time 0.0001969/0.4849, allocations: 382.8 kB / 1.414 GB, free: 7.469 MB / 1.139 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005937/0.4855, allocations: 269.9 kB / 1.414 GB, free: 7.207 MB / 1.139 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007103/0.4862, allocations: 390.5 kB / 1.415 GB, free: 6.797 MB / 1.139 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0013/0.4875, allocations: 0.632 MB / 1.415 GB, free: 6.156 MB / 1.139 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.4875, allocations: 4 kB / 1.415 GB, free: 6.152 MB / 1.139 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002122/0.4896, allocations: 0.8765 MB / 1.416 GB, free: 5.266 MB / 1.139 GB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.4897, allocations: 4 kB / 1.416 GB, free: 5.262 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.4897, allocations: 3.938 kB / 1.416 GB, free: 5.258 MB / 1.139 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006117/0.4903, allocations: 80.84 kB / 1.416 GB, free: 5.176 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007373/0.491, allocations: 167.8 kB / 1.416 GB, free: 5.012 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002184/0.4932, allocations: 1.63 MB / 1.418 GB, free: 3.238 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006814/0.4939, allocations: 99.44 kB / 1.418 GB, free: 3.141 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.032e-05/0.494, allocations: 31.97 kB / 1.418 GB, free: 3.109 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: 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 (97): * Single equations (assignments): 96 * 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.0003819/0.4944, allocations: 277.7 kB / 1.418 GB, free: 2.828 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001714/0.4946, allocations: 95.38 kB / 1.418 GB, free: 2.734 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002764/0.4973, allocations: 1.168 MB / 1.42 GB, free: 1.547 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.185e-05/0.4974, allocations: 12 kB / 1.42 GB, free: 1.535 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.425e-06/0.4974, allocations: 0 / 1.42 GB, free: 1.535 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.08e-05/0.4974, allocations: 3.984 kB / 1.42 GB, free: 1.531 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001101/0.4985, allocations: 0.9349 MB / 1.421 GB, free: 0.5469 MB / 1.139 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.4985, allocations: 0 / 1.421 GB, free: 0.5469 MB / 1.139 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006706/0.4992, allocations: 163.7 kB / 1.421 GB, free: 396 kB / 1.139 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004665/0.4997, allocations: 76.72 kB / 1.421 GB, free: 316 kB / 1.139 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.348e-05/0.4997, allocations: 27.97 kB / 1.421 GB, free: 288 kB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002045/0.5018, allocations: 1.65 MB / 1.422 GB, free: 14.49 MB / 1.154 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.5018, allocations: 0 / 1.422 GB, free: 14.49 MB / 1.154 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002212/0.504, allocations: 1.01 MB / 1.423 GB, free: 13.46 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003779/0.5044, allocations: 292.2 kB / 1.424 GB, free: 13.15 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001266/0.5046, allocations: 20 kB / 1.424 GB, free: 13.13 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000693/0.5053, allocations: 73.8 kB / 1.424 GB, free: 13.06 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001633/0.5054, allocations: 72.89 kB / 1.424 GB, free: 12.99 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.133e-05/0.5055, allocations: 39.98 kB / 1.424 GB, free: 12.95 MB / 1.154 GB Notification: Performance of sorting global known variables: time 0.0006129/0.5061, allocations: 483 kB / 1.424 GB, free: 12.48 MB / 1.154 GB Notification: Performance of sort global known variables: time 1.61e-07/0.5061, allocations: 0 / 1.424 GB, free: 12.48 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.0007279/0.5069, allocations: 339.2 kB / 1.425 GB, free: 12.15 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: 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.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.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.004332/0.5112, allocations: 2.072 MB / 1.427 GB, free: 10.23 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.001787/0.513, allocations: 0.8547 MB / 1.428 GB, free: 9.367 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.513, allocations: 3.938 kB / 1.428 GB, free: 9.363 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 0.001059/0.5141, allocations: 0.5512 MB / 1.428 GB, free: 8.797 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00121/0.5153, allocations: 298.2 kB / 1.428 GB, free: 8.527 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01083/0.5262, allocations: 6.535 MB / 1.435 GB, free: 1.832 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006805/0.5269, allocations: 1.043 MB / 1.436 GB, free: 0.7617 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 0.0008088/0.5277, allocations: 275.1 kB / 1.436 GB, free: 500 kB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006109/0.5283, allocations: 414.3 kB / 1.436 GB, free: 88 kB / 1.154 GB Notification: Performance of SimCode: time 2.9e-07/0.5283, allocations: 0 / 1.436 GB, free: 88 kB / 1.154 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0909/0.6192, allocations: 22.74 MB / 1.459 GB, free: 9.695 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.83/13.44, allocations: 14.8 kB / 1.459 GB, free: 9.684 MB / 1.186 GB (rm -f Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.pipe ; mkfifo Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.pipe ; head -c 1048576 < Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.pipe >> ../files/Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle_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_IncidenceAngle.fmu > Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_BoundaryConditions_SolarGeometry_BaseClasses_Examples_IncidenceAngle.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.BoundaryConditions.SolarGeometry.BaseClasses.Examples.IncidenceAngle.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,incAng.incAng Variables in the result:time,decAng.calTimAux,decAng.decAng,decAng.modTimAux,incAng.incAng,solHouAng.solHouAng