Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.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.PVModuleComplexMPP,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplexMPP",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP,fileNamePrefix="BuildingSystems_BuildingSystems_Technologies_Photovoltaics_Examples_PVModuleComplexMPP",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.007195/0.007195, allocations: 99.7 kB / 15.73 MB, free: 6.012 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.001767/0.001767, allocations: 190.5 kB / 16.67 MB, free: 5.926 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.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00278/0.00278, allocations: 285.5 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9676/0.9676, allocations: 169.3 MB / 0.4983 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002661/0.002661, allocations: 91.86 kB / 0.6809 GB, free: 7.512 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4746/0.4773, allocations: 86.99 MB / 0.7659 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.005403/0.4827, allocations: 3.686 MB / 0.7695 GB, free: 180 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.005526/0.4883, allocations: 3.454 MB / 0.7729 GB, free: 12.71 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004262/0.4887, allocations: 11.94 kB / 0.7729 GB, free: 12.7 MB / 0.545 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.000567/0.4894, allocations: 119 kB / 0.773 GB, free: 12.58 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001241/0.4906, allocations: 465.4 kB / 0.7734 GB, free: 12.12 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009103/0.4915, allocations: 385.2 kB / 0.7738 GB, free: 11.75 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0008465/0.4924, allocations: 0.8113 MB / 0.7746 GB, free: 10.93 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003086/0.4927, allocations: 197.8 kB / 0.7748 GB, free: 10.74 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003941/0.4931, allocations: 330.9 kB / 0.7751 GB, free: 10.41 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005302/0.4936, allocations: 350.6 kB / 0.7754 GB, free: 10.07 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001045/0.4938, allocations: 72 kB / 0.7755 GB, free: 10 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008903/0.4946, allocations: 0.4956 MB / 0.776 GB, free: 9.504 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002113/0.4949, allocations: 179.5 kB / 0.7761 GB, free: 9.328 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003243/0.4952, allocations: 330.3 kB / 0.7765 GB, free: 9.004 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001353/0.4966, allocations: 1.122 MB / 0.7776 GB, free: 7.883 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.4966, allocations: 0 / 0.7776 GB, free: 7.883 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.503e-06/0.4966, allocations: 0 / 0.7776 GB, free: 7.883 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.266e-05/0.4966, allocations: 0 / 0.7776 GB, free: 7.883 MB / 0.545 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.002172/0.4988, allocations: 1.052 MB / 0.7786 GB, free: 6.777 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.4988, allocations: 16.02 kB / 0.7786 GB, free: 6.762 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001143/0.499, allocations: 86.72 kB / 0.7787 GB, free: 6.668 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003007/0.502, allocations: 0.5702 MB / 0.7792 GB, free: 6.098 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001331/0.5033, allocations: 0.6239 MB / 0.7798 GB, free: 5.438 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001325/0.5034, allocations: 118 kB / 0.78 GB, free: 5.305 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.875e-05/0.5035, allocations: 48 kB / 0.78 GB, free: 5.258 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001418/0.505, allocations: 0.683 MB / 0.7807 GB, free: 4.559 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.505, allocations: 0 / 0.7807 GB, free: 4.559 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.497e-05/0.5051, allocations: 20 kB / 0.7807 GB, free: 4.539 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.589e-05/0.5051, allocations: 12 kB / 0.7807 GB, free: 4.527 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00172/0.5068, allocations: 0.7143 MB / 0.7814 GB, free: 3.809 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003378/0.5102, allocations: 1.883 MB / 0.7832 GB, free: 1.871 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002596/0.5128, allocations: 0.8182 MB / 0.784 GB, free: 1.043 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008355/0.5137, allocations: 346.3 kB / 0.7844 GB, free: 0.7031 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001868/0.5155, allocations: 1.769 MB / 0.7861 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009586/0.5165, allocations: 437.5 kB / 0.7865 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=56): time 2.465e-06/0.5165, allocations: 0 / 0.7865 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of matching and sorting (n=56): time 0.006518/0.5231, allocations: 1.5 MB / 0.788 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.691e-05/0.5232, allocations: 119.4 kB / 0.7881 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005308/0.5237, allocations: 401.9 kB / 0.7885 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.143e-05/0.5238, allocations: 37.7 kB / 0.7885 GB, free: 12 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002201/0.524, allocations: 273.3 kB / 0.7888 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.000187/0.5242, allocations: 202.3 kB / 0.789 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002287/0.5244, allocations: 122.2 kB / 0.7891 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001643/0.5246, allocations: 362.7 kB / 0.7894 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007678/0.5254, allocations: 297.1 kB / 0.7897 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000892/0.5263, allocations: 425.5 kB / 0.7901 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00163/0.5279, allocations: 0.695 MB / 0.7908 GB, free: 9.543 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.5279, allocations: 0 / 0.7908 GB, free: 9.543 MB / 0.5606 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004189/0.5321, allocations: 1.077 MB / 0.7918 GB, free: 8.453 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.5322, allocations: 8 kB / 0.7919 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.5322, allocations: 4 kB / 0.7919 GB, free: 8.441 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002917/0.5351, allocations: 384.8 kB / 0.7922 GB, free: 8.062 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008058/0.5359, allocations: 155.7 kB / 0.7924 GB, free: 7.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003942/0.5399, allocations: 2.172 MB / 0.7945 GB, free: 5.586 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007189/0.5406, allocations: 99.55 kB / 0.7946 GB, free: 5.488 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-05/0.5407, allocations: 31.97 kB / 0.7946 GB, free: 5.457 MB / 0.5606 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): 69 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {3} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003239/0.541, allocations: 201.7 kB / 0.7948 GB, free: 5.25 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/0.5412, allocations: 55.61 kB / 0.7949 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003112/0.5443, allocations: 1.058 MB / 0.7959 GB, free: 4.129 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.5443, allocations: 11.94 kB / 0.7959 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.315e-06/0.5443, allocations: 0 / 0.7959 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.246e-05/0.5443, allocations: 7.984 kB / 0.7959 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003824/0.5481, allocations: 1.785 MB / 0.7977 GB, free: 2.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.5482, allocations: 0 / 0.7977 GB, free: 2.27 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000733/0.5489, allocations: 147.8 kB / 0.7978 GB, free: 2.125 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008788/0.5498, allocations: 144.7 kB / 0.7979 GB, free: 1.98 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.598e-05/0.5499, allocations: 27.92 kB / 0.798 GB, free: 1.953 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002566/0.5524, allocations: 1.916 MB / 0.7998 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.5524, allocations: 80 / 0.7998 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002796/0.5552, allocations: 1.023 MB / 0.8008 GB, free: 14.84 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000292/0.5556, allocations: 220.4 kB / 0.801 GB, free: 14.61 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.3e-05/0.5556, allocations: 8.188 kB / 0.8011 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005668/0.5562, allocations: 67.86 kB / 0.8011 GB, free: 14.54 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000118/0.5563, allocations: 48.59 kB / 0.8012 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.926e-05/0.5564, allocations: 19.98 kB / 0.8012 GB, free: 14.47 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003356/0.5568, allocations: 287.1 kB / 0.8015 GB, free: 14.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5568, allocations: 0 / 0.8015 GB, free: 14.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007775/0.5575, allocations: 243.4 kB / 0.8017 GB, free: 13.96 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 (67): * 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: 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 {(3,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004635/0.5622, allocations: 1.966 MB / 0.8036 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00226/0.5645, allocations: 0.8757 MB / 0.8045 GB, free: 11.22 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.5645, allocations: 4.188 kB / 0.8045 GB, free: 11.21 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001151/0.5656, allocations: 0.5411 MB / 0.805 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004825/0.5661, allocations: 71.91 kB / 0.8051 GB, free: 10.59 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01321/0.5794, allocations: 5.781 MB / 0.8107 GB, free: 4.633 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005105/0.5799, allocations: 0.8851 MB / 0.8116 GB, free: 3.723 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0006157/0.5805, allocations: 144.5 kB / 0.8117 GB, free: 3.578 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003987/0.5809, allocations: 219.3 kB / 0.8119 GB, free: 3.363 MB / 0.5762 GB Notification: Performance of SimCode: time 6.22e-07/0.5809, allocations: 0 / 0.8119 GB, free: 3.363 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04882/0.6298, allocations: 15.66 MB / 0.8272 GB, free: 3.934 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.66, allocations: 3.125 kB / 0.8272 GB, free: 3.934 MB / 0.5919 GB (rm -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe ; mkfifo BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe >> ../files/BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP_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_PVModuleComplexMPP.fmu > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe 2>&1)