Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 102.1 kB / 19.7 MB, free: 2.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 218.4 kB / 23.01 MB, free: 5.125 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.474/1.474, allocations: 230.6 MB / 256.8 MB, free: 7.973 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo): time 0.03272/0.03272, allocations: 5.485 MB / 318.7 MB, free: 13.81 MB / 254.1 MB " [Timeout remaining time 180] Using package PhotoVoltaics with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PhotoVoltaics.Examples.SimpleModuleMPDC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC") translateModel(PhotoVoltaics.Examples.SimpleModuleMPDC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=86400,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC") [Timeout 660] "Notification: PhotoVoltaics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00217/0.00217, allocations: 63.91 kB / 447.4 MB, free: 3.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09957/0.1017, allocations: 54.62 MB / 0.4903 GB, free: 12.78 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.007777/0.1095, allocations: 5.234 MB / 0.4954 GB, free: 7.516 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004717/0.1142, allocations: 1.916 MB / 0.4973 GB, free: 5.594 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006508/0.1149, allocations: 15.94 kB / 0.4973 GB, free: 5.578 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009058/0.1158, allocations: 297.9 kB / 0.4976 GB, free: 5.285 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001009/0.1168, allocations: 313.8 kB / 0.4979 GB, free: 4.977 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008631/0.1177, allocations: 327.4 kB / 0.4982 GB, free: 4.656 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001618/0.1193, allocations: 1.106 MB / 0.4993 GB, free: 3.547 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000571/0.1199, allocations: 311.4 kB / 0.4996 GB, free: 3.219 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008192/0.1207, allocations: 466.4 kB / 0.5 GB, free: 2.762 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009319/0.1216, allocations: 0.5252 MB / 0.5005 GB, free: 2.234 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002279/0.1218, allocations: 112 kB / 0.5006 GB, free: 2.125 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004271/0.1223, allocations: 187.9 kB / 0.5008 GB, free: 1.941 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002028/0.1225, allocations: 231.2 kB / 0.501 GB, free: 1.715 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005396/0.123, allocations: 497.6 kB / 0.5015 GB, free: 1.227 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001361/0.1244, allocations: 1.195 MB / 0.5027 GB, free: 28 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.1244, allocations: 4 kB / 0.5027 GB, free: 24 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1244, allocations: 0 / 0.5027 GB, free: 24 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.107e-05/0.1244, allocations: 0 / 0.5027 GB, free: 24 kB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 185 * Number of variables: 185 Notification: Performance of Generate backend data structure: time 0.003244/0.1276, allocations: 1.245 MB / 0.5039 GB, free: 14.73 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.1277, allocations: 8.031 kB / 0.5039 GB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000191/0.1279, allocations: 100.3 kB / 0.504 GB, free: 14.63 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001581/0.1294, allocations: 0.5971 MB / 0.5046 GB, free: 14 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.362e-05/0.1295, allocations: 50 kB / 0.5046 GB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001241/0.1296, allocations: 76 kB / 0.5047 GB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001559/0.1312, allocations: 0.7776 MB / 0.5055 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.478e-05/0.1312, allocations: 3.938 kB / 0.5055 GB, free: 13.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.332e-05/0.1313, allocations: 28 kB / 0.5055 GB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.09e-05/0.1313, allocations: 23.94 kB / 0.5055 GB, free: 13.02 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001468/0.1328, allocations: 0.5972 MB / 0.5061 GB, free: 12.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004647/0.1374, allocations: 2.671 MB / 0.5087 GB, free: 9.637 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001496/0.1389, allocations: 486.8 kB / 0.5092 GB, free: 9.152 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005439/0.1394, allocations: 217.9 kB / 0.5094 GB, free: 8.938 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.864e-05/0.1395, allocations: 8.375 kB / 0.5094 GB, free: 8.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000756/0.1403, allocations: 397 kB / 0.5098 GB, free: 8.516 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.204e-06/0.1403, allocations: 0 / 0.5098 GB, free: 8.516 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.003138/0.1434, allocations: 0.9541 MB / 0.5107 GB, free: 7.539 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/0.1436, allocations: 200.3 kB / 0.5109 GB, free: 7.301 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006084/0.1442, allocations: 465.9 kB / 0.5113 GB, free: 6.836 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.435e-05/0.1442, allocations: 41.69 kB / 0.5114 GB, free: 6.789 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003023/0.1445, allocations: 376.3 kB / 0.5117 GB, free: 6.418 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001706/0.1447, allocations: 182.5 kB / 0.5119 GB, free: 6.238 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000236/0.1449, allocations: 142.6 kB / 0.512 GB, free: 6.094 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002189/0.1452, allocations: 370.8 kB / 0.5124 GB, free: 5.723 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005557/0.1457, allocations: 213.9 kB / 0.5126 GB, free: 5.512 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007096/0.1464, allocations: 362 kB / 0.5129 GB, free: 5.098 MB / 382.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01652/0.1629, allocations: 2.847 MB / 0.5157 GB, free: 2.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.515e-06/0.1629, allocations: 0 / 0.5157 GB, free: 2.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00212/0.1651, allocations: 0.8252 MB / 0.5165 GB, free: 1.312 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.042e-05/0.1651, allocations: 67.39 kB / 0.5166 GB, free: 1.234 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.1651, allocations: 4 kB / 0.5166 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004923/0.1656, allocations: 80.72 kB / 0.5167 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008693/0.1665, allocations: 171.8 kB / 0.5168 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1953/0.3618, allocations: 1.459 MB / 0.5183 GB, free: 31.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008596/0.3626, allocations: 73.97 kB / 0.5183 GB, free: 31.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.892e-05/0.3627, allocations: 36.23 kB / 0.5184 GB, free: 31.71 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $PRE.irradiance.daysOfYear = PhotoVoltaics.Functions.dayOfTheYear(31, 12, irradiance.startYear). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 22 (irradiance.year,$PRE.irradiance.year,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,mpTracker.sampleTrigger,$whenCondition1,irradiance.localDays,irradiance.daysOfYear,$PRE.irradiance.daysOfYear,irradiance.dayOfYear,$PRE.irradiance.dayOfYear,irradiance.startDayOfYear,$PRE.irradiance.startDayOfYear,mpTracker.vRef,$PRE.mpTracker.vRef,$whenCondition3,$whenCondition2,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (85): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 2 * 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 {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004164/0.3631, allocations: 293.8 kB / 0.5186 GB, free: 31.53 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.724e-05/0.3632, allocations: 69.03 kB / 0.5187 GB, free: 31.53 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001812/0.365, allocations: 0.8953 MB / 0.5196 GB, free: 31.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.365, allocations: 5.938 kB / 0.5196 GB, free: 31.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.365, allocations: 4.156 kB / 0.5196 GB, free: 31.41 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.365, allocations: 6.891 kB / 0.5196 GB, free: 31.41 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002987/0.368, allocations: 1.64 MB / 0.5212 GB, free: 31.05 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.368, allocations: 0 / 0.5212 GB, free: 31.05 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005187/0.3686, allocations: 104.4 kB / 0.5213 GB, free: 31.05 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005999/0.3692, allocations: 267.6 kB / 0.5216 GB, free: 31.01 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.323e-05/0.3692, allocations: 19.8 kB / 0.5216 GB, free: 31.01 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001026/0.3702, allocations: 0.8245 MB / 0.5224 GB, free: 30.46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.3702, allocations: 1.219 kB / 0.5224 GB, free: 30.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002499/0.3727, allocations: 1.215 MB / 0.5236 GB, free: 30.24 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003098/0.373, allocations: 122.2 kB / 0.5237 GB, free: 30.23 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.3732, allocations: 26.14 kB / 0.5237 GB, free: 30.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005495/0.3737, allocations: 39.12 kB / 0.5237 GB, free: 30.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.3738, allocations: 49.19 kB / 0.5238 GB, free: 30.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001084/0.3739, allocations: 28.19 kB / 0.5238 GB, free: 30.22 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00038/0.3743, allocations: 329 kB / 0.5241 GB, free: 30.13 MB / 382.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3743, allocations: 0 / 0.5241 GB, free: 30.13 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007408/0.375, allocations: 236.3 kB / 0.5244 GB, free: 30.11 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (converter.integrator.y,battery.energy,battery.capacitor.v) * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,$whenCondition3,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays) * Number of discrete states: 13 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * 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 {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002168/0.3753, allocations: 155.6 kB / 0.5245 GB, free: 30.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001559/0.3768, allocations: 0.7979 MB / 0.5253 GB, free: 29.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3768, allocations: 0 / 0.5253 GB, free: 29.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007037/0.3775, allocations: 403.5 kB / 0.5257 GB, free: 29.63 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006983/0.3782, allocations: 124.8 kB / 0.5258 GB, free: 29.63 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002522/0.3808, allocations: 1.433 MB / 0.5272 GB, free: 28.97 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004155/0.3812, allocations: 0.9376 MB / 0.5281 GB, free: 28.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002215/0.3814, allocations: 69.17 kB / 0.5282 GB, free: 28.25 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3814, allocations: 0 / 0.5282 GB, free: 28.25 MB / 382.1 MB Notification: Performance of Templates: time 0.01761/0.399, allocations: 12.5 MB / 0.5404 GB, free: 23.89 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.makefile [Timeout 660] (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.sim & ./PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC -jacobian=coloredNumerical -nls=newton -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.pipe 2>&1) [Timeout 480] [Calling os._exit(0), Time elapsed: 8.42500960896723] Failed to read output from testmodel.py, exit status != 0: 0.40698093408718705 0.41711055 0.290276335 Calling exit ...