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.00582/0.00582, allocations: 99.05 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.001596/0.001596, allocations: 201.4 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002454/0.002454, allocations: 282.6 kB / 290.8 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.045/1.045, allocations: 178.6 MB / 0.5074 GB, free: 4.48 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002681/0.002681, allocations: 95.84 kB / 0.6943 GB, free: 3.641 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4177/0.4204, allocations: 89.13 MB / 0.7813 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.BoundaryConditions.SolarGeometry.BaseClasses.Examples.Declination): time 0.002797/0.4232, allocations: 1.609 MB / 0.7829 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001158/0.4244, allocations: 0.6474 MB / 0.7835 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.614e-05/0.4245, allocations: 1.438 kB / 0.7835 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001523/0.4246, allocations: 73.44 kB / 0.7836 GB, free: 12.28 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.000275/0.4249, allocations: 107.5 kB / 0.7837 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003662/0.4253, allocations: 101.8 kB / 0.7838 GB, free: 12.2 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000188/0.4255, allocations: 128.7 kB / 0.7839 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 7.728e-05/0.4256, allocations: 10.39 kB / 0.7839 GB, free: 12.15 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001508/0.4258, allocations: 73.41 kB / 0.784 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001728/0.4259, allocations: 102.1 kB / 0.7841 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.31e-05/0.426, allocations: 7.031 kB / 0.7841 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001448/0.4261, allocations: 77.67 kB / 0.7842 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 6.617e-05/0.4262, allocations: 34.75 kB / 0.7842 GB, free: 12.07 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.954e-05/0.4263, allocations: 58.56 kB / 0.7843 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002621/0.4265, allocations: 170.4 kB / 0.7844 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.4266, allocations: 4 kB / 0.7844 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.583e-06/0.4266, allocations: 0 / 0.7844 GB, free: 11.97 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.576e-06/0.4266, allocations: 1.281 kB / 0.7844 GB, free: 11.97 MB / 0.5606 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.0007537/0.4273, allocations: 490 kB / 0.7849 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.307e-05/0.4274, allocations: 10.06 kB / 0.7849 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.037e-05/0.4274, allocations: 34.78 kB / 0.7849 GB, free: 11.46 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.872e-05/0.4275, allocations: 20.97 kB / 0.785 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002872/0.4278, allocations: 216.7 kB / 0.7852 GB, free: 11.22 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.4278, allocations: 7 kB / 0.7852 GB, free: 11.22 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.832e-05/0.4278, allocations: 3.844 kB / 0.7852 GB, free: 11.22 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000225/0.428, allocations: 135.6 kB / 0.7853 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.4281, allocations: 3.938 kB / 0.7853 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/0.4281, allocations: 1.922 kB / 0.7853 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.4281, allocations: 1.562 kB / 0.7853 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001268/0.4282, allocations: 70.61 kB / 0.7854 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004818/0.4287, allocations: 416.4 kB / 0.7858 GB, free: 10.73 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000173/0.4289, allocations: 112.7 kB / 0.7859 GB, free: 10.66 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.429, allocations: 77.02 kB / 0.786 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.429, allocations: 2.125 kB / 0.786 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002634/0.4293, allocations: 182.2 kB / 0.7861 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=13): time 1.403e-06/0.4293, allocations: 0 / 0.7861 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=13): time 0.0005262/0.4299, allocations: 337.3 kB / 0.7865 GB, free: 10.36 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.937e-05/0.43, allocations: 106.3 kB / 0.7866 GB, free: 10.24 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002184/0.4302, allocations: 215.5 kB / 0.7868 GB, free: 10.11 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.236e-05/0.4302, allocations: 30.83 kB / 0.7868 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.347e-05/0.4303, allocations: 120.4 kB / 0.7869 GB, free: 9.961 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.125e-05/0.4304, allocations: 31.08 kB / 0.7869 GB, free: 9.938 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.275e-05/0.4304, allocations: 31.44 kB / 0.787 GB, free: 9.914 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001578/0.4306, allocations: 329.3 kB / 0.7873 GB, free: 9.594 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.259e-05/0.4307, allocations: 62.48 kB / 0.7873 GB, free: 9.578 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001018/0.4308, allocations: 80.22 kB / 0.7874 GB, free: 9.543 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002102/0.431, allocations: 189.5 kB / 0.7876 GB, free: 9.43 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.431, allocations: 4 kB / 0.7876 GB, free: 9.426 MB / 0.5606 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000359/0.4314, allocations: 266.1 kB / 0.7879 GB, free: 9.309 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 3.91e-05/0.4314, allocations: 35.77 kB / 0.7879 GB, free: 9.277 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.4314, allocations: 1.469 kB / 0.7879 GB, free: 9.277 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.4315, allocations: 3.938 kB / 0.7879 GB, free: 9.273 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/0.4316, allocations: 21.08 kB / 0.7879 GB, free: 9.266 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.4316, allocations: 1.719 kB / 0.7879 GB, free: 9.266 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.4317, allocations: 15.28 kB / 0.7879 GB, free: 9.258 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.511e-05/0.4317, allocations: 4.281 kB / 0.7879 GB, free: 9.258 MB / 0.5606 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.0001739/0.4319, allocations: 188.5 kB / 0.7881 GB, free: 9.09 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.488e-05/0.4319, allocations: 18.5 kB / 0.7881 GB, free: 9.082 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000209/0.4322, allocations: 98.73 kB / 0.7882 GB, free: 9.023 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.4322, allocations: 1.188 kB / 0.7882 GB, free: 9.023 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.4322, allocations: 2.172 kB / 0.7882 GB, free: 9.023 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.4322, allocations: 5.594 kB / 0.7882 GB, free: 9.02 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000233/0.4324, allocations: 232.8 kB / 0.7885 GB, free: 8.801 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.4324, allocations: 5.094 kB / 0.7885 GB, free: 8.797 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.376e-05/0.4325, allocations: 8.984 kB / 0.7885 GB, free: 8.797 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.4325, allocations: 1.125 kB / 0.7885 GB, free: 8.797 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.017e-05/0.4325, allocations: 8.703 kB / 0.7885 GB, free: 8.793 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.4325, allocations: 1.859 kB / 0.7885 GB, free: 8.793 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.4325, allocations: 5.094 kB / 0.7885 GB, free: 8.789 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004776/0.433, allocations: 336.8 kB / 0.7888 GB, free: 8.613 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001062/0.4331, allocations: 108 kB / 0.7889 GB, free: 8.504 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.532e-05/0.4332, allocations: 8.516 kB / 0.7889 GB, free: 8.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.598e-05/0.4333, allocations: 6.312 kB / 0.7889 GB, free: 8.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.503e-05/0.4333, allocations: 12.48 kB / 0.7889 GB, free: 8.496 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.418e-05/0.4334, allocations: 6.562 kB / 0.7889 GB, free: 8.496 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001865/0.4336, allocations: 160 kB / 0.7891 GB, free: 8.402 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4336, allocations: 0 / 0.7891 GB, free: 8.402 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000298/0.4339, allocations: 47.2 kB / 0.7891 GB, free: 8.395 MB / 0.5606 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.0009385/0.4348, allocations: 0.8995 MB / 0.79 GB, free: 7.684 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003657/0.4352, allocations: 245.1 kB / 0.7903 GB, free: 7.559 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.4352, allocations: 0 / 0.7903 GB, free: 7.559 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001851/0.4354, allocations: 161.7 kB / 0.7904 GB, free: 7.461 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002223/0.4356, allocations: 16.09 kB / 0.7904 GB, free: 7.453 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002557/0.4382, allocations: 2.244 MB / 0.7926 GB, free: 5.922 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003609/0.4386, allocations: 0.7239 MB / 0.7933 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 4.58e-05/0.4386, allocations: 9.031 kB / 0.7933 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.945e-05/0.4387, allocations: 40.88 kB / 0.7934 GB, free: 5.191 MB / 0.5606 GB Notification: Performance of SimCode: time 4.91e-07/0.4387, allocations: 0 / 0.7934 GB, free: 5.191 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0258/0.4645, allocations: 3.549 MB / 0.7968 GB, free: 4.398 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.833/8.298, allocations: 7.719 kB / 0.7968 GB, free: 4.395 MB / 0.5606 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)