Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.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.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleControlledTiltAngle",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleControlledTiltAngle",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.00477/0.00477, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001299/0.001299, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002646/0.002646, allocations: 287.1 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9771/0.9771, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002673/0.002673, allocations: 99.77 kB / 0.6809 GB, free: 40 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1984/0.2011, allocations: 86.97 MB / 0.7659 GB, free: 8.992 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.005487/0.2066, allocations: 3.796 MB / 0.7696 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005287/0.212, allocations: 3.45 MB / 0.7729 GB, free: 1.707 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004027/0.2124, allocations: 11.94 kB / 0.773 GB, free: 1.695 MB / 0.5606 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/Photovoltaics/BaseClasses/PVModuleGeneral.mo:38:3-39:117:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Technologies/Photovoltaics/BaseClasses/OpticalModels/OpticalModelGeneral.mo:10:3-12:121:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Climate/SolarRadiationTransformers/SolarRadiationTransformerGeneral.mo:25:3-27:116:writable] Warning: Connector radiationPort is not balanced: The number of potential variables (5) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0005373/0.2129, allocations: 126.9 kB / 0.7731 GB, free: 1.57 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001343/0.2143, allocations: 461.4 kB / 0.7735 GB, free: 1.117 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009749/0.2153, allocations: 373.7 kB / 0.7739 GB, free: 0.7539 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.3265/0.5418, allocations: 0.773 MB / 0.7746 GB, free: 8.312 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004353/0.5423, allocations: 192.1 kB / 0.7748 GB, free: 8.293 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006033/0.5429, allocations: 317 kB / 0.7751 GB, free: 8.281 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005098/0.5434, allocations: 333.1 kB / 0.7754 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001191/0.5436, allocations: 65.75 kB / 0.7755 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001067/0.5446, allocations: 0.4951 MB / 0.776 GB, free: 8.215 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001777/0.5448, allocations: 171.3 kB / 0.7761 GB, free: 8.191 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002839/0.5451, allocations: 334.8 kB / 0.7765 GB, free: 8.094 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001557/0.5467, allocations: 1.109 MB / 0.7775 GB, free: 7.941 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.5467, allocations: 0 / 0.7775 GB, free: 7.941 MB / 0.5606 GB Notification: Performance of FrontEnd: time 2.274e-06/0.5467, allocations: 1.078 kB / 0.7775 GB, free: 7.941 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.875e-05/0.5467, allocations: 1 kB / 0.7775 GB, free: 7.941 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.001978/0.5487, allocations: 1.043 MB / 0.7786 GB, free: 7.273 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.5488, allocations: 11.73 kB / 0.7786 GB, free: 7.273 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001026/0.5489, allocations: 87.81 kB / 0.7787 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003418/0.5523, allocations: 0.6254 MB / 0.7793 GB, free: 7.191 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001255/0.5536, allocations: 0.629 MB / 0.7799 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/0.5537, allocations: 124.9 kB / 0.78 GB, free: 6.828 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.807e-05/0.5538, allocations: 49.34 kB / 0.7801 GB, free: 6.824 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.5552, allocations: 0.7162 MB / 0.7808 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.836e-05/0.5552, allocations: 2.453 kB / 0.7808 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.242e-05/0.5553, allocations: 23.81 kB / 0.7808 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.322e-05/0.5553, allocations: 12.19 kB / 0.7808 GB, free: 6.734 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001963/0.5573, allocations: 0.7746 MB / 0.7815 GB, free: 6.719 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003467/0.5608, allocations: 1.915 MB / 0.7834 GB, free: 6.215 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002757/0.5635, allocations: 0.8668 MB / 0.7843 GB, free: 5.926 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009403/0.5645, allocations: 383 kB / 0.7846 GB, free: 5.793 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001633/0.5661, allocations: 1.774 MB / 0.7864 GB, free: 19.8 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001067/0.5672, allocations: 460 kB / 0.7868 GB, free: 19.64 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=58): time 2.575e-06/0.5672, allocations: 0 / 0.7868 GB, free: 19.64 MB / 0.5762 GB Notification: Performance of matching and sorting (n=58): time 0.00633/0.5736, allocations: 1.671 MB / 0.7884 GB, free: 19.14 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.529e-05/0.5737, allocations: 110.3 kB / 0.7885 GB, free: 19.02 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006137/0.5743, allocations: 419.7 kB / 0.7889 GB, free: 18.82 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.65e-05/0.5744, allocations: 33.7 kB / 0.789 GB, free: 18.78 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002162/0.5746, allocations: 289.5 kB / 0.7892 GB, free: 18.55 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001615/0.5748, allocations: 202.2 kB / 0.7894 GB, free: 18.39 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002402/0.575, allocations: 128.6 kB / 0.7896 GB, free: 18.33 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001893/0.5752, allocations: 359.1 kB / 0.7899 GB, free: 18 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009003/0.5761, allocations: 319.4 kB / 0.7902 GB, free: 17.9 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000961/0.5771, allocations: 449.8 kB / 0.7906 GB, free: 17.66 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001689/0.5788, allocations: 0.725 MB / 0.7913 GB, free: 17.33 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.5788, allocations: 3.5 kB / 0.7913 GB, free: 17.33 MB / 0.5762 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003512/0.5823, allocations: 1.069 MB / 0.7924 GB, free: 17.01 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.5824, allocations: 9.125 kB / 0.7924 GB, free: 17.01 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.5824, allocations: 3.188 kB / 0.7924 GB, free: 17.01 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006884/0.5831, allocations: 143.4 kB / 0.7925 GB, free: 16.98 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008015/0.5839, allocations: 159 kB / 0.7927 GB, free: 16.97 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004602/0.5885, allocations: 2.112 MB / 0.7948 GB, free: 15.39 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008411/0.5894, allocations: 104.2 kB / 0.7949 GB, free: 15.35 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.926e-05/0.5894, allocations: 30.36 kB / 0.7949 GB, free: 15.34 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 4 (weatherData.weatherData.conTim.tNext,$PRE.weatherData.weatherData.conTim.tNext,$whenCondition1,radiation.outsidePolarCircle) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (71): * Single equations (assignments): 70 * 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003731/0.5898, allocations: 220.5 kB / 0.7951 GB, free: 15.17 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.5899, allocations: 60.86 kB / 0.7951 GB, free: 15.14 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003375/0.5933, allocations: 1.089 MB / 0.7962 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.5933, allocations: 11.22 kB / 0.7962 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.5934, allocations: 1.422 kB / 0.7962 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.5934, allocations: 7.047 kB / 0.7962 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004164/0.5975, allocations: 1.802 MB / 0.798 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.5976, allocations: 4.516 kB / 0.798 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007886/0.5984, allocations: 148.1 kB / 0.7981 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006348/0.599, allocations: 119.4 kB / 0.7983 GB, free: 13.88 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.546e-05/0.5991, allocations: 18.88 kB / 0.7983 GB, free: 13.87 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003991/0.6031, allocations: 1.966 MB / 0.8002 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.6031, allocations: 1.594 kB / 0.8002 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003192/0.6063, allocations: 1.05 MB / 0.8012 GB, free: 11.83 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003807/0.6067, allocations: 215.7 kB / 0.8014 GB, free: 11.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.622e-05/0.6068, allocations: 12.55 kB / 0.8014 GB, free: 11.65 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006321/0.6074, allocations: 69.25 kB / 0.8015 GB, free: 11.64 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001409/0.6076, allocations: 47.84 kB / 0.8015 GB, free: 11.63 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.582e-05/0.6077, allocations: 25.03 kB / 0.8016 GB, free: 11.63 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004236/0.6081, allocations: 295.3 kB / 0.8019 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6081, allocations: 0 / 0.8019 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008993/0.609, allocations: 245.5 kB / 0.8021 GB, free: 11.42 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($whenCondition1,weatherData.weatherData.conTim.tNext) * Number of discrete states: 1 (weatherData.weatherData.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.004975/0.614, allocations: 1.993 MB / 0.804 GB, free: 10.35 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002407/0.6164, allocations: 0.9008 MB / 0.8049 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.6164, allocations: 5.562 kB / 0.8049 GB, free: 10.01 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001532/0.618, allocations: 0.5896 MB / 0.8055 GB, free: 9.766 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005556/0.6185, allocations: 70.73 kB / 0.8056 GB, free: 9.73 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01353/0.6321, allocations: 5.933 MB / 0.8114 GB, free: 6.77 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006509/0.6328, allocations: 0.8876 MB / 0.8122 GB, free: 6.051 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0007611/0.6335, allocations: 153.7 kB / 0.8124 GB, free: 5.992 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004477/0.634, allocations: 227.9 kB / 0.8126 GB, free: 5.844 MB / 0.5762 GB Notification: Performance of SimCode: time 6.71e-07/0.634, allocations: 0 / 0.8126 GB, free: 5.844 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05155/0.6855, allocations: 16.33 MB / 0.8285 GB, free: 14.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/12.86, allocations: 14.42 kB / 0.8285 GB, free: 14.29 MB / 0.5919 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle_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_Technologies_Photovoltaics_Examples_PVModuleControlledTiltAngle.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle.pipe 2>&1)