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.001346/0.001346, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.001383/0.001383, allocations: 191.4 kB / 17.34 MB, free: 5.695 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.253/1.253, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002039/0.002039, allocations: 281.5 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 0.8838/0.8838, allocations: 169.3 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001684/0.001684, allocations: 99.83 kB / 0.6821 GB, free: 7.004 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.419/0.4207, allocations: 86.98 MB / 0.767 GB, free: 3.938 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP): time 0.004728/0.4254, allocations: 3.686 MB / 0.7706 GB, free: 240 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.004796/0.4303, allocations: 3.466 MB / 0.774 GB, free: 12.75 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003789/0.4307, allocations: 7.938 kB / 0.774 GB, free: 12.75 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.0005241/0.4312, allocations: 119 kB / 0.7741 GB, free: 12.63 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.001232/0.4325, allocations: 453.5 kB / 0.7746 GB, free: 12.18 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008236/0.4333, allocations: 398.6 kB / 0.7749 GB, free: 11.8 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0008976/0.4342, allocations: 0.8034 MB / 0.7757 GB, free: 10.99 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003151/0.4345, allocations: 197.9 kB / 0.7759 GB, free: 10.8 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004969/0.435, allocations: 346.8 kB / 0.7762 GB, free: 10.46 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005598/0.4356, allocations: 342.6 kB / 0.7766 GB, free: 10.12 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.0001527/0.4358, allocations: 72 kB / 0.7766 GB, free: 10.05 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009106/0.4367, allocations: 0.4995 MB / 0.7771 GB, free: 9.551 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001885/0.4369, allocations: 179.4 kB / 0.7773 GB, free: 9.375 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0003134/0.4372, allocations: 330.3 kB / 0.7776 GB, free: 9.051 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.001345/0.4386, allocations: 1.112 MB / 0.7787 GB, free: 7.938 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.4386, allocations: 0 / 0.7787 GB, free: 7.938 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.493e-06/0.4386, allocations: 0 / 0.7787 GB, free: 7.938 MB / 0.545 GB Notification: Performance of Transformations before backend: time 2.106e-05/0.4386, allocations: 0 / 0.7787 GB, free: 7.938 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.00221/0.4408, allocations: 1.03 MB / 0.7797 GB, free: 6.855 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.4409, allocations: 12.03 kB / 0.7797 GB, free: 6.844 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003038/0.4439, allocations: 0.5619 MB / 0.7803 GB, free: 6.281 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0013/0.4452, allocations: 0.6274 MB / 0.7809 GB, free: 5.617 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001153/0.4454, allocations: 126.2 kB / 0.781 GB, free: 5.477 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.614e-05/0.4454, allocations: 44 kB / 0.781 GB, free: 5.434 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/0.4468, allocations: 0.6792 MB / 0.7817 GB, free: 4.738 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.4469, allocations: 0 / 0.7817 GB, free: 4.738 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.7e-05/0.4469, allocations: 20 kB / 0.7817 GB, free: 4.719 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.447, allocations: 12 kB / 0.7817 GB, free: 4.707 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001621/0.4486, allocations: 0.7142 MB / 0.7824 GB, free: 3.988 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003258/0.4518, allocations: 1.863 MB / 0.7843 GB, free: 2.07 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002513/0.4544, allocations: 0.826 MB / 0.7851 GB, free: 1.234 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007866/0.4552, allocations: 354.3 kB / 0.7854 GB, free: 0.8867 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001635/0.4568, allocations: 1.765 MB / 0.7871 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008934/0.4577, allocations: 434.8 kB / 0.7875 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=56): time 2.474e-06/0.4577, allocations: 0 / 0.7875 GB, free: 14.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=56): time 0.006387/0.4641, allocations: 1.507 MB / 0.789 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.043e-05/0.4642, allocations: 111.3 kB / 0.7891 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005435/0.4648, allocations: 406 kB / 0.7895 GB, free: 12.22 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 7.516e-05/0.4649, allocations: 33.7 kB / 0.7895 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002168/0.4651, allocations: 268.6 kB / 0.7898 GB, free: 11.92 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001756/0.4653, allocations: 193.3 kB / 0.79 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002349/0.4655, allocations: 122.2 kB / 0.7901 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001407/0.4657, allocations: 362.8 kB / 0.7904 GB, free: 11.24 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007355/0.4664, allocations: 289.1 kB / 0.7907 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007906/0.4672, allocations: 429.4 kB / 0.7911 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001508/0.4687, allocations: 0.7028 MB / 0.7918 GB, free: 9.738 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.4687, allocations: 0 / 0.7918 GB, free: 9.738 MB / 0.5606 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004108/0.4729, allocations: 1.073 MB / 0.7929 GB, free: 8.652 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.4729, allocations: 10.03 kB / 0.7929 GB, free: 8.645 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.996e-06/0.4729, allocations: 4 kB / 0.7929 GB, free: 8.641 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003007/0.4759, allocations: 376.6 kB / 0.7932 GB, free: 8.27 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007844/0.4767, allocations: 163.7 kB / 0.7934 GB, free: 8.109 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003761/0.4805, allocations: 2.172 MB / 0.7955 GB, free: 5.785 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007637/0.4813, allocations: 91.42 kB / 0.7956 GB, free: 5.695 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.491e-05/0.4814, allocations: 31.97 kB / 0.7956 GB, free: 5.664 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.0003488/0.4817, allocations: 201.7 kB / 0.7958 GB, free: 5.457 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001435/0.4819, allocations: 55.33 kB / 0.7959 GB, free: 5.402 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003019/0.4849, allocations: 1.062 MB / 0.7969 GB, free: 4.332 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.878e-06/0.4849, allocations: 11.94 kB / 0.7969 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.485, allocations: 0 / 0.7969 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.485, allocations: 3.984 kB / 0.7969 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003668/0.4886, allocations: 1.777 MB / 0.7987 GB, free: 2.484 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.4887, allocations: 0 / 0.7987 GB, free: 2.484 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007041/0.4894, allocations: 151.8 kB / 0.7988 GB, free: 2.336 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008614/0.4902, allocations: 144.6 kB / 0.7989 GB, free: 2.191 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.493e-05/0.4903, allocations: 23.92 kB / 0.799 GB, free: 2.168 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002282/0.4926, allocations: 1.912 MB / 0.8008 GB, free: 108 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4926, allocations: 3.938 kB / 0.8008 GB, free: 104 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002757/0.4954, allocations: 1.023 MB / 0.8018 GB, free: 15.06 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002691/0.4957, allocations: 212.2 kB / 0.802 GB, free: 14.83 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.4958, allocations: 19.94 kB / 0.802 GB, free: 14.81 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005804/0.4964, allocations: 52.12 kB / 0.8021 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.4965, allocations: 40.59 kB / 0.8021 GB, free: 14.72 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.389e-05/0.4965, allocations: 31.98 kB / 0.8022 GB, free: 14.69 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.000309/0.4969, allocations: 279.1 kB / 0.8024 GB, free: 14.43 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4969, allocations: 4 kB / 0.8024 GB, free: 14.42 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0007476/0.4976, allocations: 235.7 kB / 0.8027 GB, free: 14.19 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.001153/0.4988, allocations: 0.4918 MB / 0.8031 GB, free: 13.84 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.002155/0.5009, allocations: 0.8912 MB / 0.804 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.501, allocations: 0 / 0.804 GB, free: 12.93 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.00108/0.502, allocations: 0.5336 MB / 0.8045 GB, free: 12.38 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004886/0.5025, allocations: 71.28 kB / 0.8046 GB, free: 12.31 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002151/0.5047, allocations: 1.267 MB / 0.8058 GB, free: 11.02 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003929/0.5051, allocations: 0.8773 MB / 0.8067 GB, free: 10.11 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002913/0.5054, allocations: 87.38 kB / 0.8068 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of SimCode: time 3.81e-07/0.5054, allocations: 0 / 0.8068 GB, free: 10.02 MB / 0.5762 GB Notification: Performance of Templates: time 0.01555/0.521, allocations: 12.63 MB / 0.8191 GB, free: 13.43 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Technologies.Photovoltaics.Examples.PVModuleComplexMPP.pipe 2>&1)