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.001548/0.001548, allocations: 78.5 kB / 19 MB, free: 2.871 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.001997/0.001997, allocations: 160.9 kB / 22.25 MB, free: 5.145 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.556/1.556, allocations: 177.2 MB / 202.6 MB, free: 9.293 MB / 190.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.03014/0.03014, allocations: 4.22 MB / 263.2 MB, free: 12.74 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.003286/0.003286, allocations: 71.89 kB / 391.9 MB, free: 10.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1376/0.1409, allocations: 54.59 MB / 446.5 MB, free: 3.715 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.2298/0.3708, allocations: 4.664 MB / 451.2 MB, free: 18.01 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003971/0.3747, allocations: 1.774 MB / 452.9 MB, free: 17.58 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000697/0.3754, allocations: 14.5 kB / 453 MB, free: 17.58 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008433/0.3763, allocations: 274.5 kB / 453.2 MB, free: 17.46 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009857/0.3773, allocations: 312.1 kB / 453.5 MB, free: 17.3 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001/0.3783, allocations: 324.5 kB / 453.8 MB, free: 17.12 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001404/0.3797, allocations: 1.103 MB / 454.9 MB, free: 16.55 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000512/0.3802, allocations: 289.7 kB / 455.2 MB, free: 16.38 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001078/0.3813, allocations: 0.6873 MB / 455.9 MB, free: 16.03 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007918/0.382, allocations: 482 kB / 456.4 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001788/0.3822, allocations: 111.2 kB / 456.5 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004204/0.3826, allocations: 181.6 kB / 456.7 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000207/0.3829, allocations: 226.5 kB / 456.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004602/0.3833, allocations: 416.2 kB / 457.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001633/0.3849, allocations: 1.199 MB / 458.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3849, allocations: 4 kB / 458.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.385, allocations: 0 / 458.5 MB, free: 14.91 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.56e-05/0.385, allocations: 1.094 kB / 458.5 MB, free: 14.91 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.003032/0.388, allocations: 1.251 MB / 459.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/0.3881, allocations: 10.06 kB / 459.8 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000231/0.3883, allocations: 103.2 kB / 459.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001529/0.3898, allocations: 0.578 MB / 460.4 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.291e-05/0.3899, allocations: 60.47 kB / 460.5 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/0.39, allocations: 73.16 kB / 460.6 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0016/0.3916, allocations: 0.8865 MB / 461.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.739e-05/0.3916, allocations: 3.562 kB / 461.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.607e-05/0.3917, allocations: 36.16 kB / 461.5 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.108e-05/0.3917, allocations: 21.66 kB / 461.5 MB, free: 13.14 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001356/0.3931, allocations: 0.6518 MB / 462.2 MB, free: 12.88 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004278/0.3974, allocations: 2.371 MB / 464.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001559/0.3989, allocations: 0.5503 MB / 465.1 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005558/0.3995, allocations: 272.4 kB / 465.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.45e-05/0.3996, allocations: 9.922 kB / 465.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007338/0.4003, allocations: 0.5004 MB / 465.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.725e-06/0.4003, allocations: 0 / 465.9 MB, free: 10.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003007/0.4033, allocations: 1.11 MB / 467 MB, free: 9.988 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.631e-05/0.4034, allocations: 203.1 kB / 467.2 MB, free: 9.762 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006074/0.404, allocations: 452.5 kB / 467.6 MB, free: 9.543 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.712e-05/0.4041, allocations: 38.12 kB / 467.7 MB, free: 9.504 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002482/0.4043, allocations: 374.4 kB / 468 MB, free: 9.207 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001457/0.4044, allocations: 190.7 kB / 468.2 MB, free: 9.059 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002412/0.4047, allocations: 142.6 kB / 468.3 MB, free: 8.992 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.4048, allocations: 365.3 kB / 468.7 MB, free: 8.656 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005818/0.4054, allocations: 279.3 kB / 469 MB, free: 8.516 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006126/0.406, allocations: 415 kB / 469.4 MB, free: 8.219 MB / 366.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.01437/0.4204, allocations: 2.872 MB / 472.3 MB, free: 7.23 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.158e-05/0.4204, allocations: 1.156 kB / 472.3 MB, free: 7.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001969/0.4223, allocations: 0.8819 MB / 473.1 MB, free: 6.711 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.077e-05/0.4224, allocations: 63.88 kB / 473.2 MB, free: 6.645 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.4224, allocations: 7.891 kB / 473.2 MB, free: 6.641 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004472/0.4229, allocations: 86.75 kB / 473.3 MB, free: 6.605 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007798/0.4236, allocations: 174.1 kB / 473.5 MB, free: 6.547 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001313/0.4249, allocations: 1.443 MB / 474.9 MB, free: 5.133 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007913/0.4257, allocations: 73.17 kB / 475 MB, free: 5.086 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.818e-05/0.4258, allocations: 34.91 kB / 475 MB, free: 5.074 MB / 366.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.0005454/0.4264, allocations: 287 kB / 475.3 MB, free: 4.824 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002105/0.4266, allocations: 62.38 kB / 475.4 MB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002009/0.4286, allocations: 1.007 MB / 476.4 MB, free: 4.148 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.084e-05/0.4286, allocations: 10.33 kB / 476.4 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.4286, allocations: 0 / 476.4 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.867e-06/0.4286, allocations: 1.375 kB / 476.4 MB, free: 4.145 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003227/0.4318, allocations: 1.554 MB / 477.9 MB, free: 3.094 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/0.4318, allocations: 0.9375 kB / 477.9 MB, free: 3.094 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004976/0.4323, allocations: 101.2 kB / 478 MB, free: 3.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006013/0.4329, allocations: 290.6 kB / 478.3 MB, free: 2.895 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.463e-05/0.433, allocations: 24.03 kB / 478.3 MB, free: 2.879 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000951/0.434, allocations: 0.8953 MB / 479.2 MB, free: 2.109 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.434, allocations: 1.219 kB / 479.2 MB, free: 2.109 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002808/0.4368, allocations: 1.376 MB / 480.6 MB, free: 1.219 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003928/0.4372, allocations: 117.1 kB / 480.7 MB, free: 1.133 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001787/0.4373, allocations: 16.88 kB / 480.7 MB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005835/0.4379, allocations: 40.89 kB / 480.8 MB, free: 1.105 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001432/0.4381, allocations: 49.5 kB / 480.8 MB, free: 1.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.014e-05/0.4381, allocations: 22.86 kB / 480.8 MB, free: 1.062 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004532/0.4386, allocations: 320.2 kB / 481.2 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4386, allocations: 5.094 kB / 481.2 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001067/0.4396, allocations: 233.9 kB / 481.4 MB, free: 0.8008 MB / 366.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.0003105/0.44, allocations: 150 kB / 481.5 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00181/0.4418, allocations: 0.9169 MB / 482.5 MB, free: 40 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.241e-06/0.4418, allocations: 1.281 kB / 482.5 MB, free: 40 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009178/0.4427, allocations: 474.4 kB / 482.9 MB, free: 15.7 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008662/0.4436, allocations: 109.4 kB / 483 MB, free: 15.65 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003281/0.4468, allocations: 1.463 MB / 484.5 MB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000512/0.4474, allocations: 336.5 kB / 484.8 MB, free: 14.5 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005004/0.4479, allocations: 100.4 kB / 484.9 MB, free: 14.45 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002556/0.4481, allocations: 71.23 kB / 485 MB, free: 14.42 MB / 382.1 MB Notification: Performance of SimCode: time 8.81e-07/0.4481, allocations: 0 / 485 MB, free: 14.42 MB / 382.1 MB Notification: Performance of Templates: time 0.01972/0.4678, allocations: 8.979 MB / 494 MB, free: 6.562 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 sys.exit(0), Time elapsed: 6.817925352603197] Failed to read output from testmodel.py, exit status != 0: 0.4790895041078329 0.494153005 0.10546375300000001 Calling exit ...