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.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/PhotoVoltaics 2.0.0/package.mo", uses=false) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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(PhotoVoltaics.Examples.SimpleModuleMPDC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=172800,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC") translateModel(PhotoVoltaics.Examples.SimpleModuleMPDC,tolerance=1e-06,outputFormat="empty",numberOfIntervals=172800,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008523/0.000852, allocations: 86.48 kB / 15.06 MB, free: 1.09 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.0008774/0.0008777, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.277/1.277, allocations: 223.3 MB / 240 MB, free: 5.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1402/0.1402, allocations: 5.371 MB / 296.5 MB, free: 3.996 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003335/0.0003338, allocations: 8 kB / 361.9 MB, free: 14.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1111/0.1115, allocations: 51.59 MB / 413.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.005001/0.1165, allocations: 4.478 MB / 418 MB, free: 6.078 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00347/0.12, allocations: 1.754 MB / 419.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007277/0.1208, allocations: 12 kB / 419.7 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000832/0.1216, allocations: 250.5 kB / 420 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009259/0.1226, allocations: 230.4 kB / 420.2 MB, free: 3.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007343/0.1233, allocations: 227.6 kB / 420.4 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001203/0.1245, allocations: 0.9658 MB / 421.4 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005899/0.1251, allocations: 315.9 kB / 421.7 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000598/0.1258, allocations: 350.6 kB / 422.1 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007816/0.1265, allocations: 450.1 kB / 422.5 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001754/0.1267, allocations: 48 kB / 422.5 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003384/0.1271, allocations: 111.9 kB / 422.7 MB, free: 1.379 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001701/0.1273, allocations: 155.3 kB / 422.8 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002438/0.1275, allocations: 181.2 kB / 423 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007969/0.1283, allocations: 0.857 MB / 423.8 MB, free: 188 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.1283, allocations: 3.984 kB / 423.8 MB, free: 184 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1283, allocations: 0 / 423.8 MB, free: 184 kB / 350.1 MB Notification: Performance of Transformations before backend: time 3.448e-05/0.1284, allocations: 0 / 423.8 MB, free: 184 kB / 350.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.1913/0.3197, allocations: 1.163 MB / 425 MB, free: 45.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.3197, allocations: 8 kB / 425 MB, free: 45.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001818/0.3199, allocations: 89.62 kB / 425.1 MB, free: 44.99 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001165/0.3211, allocations: 0.6264 MB / 425.7 MB, free: 44.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.751e-05/0.3212, allocations: 58.25 kB / 425.8 MB, free: 44.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.022e-05/0.3212, allocations: 78.14 kB / 425.9 MB, free: 44.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001153/0.3224, allocations: 0.7776 MB / 426.6 MB, free: 44.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.037e-05/0.3224, allocations: 1.891 kB / 426.6 MB, free: 44.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.892e-05/0.3225, allocations: 34.44 kB / 426.7 MB, free: 44.6 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.298e-05/0.3225, allocations: 16.59 kB / 426.7 MB, free: 44.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001086/0.3236, allocations: 0.5959 MB / 427.3 MB, free: 44.59 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003172/0.3268, allocations: 2.782 MB / 430.1 MB, free: 43.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.328, allocations: 0.9081 MB / 431 MB, free: 42.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004289/0.3285, allocations: 243.5 kB / 431.2 MB, free: 42.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001024/0.3286, allocations: 94.09 kB / 431.3 MB, free: 42.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006382/0.3292, allocations: 390.5 kB / 431.7 MB, free: 42.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 3.727e-06/0.3292, allocations: 4 kB / 431.7 MB, free: 42.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.002563/0.3318, allocations: 1.091 MB / 432.8 MB, free: 42.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.756e-05/0.3319, allocations: 197.1 kB / 433 MB, free: 42.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004403/0.3323, allocations: 456.5 kB / 433.4 MB, free: 42.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.555e-05/0.3324, allocations: 36.98 kB / 433.5 MB, free: 42.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001708/0.3325, allocations: 369.8 kB / 433.8 MB, free: 41.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.3326, allocations: 182.9 kB / 434 MB, free: 41.6 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.422e-05/0.3327, allocations: 15.5 kB / 434 MB, free: 41.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.303e-05/0.3328, allocations: 361 kB / 434.4 MB, free: 41.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004157/0.3332, allocations: 220 kB / 434.6 MB, free: 41.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004479/0.3336, allocations: 368.5 kB / 434.9 MB, free: 40.93 MB / 350.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear) (/*Real*/(PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear)) = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear)) Notification: Performance of analyzeInitialSystem (initialization): time 0.008896/0.3425, allocations: 1.878 MB / 436.8 MB, free: 40.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.3426, allocations: 0 / 436.8 MB, free: 40.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001548/0.3441, allocations: 0.8231 MB / 437.6 MB, free: 40.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.625e-05/0.3442, allocations: 59.42 kB / 437.7 MB, free: 40.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.3442, allocations: 7.344 kB / 437.7 MB, free: 40.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003877/0.3446, allocations: 85.75 kB / 437.8 MB, free: 40.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006754/0.3453, allocations: 167.7 kB / 438 MB, free: 40 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001031/0.3463, allocations: 1.465 MB / 439.4 MB, free: 38.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005675/0.3469, allocations: 76.75 kB / 439.5 MB, free: 38.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.041e-05/0.347, allocations: 36.47 kB / 439.5 MB, free: 38.53 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, 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 ($PRE.irradiance.year,irradiance.year,$PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,$whenCondition2,$whenCondition3,$PRE.mpTracker.vRef,mpTracker.vRef,$PRE.irradiance.startDayOfYear,irradiance.startDayOfYear,$PRE.irradiance.dayOfYear,irradiance.dayOfYear,$PRE.irradiance.daysOfYear,irradiance.daysOfYear,irradiance.localDays,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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003617/0.3473, allocations: 294.3 kB / 439.8 MB, free: 38.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.869e-05/0.3474, allocations: 63.48 kB / 439.9 MB, free: 38.25 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001507/0.3489, allocations: 0.9344 MB / 440.8 MB, free: 37.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.3489, allocations: 7.719 kB / 440.8 MB, free: 37.85 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.805e-06/0.3489, allocations: 7.125 kB / 440.8 MB, free: 37.85 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.705e-06/0.349, allocations: 3.281 kB / 440.8 MB, free: 37.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003322/0.3523, allocations: 1.868 MB / 442.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.3523, allocations: 0 / 442.7 MB, free: 36.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004215/0.3527, allocations: 107.3 kB / 442.8 MB, free: 36.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005209/0.3533, allocations: 261.1 kB / 443.1 MB, free: 36.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.624e-05/0.3533, allocations: 31.61 kB / 443.1 MB, free: 36.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008178/0.3541, allocations: 0.8235 MB / 443.9 MB, free: 36.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.3542, allocations: 0 / 443.9 MB, free: 36.21 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002951/0.3571, allocations: 1.417 MB / 445.3 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002058/0.3573, allocations: 200.2 kB / 445.5 MB, free: 35.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.284e-05/0.3574, allocations: 21.88 kB / 445.5 MB, free: 35.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004332/0.3579, allocations: 41.12 kB / 445.6 MB, free: 35.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.858e-05/0.358, allocations: 47.02 kB / 445.6 MB, free: 35.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.571e-05/0.358, allocations: 31.33 kB / 445.7 MB, free: 35.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002916/0.3583, allocations: 316.9 kB / 446 MB, free: 35.24 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3583, allocations: 0 / 446 MB, free: 35.24 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006336/0.359, allocations: 231.5 kB / 446.2 MB, free: 35.19 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.000189/0.3592, allocations: 149.8 kB / 446.3 MB, free: 35.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001233/0.3604, allocations: 0.8197 MB / 447.2 MB, free: 34.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3604, allocations: 0 / 447.2 MB, free: 34.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005795/0.361, allocations: 499.4 kB / 447.7 MB, free: 34.38 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006206/0.3617, allocations: 113.8 kB / 447.8 MB, free: 34.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002036/0.3637, allocations: 1.723 MB / 449.5 MB, free: 33.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.364, allocations: 0.935 MB / 450.4 MB, free: 32.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003651/0.3644, allocations: 92.62 kB / 450.5 MB, free: 32.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001602/0.3645, allocations: 63.14 kB / 450.6 MB, free: 32.54 MB / 350.1 MB Notification: Performance of SimCode: time 2.51e-07/0.3645, allocations: 0 / 450.6 MB, free: 32.54 MB / 350.1 MB Notification: Performance of Templates: time 0.01189/0.3764, allocations: 8.409 MB / 459 MB, free: 31.94 MB / 350.1 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: