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.00661/0.00661, allocations: 101.8 kB / 15.73 MB, free: 6.035 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.001397/0.001397, allocations: 192.8 kB / 16.67 MB, free: 5.973 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.486/1.486, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.16/0.16, allocations: 5.385 MB / 295.9 MB, free: 2.902 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001528/0.001528, allocations: 59.89 kB / 412.8 MB, free: 10.24 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2944/0.2959, allocations: 50.62 MB / 463.4 MB, free: 21.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.006/0.3019, allocations: 5.16 MB / 468.6 MB, free: 17.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00297/0.3049, allocations: 1.865 MB / 470.4 MB, free: 16.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003873/0.3053, allocations: 15 kB / 470.4 MB, free: 16.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006763/0.306, allocations: 291.7 kB / 470.7 MB, free: 16.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005938/0.3066, allocations: 289.4 kB / 471 MB, free: 16.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005605/0.3072, allocations: 327.2 kB / 471.3 MB, free: 16.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001021/0.3082, allocations: 1.112 MB / 472.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005528/0.3088, allocations: 439.2 kB / 472.9 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005298/0.3093, allocations: 452.9 kB / 473.3 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006612/0.31, allocations: 0.5296 MB / 473.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001542/0.3102, allocations: 111.9 kB / 474 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003169/0.3105, allocations: 177.7 kB / 474.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001606/0.3107, allocations: 234.8 kB / 474.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003815/0.3111, allocations: 493.8 kB / 474.8 MB, free: 14.26 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001138/0.3122, allocations: 1.18 MB / 476 MB, free: 13.76 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.3122, allocations: 2 kB / 476 MB, free: 13.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.3122, allocations: 0 / 476 MB, free: 13.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.159e-05/0.3122, allocations: 4 kB / 476 MB, free: 13.76 MB / 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.002792/0.315, allocations: 1.303 MB / 477.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.3151, allocations: 11.39 kB / 477.3 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001699/0.3153, allocations: 89.59 kB / 477.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001326/0.3166, allocations: 0.6475 MB / 478.1 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.991e-05/0.3167, allocations: 56.81 kB / 478.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001163/0.3168, allocations: 72.91 kB / 478.2 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001435/0.3182, allocations: 0.7827 MB / 479 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.079e-05/0.3183, allocations: 0 / 479 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.437e-05/0.3183, allocations: 28.34 kB / 479 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.507e-05/0.3184, allocations: 21.39 kB / 479 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001325/0.3197, allocations: 0.5989 MB / 479.6 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00367/0.3234, allocations: 2.737 MB / 482.4 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/0.3247, allocations: 0.8985 MB / 483.3 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000533/0.3253, allocations: 255.3 kB / 483.5 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001079/0.3254, allocations: 88.11 kB / 483.6 MB, free: 8.441 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006605/0.3261, allocations: 384.7 kB / 484 MB, free: 8.152 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.004e-06/0.3261, allocations: 0 / 484 MB, free: 8.152 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.002815/0.3289, allocations: 1.06 MB / 485 MB, free: 7.551 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.789e-05/0.329, allocations: 199.3 kB / 485.2 MB, free: 7.324 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000528/0.3295, allocations: 462.8 kB / 485.7 MB, free: 7.035 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.521e-05/0.3296, allocations: 45.75 kB / 485.7 MB, free: 6.988 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001787/0.3298, allocations: 369.3 kB / 486.1 MB, free: 6.664 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001193/0.3299, allocations: 184.1 kB / 486.3 MB, free: 6.504 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001979/0.3301, allocations: 140.8 kB / 486.4 MB, free: 6.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.398e-05/0.3302, allocations: 367.3 kB / 486.8 MB, free: 6.055 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005116/0.3307, allocations: 220.2 kB / 487 MB, free: 5.949 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005557/0.3313, allocations: 365.2 kB / 487.3 MB, free: 5.672 MB / 350.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.01094/0.3422, allocations: 2.379 MB / 489.7 MB, free: 4.336 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.172e-06/0.3423, allocations: 1.688 kB / 489.7 MB, free: 4.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001706/0.344, allocations: 0.819 MB / 490.5 MB, free: 3.887 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.504e-05/0.344, allocations: 63.64 kB / 490.6 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.344, allocations: 8.125 kB / 490.6 MB, free: 3.816 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004491/0.3445, allocations: 86.69 kB / 490.7 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008003/0.3453, allocations: 167.8 kB / 490.9 MB, free: 3.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001269/0.3466, allocations: 1.574 MB / 492.4 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006587/0.3473, allocations: 74.59 kB / 492.5 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.469e-05/0.3473, allocations: 34.03 kB / 492.5 MB, free: 2.086 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 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.000428/0.3478, allocations: 291.4 kB / 492.8 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.3479, allocations: 61.83 kB / 492.9 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001832/0.3497, allocations: 0.9408 MB / 493.8 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.3498, allocations: 6.438 kB / 493.8 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.3498, allocations: 3.984 kB / 493.8 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.3498, allocations: 1 kB / 493.8 MB, free: 1.246 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003752/0.3535, allocations: 1.832 MB / 495.7 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.3535, allocations: 0 / 495.7 MB, free: 40 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004537/0.354, allocations: 103.8 kB / 495.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005318/0.3546, allocations: 262.3 kB / 496 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.924e-05/0.3546, allocations: 27.92 kB / 496.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009878/0.3556, allocations: 0.8194 MB / 496.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.797e-06/0.3556, allocations: 8.016 kB / 496.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003454/0.3591, allocations: 1.381 MB / 498.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002611/0.3594, allocations: 192.2 kB / 498.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001086/0.3595, allocations: 20 kB / 498.5 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005057/0.36, allocations: 43.97 kB / 498.5 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001246/0.3601, allocations: 48.44 kB / 498.6 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.963e-05/0.3602, allocations: 27.97 kB / 498.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003942/0.3606, allocations: 326.9 kB / 498.9 MB, free: 12.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3606, allocations: 0 / 498.9 MB, free: 12.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007485/0.3614, allocations: 227.3 kB / 499.1 MB, free: 12.48 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.0002279/0.3616, allocations: 155.6 kB / 499.3 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001498/0.3631, allocations: 0.8186 MB / 0.4884 GB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.3631, allocations: 0 / 0.4884 GB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007526/0.3639, allocations: 494.6 kB / 0.4888 GB, free: 10.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007309/0.3646, allocations: 117.9 kB / 0.489 GB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002481/0.3671, allocations: 1.379 MB / 0.4903 GB, free: 9.422 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000464/0.3676, allocations: 0.9341 MB / 0.4912 GB, free: 8.461 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003426/0.3679, allocations: 92.94 kB / 0.4913 GB, free: 8.371 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001892/0.3681, allocations: 75.33 kB / 0.4914 GB, free: 8.297 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3681, allocations: 0 / 0.4914 GB, free: 8.297 MB / 366.1 MB Notification: Performance of Templates: time 0.01629/0.3844, allocations: 9.38 MB / 0.5005 GB, free: 14.99 MB / 382.1 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.makefile (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)