Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.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.PVModuleSimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleSimple",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.001265/0.001265, 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.001226/0.001226, allocations: 193.8 kB / 16.53 MB, free: 6.391 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.366/1.366, allocations: 222.9 MB / 240.2 MB, free: 4.254 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002419/0.002419, allocations: 294.1 kB / 290.7 MB, free: 1.859 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.053/1.053, allocations: 178.6 MB / 0.5073 GB, free: 4.551 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003597/0.003598, allocations: 95.56 kB / 0.6065 GB, free: 24.6 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1619/0.1656, allocations: 89.15 MB / 0.6936 GB, free: 4.203 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple): time 0.005571/0.1712, allocations: 3.748 MB / 0.6972 GB, free: 456 kB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005134/0.1763, allocations: 3.44 MB / 0.7006 GB, free: 13 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000442/0.1768, allocations: 11.94 kB / 0.7006 GB, free: 12.98 MB / 0.4981 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.000587/0.1774, allocations: 119 kB / 0.7007 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001331/0.1788, allocations: 453.4 kB / 0.7012 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008482/0.1796, allocations: 356.4 kB / 0.7015 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0007668/0.1804, allocations: 0.7487 MB / 0.7022 GB, free: 11.33 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002989/0.1807, allocations: 193.9 kB / 0.7024 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003568/0.1811, allocations: 302.9 kB / 0.7027 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004802/0.1816, allocations: 322.6 kB / 0.703 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001023/0.1817, allocations: 64 kB / 0.7031 GB, free: 10.46 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008973/0.1826, allocations: 0.4917 MB / 0.7036 GB, free: 9.973 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001891/0.1828, allocations: 167.5 kB / 0.7037 GB, free: 9.809 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.000307/0.1831, allocations: 330.2 kB / 0.704 GB, free: 9.484 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.001271/0.1844, allocations: 1.063 MB / 0.7051 GB, free: 8.418 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.145e-06/0.1844, allocations: 3.938 kB / 0.7051 GB, free: 8.414 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.845e-06/0.1844, allocations: 4 kB / 0.7051 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.369e-05/0.1844, allocations: 3.984 kB / 0.7051 GB, free: 8.406 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001867/0.1863, allocations: 0.9875 MB / 0.706 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.4e-05/0.1863, allocations: 8.031 kB / 0.7061 GB, free: 7.359 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001111/0.1865, allocations: 90.69 kB / 0.7061 GB, free: 7.262 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00351/0.19, allocations: 0.6205 MB / 0.7067 GB, free: 6.641 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001412/0.1914, allocations: 0.6273 MB / 0.7074 GB, free: 5.977 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001397/0.1916, allocations: 126.4 kB / 0.7075 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.905e-05/0.1917, allocations: 44 kB / 0.7075 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001535/0.1932, allocations: 0.6947 MB / 0.7082 GB, free: 5.074 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.1932, allocations: 4 kB / 0.7082 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.969e-05/0.1933, allocations: 20 kB / 0.7082 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.1933, allocations: 16 kB / 0.7082 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002022/0.1953, allocations: 0.7533 MB / 0.709 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003462/0.1988, allocations: 1.809 MB / 0.7107 GB, free: 2.418 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003983/0.2028, allocations: 0.8451 MB / 0.7116 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00156/0.2044, allocations: 361.9 kB / 0.7119 GB, free: 1.207 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002534/0.2069, allocations: 1.765 MB / 0.7136 GB, free: 15.05 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001554/0.2085, allocations: 425.1 kB / 0.714 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=53): time 3.757e-06/0.2085, allocations: 0 / 0.714 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of matching and sorting (n=53): time 0.003122/0.2117, allocations: 1.01 MB / 0.715 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.78e-05/0.2118, allocations: 115.2 kB / 0.7151 GB, free: 13.48 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008483/0.2126, allocations: 437.9 kB / 0.7156 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 8.408e-05/0.2127, allocations: 29.7 kB / 0.7156 GB, free: 13.01 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003308/0.2131, allocations: 280.6 kB / 0.7158 GB, free: 12.73 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002424/0.2133, allocations: 177.4 kB / 0.716 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003253/0.2137, allocations: 126.1 kB / 0.7161 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002242/0.2139, allocations: 358.8 kB / 0.7165 GB, free: 12.07 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001253/0.2152, allocations: 300.9 kB / 0.7168 GB, free: 11.77 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001603/0.2168, allocations: 440.5 kB / 0.7172 GB, free: 11.29 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002849/0.2197, allocations: 0.6983 MB / 0.7179 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.518e-06/0.2197, allocations: 8 kB / 0.7179 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.003449/0.2232, allocations: 0.8183 MB / 0.7187 GB, free: 9.715 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 3.172e-05/0.2232, allocations: 8 kB / 0.7187 GB, free: 9.707 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/0.2232, allocations: 4 kB / 0.7187 GB, free: 9.703 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.574e-05/0.2233, allocations: 4 kB / 0.7187 GB, free: 9.699 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/0.2246, allocations: 175.9 kB / 0.7189 GB, free: 9.527 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.292e-05/0.2247, allocations: 11.94 kB / 0.7189 GB, free: 9.516 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001057/0.2257, allocations: 101.1 kB / 0.719 GB, free: 9.418 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.624e-05/0.2258, allocations: 27.97 kB / 0.719 GB, free: 9.391 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (70): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004437/0.2263, allocations: 210.9 kB / 0.7192 GB, free: 9.176 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001502/0.2264, allocations: 51.34 kB / 0.7192 GB, free: 9.125 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003385/0.2298, allocations: 0.8909 MB / 0.7201 GB, free: 8.227 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.2299, allocations: 8 kB / 0.7201 GB, free: 8.219 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.685e-06/0.2299, allocations: 3.938 kB / 0.7201 GB, free: 8.215 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.2299, allocations: 7.984 kB / 0.7201 GB, free: 8.207 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003392/0.2333, allocations: 1.567 MB / 0.7217 GB, free: 6.582 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.2333, allocations: 0 / 0.7217 GB, free: 6.582 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/0.2344, allocations: 155.8 kB / 0.7218 GB, free: 6.43 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.648e-06/0.2344, allocations: 3.938 kB / 0.7218 GB, free: 6.426 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.955e-05/0.2345, allocations: 23.92 kB / 0.7218 GB, free: 6.402 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.424e-06/0.2345, allocations: 4 kB / 0.7218 GB, free: 6.398 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.2345, allocations: 0 / 0.7218 GB, free: 6.398 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002867/0.2374, allocations: 0.8581 MB / 0.7227 GB, free: 5.523 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003736/0.2378, allocations: 212.1 kB / 0.7229 GB, free: 5.297 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001233/0.2379, allocations: 12 kB / 0.7229 GB, free: 5.285 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008045/0.2387, allocations: 55.94 kB / 0.7229 GB, free: 5.23 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001446/0.2389, allocations: 44.5 kB / 0.723 GB, free: 5.188 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.287e-05/0.239, allocations: 23.98 kB / 0.723 GB, free: 5.164 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0005032/0.2395, allocations: 299.1 kB / 0.7233 GB, free: 4.875 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2e-07/0.2395, allocations: 3.938 kB / 0.7233 GB, free: 4.871 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.001067/0.2406, allocations: 227.7 kB / 0.7235 GB, free: 4.648 MB / 0.5137 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 (66): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * 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.005171/0.2458, allocations: 1.794 MB / 0.7253 GB, free: 2.98 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.003367/0.2492, allocations: 0.7729 MB / 0.726 GB, free: 2.207 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.2492, allocations: 7.938 kB / 0.726 GB, free: 2.199 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001328/0.2505, allocations: 387.4 kB / 0.7264 GB, free: 1.82 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007572/0.2513, allocations: 75.52 kB / 0.7265 GB, free: 1.754 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01462/0.2659, allocations: 5.407 MB / 0.7318 GB, free: 12.17 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007729/0.2667, allocations: 0.8812 MB / 0.7326 GB, free: 11.27 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.001267/0.268, allocations: 148.5 kB / 0.7328 GB, free: 11.12 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006495/0.2687, allocations: 223.3 kB / 0.733 GB, free: 10.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.673e-06/0.2687, allocations: 3.938 kB / 0.733 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05358/0.3223, allocations: 13.96 MB / 0.7466 GB, free: 13.12 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.85/8.172, allocations: 9.578 kB / 0.7466 GB, free: 13.11 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple_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_PVModuleSimple.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleSimple.pipe 2>&1)