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.001266/0.001266, allocations: 108 kB / 15.61 MB, free: 152 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.001292/0.001292, allocations: 197.4 kB / 16.53 MB, free: 6.664 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.359/1.359, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002269/0.002269, allocations: 278.8 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9523/0.9523, allocations: 169.3 MB / 0.4982 GB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 100.3 kB / 0.5954 GB, free: 27.84 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1595/0.1615, allocations: 86.97 MB / 0.6803 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination): time 0.003143/0.1647, allocations: 1.588 MB / 0.6818 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001063/0.1658, allocations: 0.6365 MB / 0.6825 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.564e-05/0.1659, allocations: 8.812 kB / 0.6825 GB, free: 14.33 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001332/0.166, allocations: 72.67 kB / 0.6825 GB, free: 14.26 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002599/0.1663, allocations: 114.2 kB / 0.6826 GB, free: 14.15 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003495/0.1667, allocations: 99.77 kB / 0.6827 GB, free: 14.05 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001744/0.1668, allocations: 135.6 kB / 0.6829 GB, free: 13.92 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.016e-05/0.1669, allocations: 8.266 kB / 0.6829 GB, free: 13.91 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001483/0.1671, allocations: 71.8 kB / 0.6829 GB, free: 13.84 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001726/0.1673, allocations: 103.8 kB / 0.683 GB, free: 13.74 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.384e-05/0.1673, allocations: 4 kB / 0.6831 GB, free: 13.74 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001371/0.1674, allocations: 75.94 kB / 0.6831 GB, free: 13.66 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.293e-05/0.1675, allocations: 43.77 kB / 0.6832 GB, free: 13.62 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.604e-05/0.1676, allocations: 59.61 kB / 0.6832 GB, free: 13.56 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002219/0.1678, allocations: 163.5 kB / 0.6834 GB, free: 13.4 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1678, allocations: 0 / 0.6834 GB, free: 13.4 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.836e-06/0.1678, allocations: 0 / 0.6834 GB, free: 13.4 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.1678, allocations: 0 / 0.6834 GB, free: 13.4 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.0006884/0.1685, allocations: 484.3 kB / 0.6838 GB, free: 12.88 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.36e-05/0.1686, allocations: 8.031 kB / 0.6838 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.034e-05/0.1686, allocations: 34.75 kB / 0.6839 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.478e-05/0.1687, allocations: 20.75 kB / 0.6839 GB, free: 12.8 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001876/0.1689, allocations: 208 kB / 0.6841 GB, free: 12.56 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.1689, allocations: 8.312 kB / 0.6841 GB, free: 12.55 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.58e-05/0.1689, allocations: 4.375 kB / 0.6841 GB, free: 12.55 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001964/0.1691, allocations: 123.5 kB / 0.6842 GB, free: 12.42 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.692e-06/0.1691, allocations: 0 / 0.6842 GB, free: 12.42 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.649e-05/0.1692, allocations: 7.984 kB / 0.6842 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.1692, allocations: 3.938 kB / 0.6842 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000135/0.1693, allocations: 75.91 kB / 0.6843 GB, free: 12.33 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004209/0.1698, allocations: 408.8 kB / 0.6847 GB, free: 11.88 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000169/0.1699, allocations: 117.1 kB / 0.6848 GB, free: 11.75 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.1701, allocations: 85.78 kB / 0.6849 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.113e-05/0.1701, allocations: 0 / 0.6849 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002831/0.1704, allocations: 171.3 kB / 0.6851 GB, free: 11.46 MB / 494.1 MB Notification: Performance of pre-optimization done (n=13): time 1.152e-06/0.1704, allocations: 0 / 0.6851 GB, free: 11.46 MB / 494.1 MB Notification: Performance of matching and sorting (n=13): time 0.0005249/0.1709, allocations: 335.4 kB / 0.6854 GB, free: 11.12 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.033e-05/0.171, allocations: 114.8 kB / 0.6855 GB, free: 10.99 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002018/0.1712, allocations: 222.9 kB / 0.6857 GB, free: 10.76 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/0.1712, allocations: 25.7 kB / 0.6857 GB, free: 10.73 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.512e-05/0.1713, allocations: 112.1 kB / 0.6858 GB, free: 10.61 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.991e-05/0.1713, allocations: 43.48 kB / 0.6859 GB, free: 10.57 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.361e-05/0.1714, allocations: 21.72 kB / 0.6859 GB, free: 10.54 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001198/0.1715, allocations: 338.8 kB / 0.6862 GB, free: 10.2 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.974e-05/0.1716, allocations: 55.98 kB / 0.6863 GB, free: 10.15 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.648e-05/0.1717, allocations: 85.67 kB / 0.6864 GB, free: 10.06 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002/0.1719, allocations: 189 kB / 0.6865 GB, free: 9.855 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.172, allocations: 3.938 kB / 0.6865 GB, free: 9.852 MB / 494.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003294/0.1723, allocations: 267.1 kB / 0.6868 GB, free: 9.578 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.535e-05/0.1723, allocations: 33.7 kB / 0.6868 GB, free: 9.539 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.1723, allocations: 4.078 kB / 0.6868 GB, free: 9.535 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.1724, allocations: 11.97 kB / 0.6868 GB, free: 9.523 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.621e-05/0.1725, allocations: 8 kB / 0.6868 GB, free: 9.516 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.1725, allocations: 4 kB / 0.6869 GB, free: 9.512 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.1726, allocations: 19.89 kB / 0.6869 GB, free: 9.492 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.555e-05/0.1726, allocations: 4 kB / 0.6869 GB, free: 9.488 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.0001485/0.1728, allocations: 178.4 kB / 0.687 GB, free: 9.301 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.241e-05/0.1728, allocations: 23.75 kB / 0.6871 GB, free: 9.277 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001952/0.173, allocations: 98.95 kB / 0.6872 GB, free: 9.176 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.173, allocations: 7.984 kB / 0.6872 GB, free: 9.168 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.173, allocations: 4.375 kB / 0.6872 GB, free: 9.164 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.173, allocations: 0 / 0.6872 GB, free: 9.164 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001973/0.1732, allocations: 233.5 kB / 0.6874 GB, free: 8.887 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1733, allocations: 0 / 0.6874 GB, free: 8.887 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.578e-05/0.1733, allocations: 11.98 kB / 0.6874 GB, free: 8.875 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.1733, allocations: 4 kB / 0.6874 GB, free: 8.871 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.662e-05/0.1734, allocations: 8.094 kB / 0.6874 GB, free: 8.863 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1734, allocations: 3.938 kB / 0.6874 GB, free: 8.859 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1734, allocations: 0 / 0.6874 GB, free: 8.859 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003785/0.1737, allocations: 338.2 kB / 0.6877 GB, free: 8.504 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.085e-05/0.1738, allocations: 104.9 kB / 0.6878 GB, free: 8.383 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.444e-05/0.1739, allocations: 8 kB / 0.6879 GB, free: 8.375 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.393e-05/0.174, allocations: 4 kB / 0.6879 GB, free: 8.371 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.317e-05/0.174, allocations: 11.98 kB / 0.6879 GB, free: 8.359 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.775e-05/0.1741, allocations: 4 kB / 0.6879 GB, free: 8.355 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000125/0.1742, allocations: 168.2 kB / 0.688 GB, free: 8.191 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1742, allocations: 4 kB / 0.688 GB, free: 8.188 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002488/0.1744, allocations: 43.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.0007197/0.1752, allocations: 0.9033 MB / 0.689 GB, free: 7.207 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003146/0.1755, allocations: 247.3 kB / 0.6892 GB, free: 6.953 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1755, allocations: 4 kB / 0.6892 GB, free: 6.949 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001641/0.1757, allocations: 163.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.0002094/0.1759, allocations: 16.67 kB / 0.6894 GB, free: 6.762 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00219/0.1781, allocations: 2.215 MB / 0.6915 GB, free: 4.441 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002571/0.1784, allocations: 0.7236 MB / 0.6922 GB, free: 3.691 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.355e-05/0.1784, allocations: 12.16 kB / 0.6923 GB, free: 3.68 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.916e-05/0.1785, allocations: 39.42 kB / 0.6923 GB, free: 3.641 MB / 494.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1785, allocations: 0 / 0.6923 GB, free: 3.641 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02009/0.1986, allocations: 3.488 MB / 0.6957 GB, free: 340 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.598/7.797, allocations: 2 kB / 0.6957 GB, free: 340 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_BaseClasses_Examples_Declination_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_BoundaryConditions_SolarGeometry_BaseClasses_Examples_Declination.fmu > BuildingSystems_BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination.pipe 2>&1)