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: translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP") translateModel(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 108.2 kB / 16.41 MB, free: 6.504 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.001191/0.001191, allocations: 191.8 kB / 17.34 MB, free: 5.758 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.419/1.419, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002493/0.002493, allocations: 293.4 kB / 291.5 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 1.004/1.004, allocations: 169.3 MB / 0.499 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00274/0.00274, allocations: 91.84 kB / 0.6821 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4094/0.4122, allocations: 86.98 MB / 0.767 GB, free: 3.906 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.005326/0.4175, allocations: 3.702 MB / 0.7706 GB, free: 188 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.005119/0.4226, allocations: 3.474 MB / 0.774 GB, free: 12.7 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002332/0.4229, allocations: 7.938 kB / 0.774 GB, free: 12.69 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.0004468/0.4233, allocations: 123 kB / 0.7742 GB, free: 12.57 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001035/0.4243, allocations: 457.5 kB / 0.7746 GB, free: 12.12 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007838/0.4251, allocations: 390.4 kB / 0.775 GB, free: 11.74 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0008409/0.426, allocations: 0.8112 MB / 0.7758 GB, free: 10.93 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002442/0.4262, allocations: 134 kB / 0.7759 GB, free: 10.79 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004129/0.4266, allocations: 346.8 kB / 0.7762 GB, free: 10.45 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004998/0.4271, allocations: 342.7 kB / 0.7765 GB, free: 10.12 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001039/0.4272, allocations: 72 kB / 0.7766 GB, free: 10.05 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007997/0.428, allocations: 0.4956 MB / 0.7771 GB, free: 9.551 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002033/0.4282, allocations: 179.4 kB / 0.7773 GB, free: 9.375 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003166/0.4285, allocations: 334.3 kB / 0.7776 GB, free: 9.047 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001344/0.4299, allocations: 1.123 MB / 0.7787 GB, free: 7.926 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.4299, allocations: 4 kB / 0.7787 GB, free: 7.922 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.352e-06/0.4299, allocations: 0 / 0.7787 GB, free: 7.922 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.005e-05/0.4299, allocations: 0 / 0.7787 GB, free: 7.922 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.00223/0.4321, allocations: 1.047 MB / 0.7797 GB, free: 6.824 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.81e-05/0.4322, allocations: 20.02 kB / 0.7797 GB, free: 6.805 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003338/0.4355, allocations: 0.5585 MB / 0.7803 GB, free: 6.246 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001454/0.437, allocations: 0.6316 MB / 0.7809 GB, free: 5.578 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001395/0.4371, allocations: 122.2 kB / 0.781 GB, free: 5.441 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001048/0.4372, allocations: 48 kB / 0.781 GB, free: 5.395 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001501/0.4387, allocations: 0.683 MB / 0.7817 GB, free: 4.695 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/0.4387, allocations: 3.984 kB / 0.7817 GB, free: 4.691 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.98e-05/0.4388, allocations: 16 kB / 0.7817 GB, free: 4.676 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.511e-05/0.4388, allocations: 12 kB / 0.7817 GB, free: 4.664 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001859/0.4407, allocations: 0.7143 MB / 0.7824 GB, free: 3.945 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0036/0.4443, allocations: 1.856 MB / 0.7843 GB, free: 2.035 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002831/0.4471, allocations: 0.7985 MB / 0.785 GB, free: 1.227 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008669/0.448, allocations: 326.3 kB / 0.7853 GB, free: 0.9062 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002053/0.45, allocations: 1.765 MB / 0.7871 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001066/0.4511, allocations: 430.9 kB / 0.7875 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=56): time 2.685e-06/0.4511, allocations: 0 / 0.7875 GB, free: 14.32 MB / 0.5606 GB Notification: Performance of matching and sorting (n=56): time 0.007216/0.4583, allocations: 1.5 MB / 0.7889 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.401e-05/0.4584, allocations: 115.4 kB / 0.7891 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005254/0.4589, allocations: 406 kB / 0.7894 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.847e-05/0.459, allocations: 33.7 kB / 0.7895 GB, free: 12.21 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002293/0.4592, allocations: 277.1 kB / 0.7897 GB, free: 11.94 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001862/0.4594, allocations: 198.2 kB / 0.7899 GB, free: 11.74 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000219/0.4596, allocations: 122.2 kB / 0.79 GB, free: 11.62 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0002333/0.4599, allocations: 358.8 kB / 0.7904 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008293/0.4607, allocations: 301.1 kB / 0.7907 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009374/0.4616, allocations: 433.4 kB / 0.7911 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001732/0.4634, allocations: 0.6911 MB / 0.7918 GB, free: 9.754 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.913e-06/0.4634, allocations: 4 kB / 0.7918 GB, free: 9.75 MB / 0.5606 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004582/0.4679, allocations: 1.069 MB / 0.7928 GB, free: 8.668 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.468, allocations: 11.94 kB / 0.7928 GB, free: 8.656 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.674e-05/0.468, allocations: 4 kB / 0.7928 GB, free: 8.652 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003303/0.4713, allocations: 380.8 kB / 0.7932 GB, free: 8.277 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009225/0.4722, allocations: 159.7 kB / 0.7933 GB, free: 8.121 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004437/0.4767, allocations: 2.164 MB / 0.7955 GB, free: 5.805 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008292/0.4775, allocations: 91.61 kB / 0.7955 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.727e-05/0.4776, allocations: 31.97 kB / 0.7956 GB, free: 5.684 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.0003754/0.4779, allocations: 212.1 kB / 0.7958 GB, free: 5.469 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001279/0.4781, allocations: 55.66 kB / 0.7958 GB, free: 5.414 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003423/0.4815, allocations: 1.074 MB / 0.7969 GB, free: 4.332 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-05/0.4815, allocations: 11.94 kB / 0.7969 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-06/0.4815, allocations: 0 / 0.7969 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.4815, allocations: 3.984 kB / 0.7969 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004141/0.4857, allocations: 1.773 MB / 0.7986 GB, free: 2.488 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.4857, allocations: 3.938 kB / 0.7986 GB, free: 2.484 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007883/0.4865, allocations: 151.7 kB / 0.7988 GB, free: 2.336 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009476/0.4874, allocations: 136.7 kB / 0.7989 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.173e-05/0.4875, allocations: 23.92 kB / 0.7989 GB, free: 2.176 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002804/0.4903, allocations: 1.927 MB / 0.8008 GB, free: 100 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.4903, allocations: 0 / 0.8008 GB, free: 100 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003095/0.4934, allocations: 1.023 MB / 0.8018 GB, free: 15.05 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003397/0.4937, allocations: 212.5 kB / 0.802 GB, free: 14.82 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.717e-05/0.4938, allocations: 12 kB / 0.802 GB, free: 14.81 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000636/0.4944, allocations: 55.94 kB / 0.8021 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001224/0.4945, allocations: 44.59 kB / 0.8021 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.129e-05/0.4946, allocations: 23.98 kB / 0.8021 GB, free: 14.69 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003573/0.495, allocations: 279.1 kB / 0.8024 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/0.495, allocations: 0 / 0.8024 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008714/0.4958, allocations: 247.4 kB / 0.8026 GB, free: 14.18 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.001714/0.4976, allocations: 0.5084 MB / 0.8031 GB, free: 13.82 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00252/0.5001, allocations: 0.8562 MB / 0.804 GB, free: 12.95 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.176e-06/0.5001, allocations: 4.125 kB / 0.804 GB, free: 12.94 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001214/0.5013, allocations: 0.5021 MB / 0.8045 GB, free: 12.43 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000608/0.5019, allocations: 78.83 kB / 0.8045 GB, free: 12.35 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002518/0.5044, allocations: 1.234 MB / 0.8057 GB, free: 11.09 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005731/0.505, allocations: 0.8773 MB / 0.8066 GB, free: 10.18 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0006097/0.5056, allocations: 152.4 kB / 0.8068 GB, free: 10.03 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002458/0.5058, allocations: 75.38 kB / 0.8068 GB, free: 9.957 MB / 0.5762 GB Notification: Performance of SimCode: time 7.81e-07/0.5059, allocations: 0 / 0.8068 GB, free: 9.957 MB / 0.5762 GB Notification: Performance of Templates: time 0.01899/0.5248, allocations: 10.18 MB / 0.8168 GB, free: 15.84 MB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.makefile (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 & ./BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe 2>&1)