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.001103/0.001103, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00117/0.00117, allocations: 194.2 kB / 16.14 MB, free: 6.703 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.289/1.289, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.135/0.135, allocations: 5.38 MB / 295.3 MB, free: 3.02 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001048/0.001048, allocations: 63.89 kB / 360.2 MB, free: 14.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1039/0.1049, allocations: 50.61 MB / 410.8 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.01008/0.1151, allocations: 5.175 MB / 415.9 MB, free: 6.781 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005358/0.1205, allocations: 1.866 MB / 417.8 MB, free: 4.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001043/0.1215, allocations: 15.94 kB / 417.8 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00147/0.1231, allocations: 238.6 kB / 418.1 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001545/0.1247, allocations: 246.4 kB / 418.3 MB, free: 4.418 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001286/0.126, allocations: 283.7 kB / 418.6 MB, free: 4.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00244/0.1285, allocations: 1.032 MB / 419.6 MB, free: 3.105 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00105/0.1295, allocations: 394.4 kB / 420 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008067/0.1304, allocations: 402.4 kB / 420.4 MB, free: 2.305 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001285/0.1317, allocations: 0.4901 MB / 420.9 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002934/0.132, allocations: 64 kB / 420.9 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004979/0.1325, allocations: 119.9 kB / 421.1 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002915/0.1328, allocations: 187.1 kB / 421.2 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008045/0.1336, allocations: 445.7 kB / 421.7 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.164/0.2976, allocations: 1.112 MB / 422.8 MB, free: 41.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.2977, allocations: 5.359 kB / 422.8 MB, free: 41.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2977, allocations: 1.688 kB / 422.8 MB, free: 41.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.181e-05/0.2977, allocations: 0 / 422.8 MB, free: 41.43 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.002813/0.3005, allocations: 1.298 MB / 424.1 MB, free: 40.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.3006, allocations: 12.52 kB / 424.1 MB, free: 40.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001798/0.3008, allocations: 94.75 kB / 424.2 MB, free: 40.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001116/0.3019, allocations: 0.641 MB / 424.8 MB, free: 40.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.638e-05/0.3019, allocations: 62.44 kB / 424.9 MB, free: 40.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.63e-05/0.3021, allocations: 77.28 kB / 425 MB, free: 40.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001148/0.3032, allocations: 0.7765 MB / 425.7 MB, free: 40.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.3032, allocations: 4 kB / 425.7 MB, free: 40.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.295e-05/0.3033, allocations: 30 kB / 425.8 MB, free: 40.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.315e-05/0.3033, allocations: 15.66 kB / 425.8 MB, free: 40.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001151/0.3045, allocations: 0.6018 MB / 426.4 MB, free: 40.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003393/0.3079, allocations: 2.76 MB / 429.2 MB, free: 39.22 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/0.3092, allocations: 0.9101 MB / 430.1 MB, free: 38.71 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004806/0.3097, allocations: 243 kB / 430.3 MB, free: 38.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001097/0.3098, allocations: 94.11 kB / 430.4 MB, free: 38.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006577/0.3105, allocations: 385.2 kB / 430.8 MB, free: 38.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 1.934e-06/0.3105, allocations: 0 / 430.8 MB, free: 38.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.002725/0.3132, allocations: 1.059 MB / 431.8 MB, free: 38.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.416e-05/0.3133, allocations: 203.2 kB / 432 MB, free: 37.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004206/0.3137, allocations: 462.9 kB / 432.5 MB, free: 37.84 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.846e-05/0.3138, allocations: 40.14 kB / 432.5 MB, free: 37.8 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00017/0.314, allocations: 371.7 kB / 432.9 MB, free: 37.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.756e-05/0.3141, allocations: 175.2 kB / 433.1 MB, free: 37.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/0.3143, allocations: 144.1 kB / 433.2 MB, free: 37.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.371e-05/0.3143, allocations: 361.6 kB / 433.5 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004728/0.3148, allocations: 218.3 kB / 433.8 MB, free: 36.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004964/0.3153, allocations: 367.5 kB / 434.1 MB, free: 36.66 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.01161/0.3269, allocations: 2.38 MB / 436.5 MB, free: 35.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.572e-06/0.327, allocations: 1.969 kB / 436.5 MB, free: 35.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001699/0.3287, allocations: 0.8236 MB / 437.3 MB, free: 35.45 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.693e-05/0.3287, allocations: 60.84 kB / 437.4 MB, free: 35.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.375e-05/0.3288, allocations: 3.969 kB / 437.4 MB, free: 35.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004452/0.3292, allocations: 83.47 kB / 437.5 MB, free: 35.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007594/0.33, allocations: 170.1 kB / 437.6 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001139/0.3311, allocations: 1.469 MB / 439.1 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006565/0.3318, allocations: 73.61 kB / 439.2 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.216e-05/0.3319, allocations: 44.52 kB / 439.2 MB, free: 33.91 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.0003726/0.3322, allocations: 289 kB / 439.5 MB, free: 33.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001278/0.3324, allocations: 56.62 kB / 439.6 MB, free: 33.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001699/0.3341, allocations: 0.932 MB / 440.5 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.271e-06/0.3341, allocations: 6.406 kB / 440.5 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.3341, allocations: 0 / 440.5 MB, free: 33.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.266e-06/0.3341, allocations: 7.406 kB / 440.5 MB, free: 33.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003942/0.3381, allocations: 1.84 MB / 442.3 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.3381, allocations: 3.094 kB / 442.3 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004388/0.3385, allocations: 99.77 kB / 442.4 MB, free: 32.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004879/0.339, allocations: 258.8 kB / 442.7 MB, free: 32.28 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.983e-05/0.3391, allocations: 21.12 kB / 442.7 MB, free: 32.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008501/0.3399, allocations: 0.8292 MB / 443.5 MB, free: 31.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.34, allocations: 0 / 443.5 MB, free: 31.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00342/0.3434, allocations: 1.377 MB / 444.9 MB, free: 31.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002395/0.3436, allocations: 201.5 kB / 445.1 MB, free: 30.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/0.3438, allocations: 22 kB / 445.1 MB, free: 30.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005306/0.3443, allocations: 44.52 kB / 445.2 MB, free: 30.83 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/0.3444, allocations: 41.25 kB / 445.2 MB, free: 30.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.771e-05/0.3445, allocations: 26.61 kB / 445.3 MB, free: 30.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003148/0.3448, allocations: 326.9 kB / 445.6 MB, free: 30.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3448, allocations: 0 / 445.6 MB, free: 30.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006633/0.3455, allocations: 227.9 kB / 445.8 MB, free: 30.61 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 (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.0002169/0.3457, allocations: 150.1 kB / 445.9 MB, free: 30.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001388/0.3471, allocations: 0.817 MB / 446.8 MB, free: 30.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.3471, allocations: 2.812 kB / 446.8 MB, free: 30.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006489/0.3478, allocations: 494.4 kB / 447.2 MB, free: 29.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007058/0.3485, allocations: 121.8 kB / 447.4 MB, free: 29.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002298/0.3508, allocations: 1.724 MB / 449.1 MB, free: 28.69 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003162/0.3511, allocations: 0.9345 MB / 450 MB, free: 27.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003936/0.3515, allocations: 90.7 kB / 450.1 MB, free: 27.95 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001852/0.3517, allocations: 66.27 kB / 450.2 MB, free: 27.95 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3517, allocations: 0 / 450.2 MB, free: 27.95 MB / 350.1 MB Notification: Performance of Templates: time 0.01354/0.3653, allocations: 8.754 MB / 458.9 MB, free: 27.39 MB / 350.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)