Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_BaseClasses_Examples_Declination",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination,fileNamePrefix="BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_BaseClasses_Examples_Declination",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.00525/0.00525, allocations: 99.83 kB / 15.73 MB, free: 6.02 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.001222/0.001222, allocations: 193.6 kB / 16.67 MB, free: 5.934 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.219/1.219, allocations: 222.9 MB / 240.4 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002061/0.002061, allocations: 285.3 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8768/0.8768, allocations: 169.3 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001725/0.001725, allocations: 99.83 kB / 0.681 GB, free: 7.465 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3554/0.3572, allocations: 86.96 MB / 0.7659 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination): time 0.002598/0.3598, allocations: 1.601 MB / 0.7674 GB, free: 2.27 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001047/0.3609, allocations: 0.6483 MB / 0.7681 GB, free: 1.617 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.291e-05/0.361, allocations: 0 / 0.7681 GB, free: 1.617 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001404/0.3611, allocations: 79.81 kB / 0.7682 GB, free: 1.539 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002628/0.3614, allocations: 99.69 kB / 0.7683 GB, free: 1.441 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003541/0.3618, allocations: 95.75 kB / 0.7683 GB, free: 1.348 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001864/0.362, allocations: 135.6 kB / 0.7685 GB, free: 1.215 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 7.674e-05/0.362, allocations: 11.98 kB / 0.7685 GB, free: 1.203 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001529/0.3622, allocations: 75.75 kB / 0.7686 GB, free: 1.129 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001663/0.3624, allocations: 111.8 kB / 0.7687 GB, free: 1.02 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.035e-05/0.3624, allocations: 4 kB / 0.7687 GB, free: 1.016 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001237/0.3625, allocations: 79.92 kB / 0.7687 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 5.861e-05/0.3626, allocations: 27.91 kB / 0.7688 GB, free: 0.9102 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.503e-05/0.3627, allocations: 63.59 kB / 0.7688 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002238/0.3629, allocations: 164.4 kB / 0.769 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.3629, allocations: 0 / 0.769 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.333e-06/0.3629, allocations: 0 / 0.769 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.3629, allocations: 0 / 0.769 GB, free: 0.6953 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006504/0.3636, allocations: 488.2 kB / 0.7695 GB, free: 168 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.3636, allocations: 15.97 kB / 0.7695 GB, free: 152 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.334e-05/0.3637, allocations: 38.73 kB / 0.7695 GB, free: 104 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.547e-05/0.3637, allocations: 16.84 kB / 0.7695 GB, free: 88 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000256/0.364, allocations: 213.1 kB / 0.7697 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.364, allocations: 12.31 kB / 0.7697 GB, free: 15.83 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.136e-05/0.364, allocations: 8.375 kB / 0.7697 GB, free: 15.82 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002056/0.3642, allocations: 131.4 kB / 0.7699 GB, free: 15.68 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.3643, allocations: 0 / 0.7699 GB, free: 15.68 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.3643, allocations: 4 kB / 0.7699 GB, free: 15.68 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.3643, allocations: 0 / 0.7699 GB, free: 15.68 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001191/0.3644, allocations: 75.95 kB / 0.7699 GB, free: 15.6 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004111/0.3648, allocations: 408.9 kB / 0.7703 GB, free: 15.15 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001594/0.365, allocations: 117.2 kB / 0.7704 GB, free: 15.02 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.3651, allocations: 81.78 kB / 0.7705 GB, free: 14.93 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.529e-05/0.3651, allocations: 0 / 0.7705 GB, free: 14.93 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002242/0.3654, allocations: 170.7 kB / 0.7707 GB, free: 14.74 MB / 0.545 GB Notification: Performance of pre-optimization done (n=13): time 1.112e-06/0.3654, allocations: 4 kB / 0.7707 GB, free: 14.73 MB / 0.545 GB Notification: Performance of matching and sorting (n=13): time 0.0004965/0.3659, allocations: 343.2 kB / 0.771 GB, free: 14.39 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.138e-05/0.366, allocations: 114.8 kB / 0.7711 GB, free: 14.25 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001809/0.3661, allocations: 210.6 kB / 0.7713 GB, free: 14.03 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.766e-05/0.3662, allocations: 29.7 kB / 0.7714 GB, free: 14 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.978e-05/0.3662, allocations: 116.1 kB / 0.7715 GB, free: 13.88 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 3.467e-05/0.3663, allocations: 27.75 kB / 0.7715 GB, free: 13.85 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.102e-05/0.3663, allocations: 33.7 kB / 0.7715 GB, free: 13.81 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001096/0.3665, allocations: 338.8 kB / 0.7719 GB, free: 13.47 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.413e-05/0.3665, allocations: 55.98 kB / 0.7719 GB, free: 13.42 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.35e-05/0.3666, allocations: 80.86 kB / 0.772 GB, free: 13.34 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001903/0.3668, allocations: 197 kB / 0.7722 GB, free: 13.12 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.3669, allocations: 0 / 0.7722 GB, free: 13.12 MB / 0.545 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003073/0.3672, allocations: 271.2 kB / 0.7724 GB, free: 12.85 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.437e-05/0.3672, allocations: 37.7 kB / 0.7725 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.3672, allocations: 0 / 0.7725 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.3672, allocations: 4 kB / 0.7725 GB, free: 12.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.456e-05/0.3673, allocations: 15.98 kB / 0.7725 GB, free: 12.79 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.3674, allocations: 3.938 kB / 0.7725 GB, free: 12.78 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.3675, allocations: 19.88 kB / 0.7725 GB, free: 12.76 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.671e-05/0.3675, allocations: 8 kB / 0.7725 GB, free: 12.75 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 (decAng.tNext,$PRE.decAng.tNext,$whenCondition2,solDecNOAA.nextEventScaled,solDecNOAA.nextEvent,$PRE.solDecNOAA.nextEvent,solDecNOAA.last,solDecNOAA.b,solDecNOAA.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001378/0.3676, allocations: 179.5 kB / 0.7727 GB, free: 12.57 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.189e-05/0.3677, allocations: 16.22 kB / 0.7727 GB, free: 12.55 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001895/0.3679, allocations: 103.1 kB / 0.7728 GB, free: 12.44 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.3679, allocations: 0 / 0.7728 GB, free: 12.44 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3679, allocations: 0 / 0.7728 GB, free: 12.44 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.183e-05/0.3679, allocations: 3.984 kB / 0.7728 GB, free: 12.44 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001823/0.3681, allocations: 237.5 kB / 0.773 GB, free: 12.16 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.3681, allocations: 0 / 0.773 GB, free: 12.16 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.649e-05/0.3682, allocations: 15.92 kB / 0.773 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.3682, allocations: 0 / 0.773 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.3682, allocations: 4 kB / 0.773 GB, free: 12.14 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.3682, allocations: 4 kB / 0.7731 GB, free: 12.13 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.3682, allocations: 7.938 kB / 0.7731 GB, free: 12.12 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003773/0.3686, allocations: 337.8 kB / 0.7734 GB, free: 11.77 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 9.31e-05/0.3687, allocations: 112.9 kB / 0.7735 GB, free: 11.64 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.337e-05/0.3687, allocations: 4 kB / 0.7735 GB, free: 11.64 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.595e-05/0.3688, allocations: 8 kB / 0.7735 GB, free: 11.63 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.555e-05/0.3689, allocations: 11.98 kB / 0.7735 GB, free: 11.62 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.3689, allocations: 8 kB / 0.7735 GB, free: 11.61 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.000128/0.369, allocations: 164.2 kB / 0.7737 GB, free: 11.45 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.369, allocations: 0 / 0.7737 GB, free: 11.45 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002434/0.3693, allocations: 47.88 kB / 0.7737 GB, free: 11.4 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,decAng.tNext,$whenCondition1,solDecNOAA.a,solDecNOAA.b,solDecNOAA.last,solDecNOAA.nextEvent,solDecNOAA.nextEventScaled) * Number of discrete states: 7 (solDecNOAA.nextEvent,solDecNOAA.last,solDecNOAA.nextEventScaled,solDecNOAA.b,solDecNOAA.a,$whenCondition1,decAng.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006964/0.37, allocations: 0.8911 MB / 0.7746 GB, free: 10.48 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0003044/0.3703, allocations: 247.2 kB / 0.7748 GB, free: 10.22 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.3703, allocations: 0 / 0.7748 GB, free: 10.22 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001604/0.3705, allocations: 163.4 kB / 0.775 GB, free: 10.05 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002085/0.3707, allocations: 20.11 kB / 0.775 GB, free: 10.03 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00214/0.3729, allocations: 2.245 MB / 0.7772 GB, free: 7.684 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002593/0.3731, allocations: 0.7257 MB / 0.7779 GB, free: 6.934 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.927e-05/0.3732, allocations: 7.984 kB / 0.7779 GB, free: 6.926 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.225e-05/0.3732, allocations: 43.42 kB / 0.778 GB, free: 6.883 MB / 0.545 GB Notification: Performance of SimCode: time 7.32e-07/0.3732, allocations: 4 kB / 0.778 GB, free: 6.879 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01932/0.3926, allocations: 3.536 MB / 0.7814 GB, free: 3.547 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.931/7.323, allocations: 9.109 kB / 0.7814 GB, free: 3.543 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.pipe ; mkfifo BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.pipe >> ../files/BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination_res.csv --start-time 0 --stop-time 3.1536e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 12614.4 BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_BaseClasses_Examples_Declination.fmu > BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.pipe 2>&1)