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.006153/0.006153, allocations: 99.69 kB / 15.73 MB, free: 6.473 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.001177/0.001177, allocations: 197.5 kB / 16.67 MB, free: 6.379 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.369/1.369, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1481/0.1481, allocations: 5.388 MB / 295.9 MB, free: 2.898 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001626/0.001626, allocations: 63.89 kB / 412.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.2999, allocations: 50.61 MB / 463.4 MB, free: 21.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.007173/0.3071, allocations: 5.154 MB / 468.6 MB, free: 17.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003798/0.3109, allocations: 1.873 MB / 470.4 MB, free: 16.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004988/0.3115, allocations: 13.56 kB / 470.4 MB, free: 16.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007594/0.3122, allocations: 292.8 kB / 470.7 MB, free: 16.44 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008208/0.3131, allocations: 289.3 kB / 471 MB, free: 16.24 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007445/0.3139, allocations: 314.5 kB / 471.3 MB, free: 16.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001109/0.315, allocations: 1.117 MB / 472.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006778/0.3157, allocations: 443.8 kB / 472.9 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007451/0.3164, allocations: 447.6 kB / 473.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007416/0.3172, allocations: 0.5337 MB / 473.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001738/0.3174, allocations: 111.7 kB / 474 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003305/0.3177, allocations: 181.1 kB / 474.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000204/0.3179, allocations: 228 kB / 474.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004595/0.3184, allocations: 499.9 kB / 474.8 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001388/0.3198, allocations: 1.177 MB / 476 MB, free: 13.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3198, allocations: 1.375 kB / 476 MB, free: 13.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3198, allocations: 0 / 476 MB, free: 13.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.307e-05/0.3198, allocations: 0 / 476 MB, free: 13.77 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.002787/0.3226, allocations: 1.3 MB / 477.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.3227, allocations: 9.625 kB / 477.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000162/0.3229, allocations: 91.06 kB / 477.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00134/0.3242, allocations: 0.65 MB / 478.1 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.034e-05/0.3243, allocations: 64.81 kB / 478.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001275/0.3244, allocations: 73.88 kB / 478.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001366/0.3258, allocations: 0.7738 MB / 479 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.337e-05/0.3258, allocations: 1.094 kB / 479 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.884e-05/0.3259, allocations: 36.08 kB / 479 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.825e-05/0.3259, allocations: 21.31 kB / 479 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00122/0.3271, allocations: 0.5913 MB / 479.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003592/0.3308, allocations: 2.739 MB / 482.4 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001372/0.3321, allocations: 0.9037 MB / 483.3 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004884/0.3326, allocations: 255.1 kB / 483.5 MB, free: 8.555 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001184/0.3328, allocations: 91.28 kB / 483.6 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006185/0.3334, allocations: 385.2 kB / 484 MB, free: 8.164 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.294e-06/0.3334, allocations: 0 / 484 MB, free: 8.164 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.002884/0.3363, allocations: 1.057 MB / 485 MB, free: 7.566 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.248e-05/0.3364, allocations: 199.5 kB / 485.2 MB, free: 7.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000546/0.337, allocations: 465.4 kB / 485.7 MB, free: 7.047 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.445e-05/0.337, allocations: 42.61 kB / 485.7 MB, free: 7.004 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002134/0.3372, allocations: 369.4 kB / 486.1 MB, free: 6.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.3374, allocations: 180.5 kB / 486.3 MB, free: 6.523 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000215/0.3376, allocations: 139.4 kB / 486.4 MB, free: 6.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.69e-05/0.3377, allocations: 367.4 kB / 486.8 MB, free: 6.074 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005059/0.3382, allocations: 220 kB / 487 MB, free: 5.969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006809/0.3389, allocations: 363 kB / 487.3 MB, free: 5.691 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.01147/0.3504, allocations: 2.384 MB / 489.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.245e-05/0.3504, allocations: 1.375 kB / 489.7 MB, free: 4.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001841/0.3522, allocations: 0.8228 MB / 490.5 MB, free: 3.898 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.502e-05/0.3523, allocations: 64.36 kB / 490.6 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.3523, allocations: 3.656 kB / 490.6 MB, free: 3.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004695/0.3528, allocations: 82.09 kB / 490.7 MB, free: 3.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000798/0.3536, allocations: 171.4 kB / 490.9 MB, free: 3.746 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001187/0.3548, allocations: 1.57 MB / 492.4 MB, free: 2.164 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007259/0.3556, allocations: 76 kB / 492.5 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-05/0.3556, allocations: 37.31 kB / 492.5 MB, free: 2.102 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.0004334/0.3561, allocations: 286.7 kB / 492.8 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.3562, allocations: 61.41 kB / 492.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001781/0.358, allocations: 0.938 MB / 493.8 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.358, allocations: 10.2 kB / 493.8 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.994e-06/0.358, allocations: 0 / 493.8 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.358, allocations: 0 / 493.8 MB, free: 1.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00385/0.3619, allocations: 1.839 MB / 495.7 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.069e-06/0.3619, allocations: 0 / 495.7 MB, free: 60 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004849/0.3624, allocations: 100.8 kB / 495.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005733/0.3629, allocations: 262.3 kB / 496 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.095e-05/0.363, allocations: 27.86 kB / 496 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009986/0.364, allocations: 0.8273 MB / 496.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.364, allocations: 4.062 kB / 496.9 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003594/0.3676, allocations: 1.373 MB / 498.2 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003615/0.368, allocations: 192.2 kB / 498.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001044/0.3681, allocations: 20 kB / 498.5 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005212/0.3687, allocations: 43.97 kB / 498.5 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001241/0.3688, allocations: 52.42 kB / 498.6 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.504e-05/0.3689, allocations: 27.97 kB / 498.6 MB, free: 13.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004076/0.3693, allocations: 322.9 kB / 498.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3693, allocations: 0 / 498.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008259/0.3701, allocations: 227.3 kB / 499.1 MB, free: 12.51 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.0002463/0.3704, allocations: 151.5 kB / 499.3 MB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001619/0.372, allocations: 0.8186 MB / 0.4884 GB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.372, allocations: 0 / 0.4884 GB, free: 11.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007511/0.3728, allocations: 494.6 kB / 0.4888 GB, free: 10.99 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006831/0.3735, allocations: 122 kB / 0.4889 GB, free: 10.87 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002553/0.376, allocations: 1.382 MB / 0.4903 GB, free: 9.457 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004361/0.3765, allocations: 0.9341 MB / 0.4912 GB, free: 8.496 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003629/0.3769, allocations: 92.94 kB / 0.4913 GB, free: 8.406 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001825/0.377, allocations: 71.39 kB / 0.4914 GB, free: 8.336 MB / 366.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3771, allocations: 0 / 0.4914 GB, free: 8.336 MB / 366.1 MB Notification: Performance of Templates: time 0.01659/0.3937, allocations: 9.672 MB / 0.5008 GB, free: 14.74 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)