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.001364/0.001364, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 199.7 kB / 16.54 MB, free: 6.672 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.334/1.334, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002286/0.002286, allocations: 298.8 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9373/0.9373, allocations: 169.3 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 99.78 kB / 0.5953 GB, free: 27.89 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.1585, allocations: 86.98 MB / 0.6803 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination): time 0.002755/0.1613, allocations: 1.589 MB / 0.6818 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001047/0.1624, allocations: 0.6458 MB / 0.6825 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.807e-05/0.1624, allocations: 0 / 0.6825 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001506/0.1626, allocations: 82.98 kB / 0.6826 GB, free: 14.25 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002591/0.1629, allocations: 101.7 kB / 0.6826 GB, free: 14.15 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003233/0.1632, allocations: 95.75 kB / 0.6827 GB, free: 14.05 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001584/0.1634, allocations: 135.6 kB / 0.6829 GB, free: 13.92 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.298e-05/0.1635, allocations: 12.89 kB / 0.6829 GB, free: 13.91 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001297/0.1636, allocations: 73.52 kB / 0.683 GB, free: 13.84 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001584/0.1638, allocations: 103.8 kB / 0.683 GB, free: 13.74 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.58e-05/0.1638, allocations: 8 kB / 0.6831 GB, free: 13.73 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001254/0.1639, allocations: 72.53 kB / 0.6831 GB, free: 13.66 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.784e-05/0.164, allocations: 39.83 kB / 0.6832 GB, free: 13.62 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.531e-05/0.1641, allocations: 60.33 kB / 0.6832 GB, free: 13.56 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002043/0.1643, allocations: 160.4 kB / 0.6834 GB, free: 13.41 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1643, allocations: 0 / 0.6834 GB, free: 13.41 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1643, allocations: 0.625 kB / 0.6834 GB, free: 13.41 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.209e-06/0.1643, allocations: 0 / 0.6834 GB, free: 13.41 MB / 494.1 MB 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.0006694/0.165, allocations: 481.6 kB / 0.6838 GB, free: 12.88 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.1651, allocations: 16.77 kB / 0.6839 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.552e-05/0.1651, allocations: 34.75 kB / 0.6839 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.426e-05/0.1652, allocations: 20.75 kB / 0.6839 GB, free: 12.8 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000202/0.1654, allocations: 215.9 kB / 0.6841 GB, free: 12.55 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.1654, allocations: 4.375 kB / 0.6841 GB, free: 12.55 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.967e-05/0.1654, allocations: 8.375 kB / 0.6841 GB, free: 12.54 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002099/0.1656, allocations: 122.2 kB / 0.6842 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.1656, allocations: 0 / 0.6842 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.498e-05/0.1657, allocations: 4 kB / 0.6842 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.506e-06/0.1657, allocations: 0 / 0.6842 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001175/0.1658, allocations: 71.89 kB / 0.6843 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004068/0.1662, allocations: 420.8 kB / 0.6847 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001664/0.1664, allocations: 117.1 kB / 0.6848 GB, free: 11.74 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.894e-05/0.1665, allocations: 81.78 kB / 0.6849 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.1665, allocations: 4 kB / 0.6849 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002881/0.1668, allocations: 166.7 kB / 0.6851 GB, free: 11.46 MB / 494.1 MB Notification: Performance of pre-optimization done (n=13): time 1.353e-06/0.1668, allocations: 0 / 0.6851 GB, free: 11.46 MB / 494.1 MB Notification: Performance of matching and sorting (n=13): time 0.0004898/0.1673, allocations: 339.2 kB / 0.6854 GB, free: 11.12 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.775e-05/0.1674, allocations: 114.8 kB / 0.6855 GB, free: 10.98 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001736/0.1676, allocations: 218.9 kB / 0.6857 GB, free: 10.76 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.1676, allocations: 29.7 kB / 0.6857 GB, free: 10.72 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.193e-05/0.1677, allocations: 112.1 kB / 0.6858 GB, free: 10.61 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.513e-05/0.1677, allocations: 27.56 kB / 0.6859 GB, free: 10.58 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.467e-05/0.1678, allocations: 33.7 kB / 0.6859 GB, free: 10.54 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001058/0.1679, allocations: 334.8 kB / 0.6862 GB, free: 10.21 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.324e-05/0.168, allocations: 55.98 kB / 0.6863 GB, free: 10.15 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.705e-05/0.1681, allocations: 81.62 kB / 0.6864 GB, free: 10.07 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001868/0.1683, allocations: 200.9 kB / 0.6865 GB, free: 9.852 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.1683, allocations: 0 / 0.6865 GB, free: 9.852 MB / 494.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003115/0.1686, allocations: 267.1 kB / 0.6868 GB, free: 9.578 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.438e-05/0.1686, allocations: 37.7 kB / 0.6868 GB, free: 9.535 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.1686, allocations: 320 / 0.6868 GB, free: 9.535 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.1687, allocations: 0 / 0.6868 GB, free: 9.535 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.1688, allocations: 15.98 kB / 0.6868 GB, free: 9.52 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.175e-06/0.1688, allocations: 4 kB / 0.6869 GB, free: 9.516 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001219/0.1689, allocations: 11.89 kB / 0.6869 GB, free: 9.504 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.611e-05/0.1689, allocations: 8 kB / 0.6869 GB, free: 9.496 MB / 494.1 MB 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.0001456/0.1691, allocations: 190.3 kB / 0.6871 GB, free: 9.297 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.953e-05/0.1691, allocations: 15.81 kB / 0.6871 GB, free: 9.281 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002048/0.1693, allocations: 95.11 kB / 0.6872 GB, free: 9.184 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.1693, allocations: 7.984 kB / 0.6872 GB, free: 9.176 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1694, allocations: 3.938 kB / 0.6872 GB, free: 9.172 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.1694, allocations: 7.984 kB / 0.6872 GB, free: 9.164 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000228/0.1696, allocations: 233.5 kB / 0.6874 GB, free: 8.887 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.1696, allocations: 0 / 0.6874 GB, free: 8.887 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.381e-05/0.1697, allocations: 11.98 kB / 0.6874 GB, free: 8.875 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.1697, allocations: 0 / 0.6874 GB, free: 8.875 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.83e-05/0.1697, allocations: 4 kB / 0.6874 GB, free: 8.871 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.1697, allocations: 0 / 0.6874 GB, free: 8.871 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1697, allocations: 3.938 kB / 0.6874 GB, free: 8.867 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003883/0.1701, allocations: 335.6 kB / 0.6877 GB, free: 8.512 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.821e-05/0.1702, allocations: 104.9 kB / 0.6878 GB, free: 8.391 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.598e-05/0.1702, allocations: 8.188 kB / 0.6878 GB, free: 8.383 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.32e-05/0.1703, allocations: 4 kB / 0.6879 GB, free: 8.379 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.911e-05/0.1704, allocations: 15.92 kB / 0.6879 GB, free: 8.363 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.049e-05/0.1704, allocations: 8 kB / 0.6879 GB, free: 8.355 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001309/0.1706, allocations: 160.2 kB / 0.688 GB, free: 8.199 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1706, allocations: 0 / 0.688 GB, free: 8.199 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002562/0.1708, allocations: 55.94 kB / 0.6881 GB, free: 8.145 MB / 494.1 MB 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.0007493/0.1716, allocations: 0.9012 MB / 0.689 GB, free: 7.207 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003292/0.1719, allocations: 243.3 kB / 0.6892 GB, free: 6.957 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1719, allocations: 0 / 0.6892 GB, free: 6.957 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001724/0.1721, allocations: 171.3 kB / 0.6894 GB, free: 6.777 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002201/0.1724, allocations: 20.67 kB / 0.6894 GB, free: 6.758 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00232/0.1747, allocations: 2.214 MB / 0.6915 GB, free: 4.441 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002808/0.175, allocations: 0.7314 MB / 0.6923 GB, free: 3.684 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.176e-05/0.175, allocations: 7.984 kB / 0.6923 GB, free: 3.676 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.801e-05/0.1751, allocations: 39.42 kB / 0.6923 GB, free: 3.637 MB / 494.1 MB Notification: Performance of SimCode: time 1.403e-06/0.1751, allocations: 0 / 0.6923 GB, free: 3.637 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01959/0.1947, allocations: 3.487 MB / 0.6957 GB, free: 336 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.092/7.287, allocations: 6.062 kB / 0.6957 GB, free: 332 kB / 494.1 MB (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)