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.006686/0.006686, allocations: 100.1 kB / 15.73 MB, free: 6.062 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.001326/0.001326, allocations: 198.3 kB / 16.68 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.305/1.305, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001967/0.001967, allocations: 283.1 kB / 290.8 MB, free: 1.773 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9477/0.9477, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001633/0.001633, allocations: 95.83 kB / 0.6814 GB, free: 15.55 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.136, allocations: 86.97 MB / 0.7663 GB, free: 8.496 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.004676/0.1407, allocations: 3.692 MB / 0.77 GB, free: 4.781 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004727/0.1455, allocations: 3.462 MB / 0.7733 GB, free: 1.305 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002165/0.1457, allocations: 15.88 kB / 0.7734 GB, free: 1.289 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.0005027/0.1462, allocations: 115 kB / 0.7735 GB, free: 1.176 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.000949/0.1472, allocations: 453.5 kB / 0.7739 GB, free: 0.7305 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007078/0.1479, allocations: 393.7 kB / 0.7743 GB, free: 356 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.3068/0.4548, allocations: 0.8052 MB / 0.7751 GB, free: 8.895 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004111/0.4552, allocations: 195.4 kB / 0.7752 GB, free: 8.875 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005077/0.4557, allocations: 340.2 kB / 0.7756 GB, free: 8.852 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004883/0.4562, allocations: 345.1 kB / 0.7759 GB, free: 8.793 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.000122/0.4564, allocations: 69.56 kB / 0.776 GB, free: 8.793 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009738/0.4574, allocations: 0.5047 MB / 0.7765 GB, free: 8.789 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001894/0.4576, allocations: 176.7 kB / 0.7766 GB, free: 8.77 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0003016/0.4579, allocations: 329.1 kB / 0.7769 GB, free: 8.676 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001398/0.4593, allocations: 1.124 MB / 0.778 GB, free: 8.551 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.4593, allocations: 0.625 kB / 0.778 GB, free: 8.551 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.432e-06/0.4593, allocations: 2.188 kB / 0.778 GB, free: 8.551 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.364e-05/0.4593, allocations: 0.8438 kB / 0.778 GB, free: 8.551 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001956/0.4613, allocations: 1.02 MB / 0.779 GB, free: 7.926 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.288e-05/0.4613, allocations: 13.11 kB / 0.779 GB, free: 7.926 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003135/0.4645, allocations: 0.5656 MB / 0.7796 GB, free: 7.887 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001203/0.4657, allocations: 0.6202 MB / 0.7802 GB, free: 7.625 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.533e-05/0.4658, allocations: 119.3 kB / 0.7803 GB, free: 7.531 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.631e-05/0.4659, allocations: 52.31 kB / 0.7804 GB, free: 7.523 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001304/0.4672, allocations: 0.6884 MB / 0.781 GB, free: 7.445 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.4672, allocations: 1 kB / 0.781 GB, free: 7.445 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.859e-05/0.4673, allocations: 21.59 kB / 0.7811 GB, free: 7.445 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.453e-05/0.4673, allocations: 11.44 kB / 0.7811 GB, free: 7.445 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001598/0.4689, allocations: 0.7063 MB / 0.7818 GB, free: 7.434 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003183/0.4721, allocations: 1.868 MB / 0.7836 GB, free: 6.703 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002576/0.4747, allocations: 0.8205 MB / 0.7844 GB, free: 6.426 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007705/0.4755, allocations: 358 kB / 0.7847 GB, free: 6.293 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001338/0.4768, allocations: 1.767 MB / 0.7865 GB, free: 4.309 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009041/0.4777, allocations: 429.8 kB / 0.7869 GB, free: 4.148 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=56): time 2.464e-06/0.4778, allocations: 0 / 0.7869 GB, free: 4.148 MB / 0.5606 GB Notification: Performance of matching and sorting (n=56): time 0.006526/0.4843, allocations: 1.505 MB / 0.7883 GB, free: 3.656 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.536e-05/0.4843, allocations: 110.2 kB / 0.7884 GB, free: 3.531 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005386/0.4849, allocations: 399.8 kB / 0.7888 GB, free: 19.33 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 5.93e-05/0.4849, allocations: 40.14 kB / 0.7889 GB, free: 19.29 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.000156/0.4851, allocations: 270 kB / 0.7891 GB, free: 19.07 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/0.4852, allocations: 185.4 kB / 0.7893 GB, free: 18.93 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002214/0.4855, allocations: 126.1 kB / 0.7894 GB, free: 18.87 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001289/0.4856, allocations: 361.2 kB / 0.7898 GB, free: 18.54 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007206/0.4863, allocations: 287.4 kB / 0.79 GB, free: 18.44 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007866/0.4871, allocations: 431.9 kB / 0.7904 GB, free: 18.19 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001466/0.4886, allocations: 0.6967 MB / 0.7911 GB, free: 17.84 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.419e-06/0.4886, allocations: 0.75 kB / 0.7911 GB, free: 17.84 MB / 0.5762 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004145/0.4928, allocations: 1.082 MB / 0.7922 GB, free: 17.51 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.4928, allocations: 8.484 kB / 0.7922 GB, free: 17.51 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.644e-06/0.4928, allocations: 3.25 kB / 0.7922 GB, free: 17.51 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003077/0.4959, allocations: 376.5 kB / 0.7926 GB, free: 17.48 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007919/0.4967, allocations: 161.9 kB / 0.7927 GB, free: 17.47 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003772/0.5005, allocations: 2.172 MB / 0.7948 GB, free: 15.69 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007155/0.5012, allocations: 89.72 kB / 0.7949 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.456e-05/0.5013, allocations: 29.94 kB / 0.7949 GB, free: 15.65 MB / 0.5762 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.0003142/0.5016, allocations: 211.2 kB / 0.7951 GB, free: 15.49 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.5017, allocations: 50.73 kB / 0.7952 GB, free: 15.46 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003337/0.5051, allocations: 1.056 MB / 0.7962 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.5051, allocations: 12.31 kB / 0.7962 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.5051, allocations: 0 / 0.7962 GB, free: 15.09 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.5051, allocations: 8.766 kB / 0.7962 GB, free: 15.08 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003925/0.509, allocations: 1.776 MB / 0.798 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.5091, allocations: 1.25 kB / 0.798 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007961/0.5099, allocations: 154.8 kB / 0.7981 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009445/0.5108, allocations: 139.3 kB / 0.7983 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.349e-05/0.5109, allocations: 22.62 kB / 0.7983 GB, free: 14.2 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002715/0.5136, allocations: 1.921 MB / 0.8002 GB, free: 12.54 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.5136, allocations: 0 / 0.8002 GB, free: 12.54 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003306/0.5169, allocations: 1.022 MB / 0.8012 GB, free: 12.11 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003603/0.5173, allocations: 210.4 kB / 0.8014 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.542e-05/0.5174, allocations: 15.91 kB / 0.8014 GB, free: 11.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006195/0.5181, allocations: 49.94 kB / 0.8014 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002/0.5183, allocations: 48.45 kB / 0.8015 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.924e-05/0.5184, allocations: 26.41 kB / 0.8015 GB, free: 11.91 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005372/0.5189, allocations: 283 kB / 0.8018 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/0.5189, allocations: 4 kB / 0.8018 GB, free: 11.77 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001338/0.5203, allocations: 239.6 kB / 0.802 GB, free: 11.7 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.001475/0.5217, allocations: 0.4992 MB / 0.8025 GB, free: 11.52 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002568/0.5243, allocations: 0.8924 MB / 0.8033 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.5243, allocations: 0 / 0.8033 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001154/0.5255, allocations: 0.5361 MB / 0.8039 GB, free: 10.92 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005207/0.526, allocations: 80.73 kB / 0.8039 GB, free: 10.87 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002308/0.5283, allocations: 1.221 MB / 0.8051 GB, free: 10.27 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004751/0.5288, allocations: 0.8824 MB / 0.806 GB, free: 9.551 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0005897/0.5294, allocations: 147.5 kB / 0.8061 GB, free: 9.508 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002418/0.5297, allocations: 75.84 kB / 0.8062 GB, free: 9.488 MB / 0.5762 GB Notification: Performance of SimCode: time 2.8e-07/0.5297, allocations: 0 / 0.8062 GB, free: 9.488 MB / 0.5762 GB Notification: Performance of Templates: time 0.01894/0.5486, allocations: 10.13 MB / 0.8161 GB, free: 5.965 MB / 0.5762 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe 2>&1)