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.001524/0.001524, allocations: 104.3 kB / 19.7 MB, free: 2.004 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.001749/0.001749, allocations: 221 kB / 23 MB, free: 4.918 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.416/1.416, allocations: 230.6 MB / 256.8 MB, free: 7.988 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.02903/0.02903, allocations: 5.475 MB / 318.7 MB, free: 13.58 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.002171/0.002171, allocations: 63.91 kB / 447.3 MB, free: 3.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0984/0.1006, allocations: 54.62 MB / 0.4902 GB, free: 12.46 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.006985/0.1076, allocations: 4.666 MB / 0.4948 GB, free: 7.766 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003602/0.1112, allocations: 1.776 MB / 0.4965 GB, free: 5.984 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000604/0.1118, allocations: 19.88 kB / 0.4965 GB, free: 5.965 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008607/0.1126, allocations: 270.1 kB / 0.4968 GB, free: 5.699 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009437/0.1136, allocations: 313.8 kB / 0.4971 GB, free: 5.391 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007407/0.1143, allocations: 331.4 kB / 0.4974 GB, free: 5.066 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001301/0.1156, allocations: 1.106 MB / 0.4985 GB, free: 3.957 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004851/0.1161, allocations: 283.4 kB / 0.4987 GB, free: 3.652 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005937/0.1167, allocations: 462.4 kB / 0.4992 GB, free: 3.199 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006353/0.1173, allocations: 481.8 kB / 0.4996 GB, free: 2.727 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001466/0.1175, allocations: 112 kB / 0.4997 GB, free: 2.617 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003075/0.1178, allocations: 183.9 kB / 0.4999 GB, free: 2.438 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001988/0.118, allocations: 231.2 kB / 0.5001 GB, free: 2.211 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004043/0.1184, allocations: 406.2 kB / 0.5005 GB, free: 1.812 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001279/0.1197, allocations: 1.206 MB / 0.5017 GB, free: 0.6016 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1197, allocations: 4 kB / 0.5017 GB, free: 0.5977 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.592e-06/0.1197, allocations: 0 / 0.5017 GB, free: 0.5977 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.1197, allocations: 0 / 0.5017 GB, free: 0.5977 MB / 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.002796/0.1225, allocations: 1.252 MB / 0.5029 GB, free: 15.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.1225, allocations: 8.031 kB / 0.5029 GB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001793/0.1227, allocations: 104.3 kB / 0.503 GB, free: 15.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001377/0.1241, allocations: 0.5777 MB / 0.5036 GB, free: 14.58 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.421e-05/0.1241, allocations: 58 kB / 0.5037 GB, free: 14.53 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000126/0.1243, allocations: 72 kB / 0.5037 GB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001465/0.1257, allocations: 0.8936 MB / 0.5046 GB, free: 13.51 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.1257, allocations: 0 / 0.5046 GB, free: 13.51 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.043e-05/0.1258, allocations: 28 kB / 0.5046 GB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.751e-05/0.1258, allocations: 20 kB / 0.5046 GB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001355/0.1272, allocations: 0.6513 MB / 0.5053 GB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004056/0.1312, allocations: 2.383 MB / 0.5076 GB, free: 10.32 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001378/0.1326, allocations: 0.5336 MB / 0.5081 GB, free: 9.762 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005467/0.1332, allocations: 273.4 kB / 0.5084 GB, free: 9.48 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.894e-05/0.1332, allocations: 8.375 kB / 0.5084 GB, free: 9.473 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007666/0.134, allocations: 0.4921 MB / 0.5089 GB, free: 8.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.134e-06/0.134, allocations: 0 / 0.5089 GB, free: 8.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=56): time 0.0029/0.1369, allocations: 1.119 MB / 0.51 GB, free: 7.758 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/0.137, allocations: 200.3 kB / 0.5102 GB, free: 7.52 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005435/0.1376, allocations: 453.8 kB / 0.5106 GB, free: 7.07 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.82e-05/0.1376, allocations: 37.7 kB / 0.5106 GB, free: 7.027 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002908/0.1379, allocations: 372.4 kB / 0.511 GB, free: 6.656 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001739/0.1381, allocations: 194.4 kB / 0.5112 GB, free: 6.465 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002529/0.1384, allocations: 150.5 kB / 0.5113 GB, free: 6.312 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.1385, allocations: 362.8 kB / 0.5117 GB, free: 5.949 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005824/0.1391, allocations: 277.3 kB / 0.5119 GB, free: 5.668 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006595/0.1398, allocations: 417.4 kB / 0.5123 GB, free: 5.191 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.01413/0.1539, allocations: 2.868 MB / 0.5151 GB, free: 2.227 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.1539, allocations: 3.938 kB / 0.5151 GB, free: 2.223 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001963/0.1559, allocations: 0.887 MB / 0.516 GB, free: 1.301 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.377e-05/0.1559, allocations: 63.39 kB / 0.516 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.1559, allocations: 4 kB / 0.5161 GB, free: 1.223 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004338/0.1564, allocations: 84.94 kB / 0.5161 GB, free: 1.137 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007535/0.1571, allocations: 163.7 kB / 0.5163 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2051/0.3623, allocations: 1.44 MB / 0.5177 GB, free: 31.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007884/0.3631, allocations: 67.75 kB / 0.5178 GB, free: 31.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001195/0.3632, allocations: 36.47 kB / 0.5178 GB, free: 31.95 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.0004969/0.3637, allocations: 292.6 kB / 0.5181 GB, free: 31.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000183/0.3639, allocations: 62.89 kB / 0.5181 GB, free: 31.77 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001852/0.3657, allocations: 1.001 MB / 0.5191 GB, free: 31.56 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.3657, allocations: 5.844 kB / 0.5191 GB, free: 31.56 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/0.3657, allocations: 0 / 0.5191 GB, free: 31.56 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.3657, allocations: 2.719 kB / 0.5191 GB, free: 31.56 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002861/0.3686, allocations: 1.553 MB / 0.5206 GB, free: 31.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.3686, allocations: 0 / 0.5206 GB, free: 31.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004567/0.3691, allocations: 104.4 kB / 0.5207 GB, free: 31.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005495/0.3696, allocations: 294.4 kB / 0.521 GB, free: 31.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.492e-05/0.3697, allocations: 36.53 kB / 0.5211 GB, free: 31.07 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009673/0.3706, allocations: 0.8815 MB / 0.5219 GB, free: 30.46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.3706, allocations: 4.281 kB / 0.5219 GB, free: 30.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002563/0.3732, allocations: 1.373 MB / 0.5233 GB, free: 30.07 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003269/0.3735, allocations: 123.1 kB / 0.5234 GB, free: 30.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001265/0.3737, allocations: 21.88 kB / 0.5234 GB, free: 30.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004883/0.3741, allocations: 35.89 kB / 0.5234 GB, free: 30.07 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001248/0.3743, allocations: 52.69 kB / 0.5235 GB, free: 30.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.329e-05/0.3743, allocations: 31.84 kB / 0.5235 GB, free: 30.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003778/0.3747, allocations: 314.9 kB / 0.5238 GB, free: 29.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3747, allocations: 0 / 0.5238 GB, free: 29.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007603/0.3755, allocations: 235.6 kB / 0.524 GB, free: 29.97 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.0002425/0.3757, allocations: 148 kB / 0.5242 GB, free: 29.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001649/0.3774, allocations: 0.9203 MB / 0.5251 GB, free: 29.49 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.3774, allocations: 0 / 0.5251 GB, free: 29.49 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007506/0.3781, allocations: 475.5 kB / 0.5255 GB, free: 29.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007297/0.3788, allocations: 117.9 kB / 0.5256 GB, free: 29.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002734/0.3816, allocations: 1.493 MB / 0.5271 GB, free: 28.56 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003576/0.3819, allocations: 341.1 kB / 0.5274 GB, free: 28.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002488/0.3822, allocations: 70.94 kB / 0.5275 GB, free: 28.44 MB / 382.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3822, allocations: 0 / 0.5275 GB, free: 28.44 MB / 382.1 MB Notification: Performance of Templates: time 0.01964/0.4018, allocations: 12.68 MB / 0.5399 GB, free: 23.95 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: 7.696807411964983] Failed to read output from testmodel.py, exit status != 0: 0.4101379048079252 0.420499998 0.29855291799999994 Calling exit ...