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.006127/0.006127, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.001571/0.001571, allocations: 197.9 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002519/0.002519, allocations: 298 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 1.076/1.076, allocations: 178.6 MB / 0.5074 GB, free: 4.477 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002724/0.002724, allocations: 95.84 kB / 0.6943 GB, free: 3.648 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4471/0.4498, allocations: 89.13 MB / 0.7813 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleControlledTiltAngle): time 0.005488/0.4553, allocations: 3.8 MB / 0.785 GB, free: 11.15 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.005802/0.4612, allocations: 3.462 MB / 0.7884 GB, free: 8.703 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004258/0.4616, allocations: 10.31 kB / 0.7884 GB, free: 8.699 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.0005715/0.4622, allocations: 129.3 kB / 0.7885 GB, free: 8.621 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001397/0.4636, allocations: 457.4 kB / 0.789 GB, free: 8.367 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.001016/0.4646, allocations: 365.9 kB / 0.7893 GB, free: 8.164 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0009726/0.4656, allocations: 0.7713 MB / 0.7901 GB, free: 7.777 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000333/0.466, allocations: 204.5 kB / 0.7903 GB, free: 7.676 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005036/0.4665, allocations: 318.6 kB / 0.7906 GB, free: 7.52 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006041/0.4671, allocations: 326.2 kB / 0.7909 GB, free: 7.363 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.000151/0.4673, allocations: 66.44 kB / 0.7909 GB, free: 7.363 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001136/0.4684, allocations: 0.4933 MB / 0.7914 GB, free: 7.238 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002204/0.4686, allocations: 176.2 kB / 0.7916 GB, free: 7.129 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003683/0.469, allocations: 328.1 kB / 0.7919 GB, free: 6.914 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001714/0.4707, allocations: 1.114 MB / 0.793 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.4708, allocations: 4.547 kB / 0.793 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.808e-06/0.4708, allocations: 1.5 kB / 0.793 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.505e-05/0.4708, allocations: 3.938 kB / 0.793 GB, free: 6.457 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.002324/0.4731, allocations: 1.04 MB / 0.794 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.4732, allocations: 9.312 kB / 0.794 GB, free: 5.684 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001383/0.4733, allocations: 90.06 kB / 0.7941 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003805/0.4771, allocations: 0.6267 MB / 0.7947 GB, free: 5.543 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001615/0.4788, allocations: 0.6333 MB / 0.7953 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/0.4789, allocations: 129.2 kB / 0.7955 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.807e-05/0.479, allocations: 42.44 kB / 0.7955 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001756/0.4808, allocations: 0.7175 MB / 0.7962 GB, free: 4.555 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.4808, allocations: 0 / 0.7962 GB, free: 4.555 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.436e-05/0.4809, allocations: 24.25 kB / 0.7962 GB, free: 4.535 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.4809, allocations: 12.03 kB / 0.7962 GB, free: 4.535 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002252/0.4832, allocations: 0.772 MB / 0.797 GB, free: 4.156 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003788/0.487, allocations: 1.907 MB / 0.7989 GB, free: 2.711 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003145/0.4902, allocations: 0.8686 MB / 0.7997 GB, free: 2.27 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001074/0.4912, allocations: 384.7 kB / 0.8001 GB, free: 2.074 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002078/0.4933, allocations: 1.765 MB / 0.8018 GB, free: 24 kB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001316/0.4947, allocations: 461.7 kB / 0.8022 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=58): time 2.956e-06/0.4947, allocations: 0 / 0.8022 GB, free: 15.74 MB / 0.5762 GB Notification: Performance of matching and sorting (n=58): time 0.007308/0.502, allocations: 1.671 MB / 0.8039 GB, free: 14.94 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.276e-05/0.5021, allocations: 117.7 kB / 0.804 GB, free: 14.8 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006332/0.5028, allocations: 420.9 kB / 0.8044 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 8.631e-05/0.5029, allocations: 36.55 kB / 0.8044 GB, free: 14.51 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002649/0.5031, allocations: 278.4 kB / 0.8047 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002106/0.5034, allocations: 197.2 kB / 0.8049 GB, free: 14.09 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002697/0.5036, allocations: 130.8 kB / 0.805 GB, free: 14 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001809/0.5038, allocations: 363.3 kB / 0.8053 GB, free: 13.65 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001042/0.5049, allocations: 317.9 kB / 0.8056 GB, free: 13.5 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00112/0.506, allocations: 450 kB / 0.8061 GB, free: 13.19 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002105/0.5081, allocations: 0.7304 MB / 0.8068 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.5081, allocations: 1.844 kB / 0.8068 GB, free: 12.75 MB / 0.5762 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004373/0.5125, allocations: 1.071 MB / 0.8078 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.296e-05/0.5126, allocations: 10.69 kB / 0.8078 GB, free: 12.23 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/0.5126, allocations: 11.58 kB / 0.8078 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007745/0.5134, allocations: 133 kB / 0.808 GB, free: 12.16 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000891/0.5143, allocations: 164.3 kB / 0.8081 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005104/0.5194, allocations: 2.113 MB / 0.8102 GB, free: 10.32 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009332/0.5203, allocations: 107.3 kB / 0.8103 GB, free: 10.25 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/0.5205, allocations: 30.56 kB / 0.8103 GB, free: 10.24 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.0004306/0.5209, allocations: 213.1 kB / 0.8105 GB, free: 10.06 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001802/0.5211, allocations: 58.28 kB / 0.8106 GB, free: 10.03 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003803/0.5249, allocations: 1.094 MB / 0.8117 GB, free: 9.41 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.117e-05/0.5249, allocations: 11.86 kB / 0.8117 GB, free: 9.406 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.5249, allocations: 0 / 0.8117 GB, free: 9.406 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.5249, allocations: 1.438 kB / 0.8117 GB, free: 9.406 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004547/0.5295, allocations: 1.808 MB / 0.8134 GB, free: 8.199 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.5295, allocations: 5 kB / 0.8134 GB, free: 8.195 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007977/0.5303, allocations: 141.8 kB / 0.8136 GB, free: 8.16 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006461/0.531, allocations: 117.8 kB / 0.8137 GB, free: 8.105 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.28e-05/0.5311, allocations: 21.33 kB / 0.8137 GB, free: 8.09 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004333/0.5354, allocations: 1.965 MB / 0.8156 GB, free: 6.332 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.83e-06/0.5354, allocations: 4.062 kB / 0.8156 GB, free: 6.328 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003488/0.5389, allocations: 1.053 MB / 0.8167 GB, free: 5.73 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003984/0.5393, allocations: 217.7 kB / 0.8169 GB, free: 5.531 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001285/0.5395, allocations: 15.67 kB / 0.8169 GB, free: 5.52 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007247/0.5402, allocations: 57.97 kB / 0.8169 GB, free: 5.492 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.5403, allocations: 52.02 kB / 0.817 GB, free: 5.465 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.92e-05/0.5404, allocations: 23.73 kB / 0.817 GB, free: 5.457 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0004159/0.5408, allocations: 292.6 kB / 0.8173 GB, free: 5.277 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5409, allocations: 0 / 0.8173 GB, free: 5.277 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0009476/0.5418, allocations: 251.7 kB / 0.8175 GB, free: 5.199 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.005509/0.5473, allocations: 1.987 MB / 0.8195 GB, free: 3.922 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002695/0.55, allocations: 0.8972 MB / 0.8203 GB, free: 3.434 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.5501, allocations: 5.094 kB / 0.8203 GB, free: 3.43 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001769/0.5518, allocations: 0.5836 MB / 0.8209 GB, free: 3.098 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007154/0.5526, allocations: 72.61 kB / 0.821 GB, free: 3.047 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01517/0.5678, allocations: 5.94 MB / 0.8268 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000618/0.5684, allocations: 0.8889 MB / 0.8277 GB, free: 14.53 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0007288/0.5692, allocations: 149.1 kB / 0.8278 GB, free: 14.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000487/0.5697, allocations: 227.3 kB / 0.828 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of SimCode: time 4.4e-07/0.5697, allocations: 0 / 0.828 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0513/0.621, allocations: 16.33 MB / 0.844 GB, free: 14.07 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/13.02, allocations: 8.281 kB / 0.844 GB, free: 14.07 MB / 0.6075 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)