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: "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMPDC,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMPDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMPDC,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMPDC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008489/0.0008486, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.0009085/0.0009085, allocations: 172.7 kB / 15.95 MB, free: 208 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.479/1.479, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1601/0.1601, allocations: 5.375 MB / 296.4 MB, free: 4.004 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003723/0.0003725, allocations: 8 kB / 362 MB, free: 14.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1239, allocations: 51.61 MB / 413.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.007126/0.1311, allocations: 4.482 MB / 418.1 MB, free: 6.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003914/0.1351, allocations: 1.754 MB / 419.8 MB, free: 4.258 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007351/0.1358, allocations: 12 kB / 419.8 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009064/0.1368, allocations: 242.6 kB / 420.1 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001114/0.1379, allocations: 234.4 kB / 420.3 MB, free: 3.777 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008645/0.1388, allocations: 227.6 kB / 420.5 MB, free: 3.555 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00163/0.1404, allocations: 0.9619 MB / 421.5 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008188/0.1413, allocations: 319.9 kB / 421.8 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007828/0.1421, allocations: 354.6 kB / 422.2 MB, free: 1.914 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001044/0.1431, allocations: 450.1 kB / 422.6 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002687/0.1434, allocations: 44 kB / 422.6 MB, free: 1.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004288/0.1438, allocations: 103.9 kB / 422.7 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002311/0.1441, allocations: 155.3 kB / 422.9 MB, free: 1.176 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003541/0.1445, allocations: 177.3 kB / 423.1 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001043/0.1455, allocations: 0.8765 MB / 423.9 MB, free: 120 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1455, allocations: 0 / 423.9 MB, free: 120 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1455, allocations: 0 / 423.9 MB, free: 120 kB / 350.1 MB Notification: Performance of Transformations before backend: time 4.317e-05/0.1456, allocations: 4 kB / 423.9 MB, free: 116 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.2475/0.3931, allocations: 1.14 MB / 425.1 MB, free: 45.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.3931, allocations: 11.69 kB / 425.1 MB, free: 45.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001996/0.3933, allocations: 121.5 kB / 425.2 MB, free: 45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001908/0.3935, allocations: 93.97 kB / 425.3 MB, free: 44.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001282/0.3948, allocations: 0.6252 MB / 425.9 MB, free: 44.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.552e-05/0.3949, allocations: 65.88 kB / 426 MB, free: 44.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.995e-05/0.395, allocations: 74.97 kB / 426.1 MB, free: 44.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001222/0.3962, allocations: 0.7764 MB / 426.8 MB, free: 44.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.45e-05/0.3963, allocations: 7.25 kB / 426.9 MB, free: 44.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.177e-05/0.3963, allocations: 30.75 kB / 426.9 MB, free: 44.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.608e-05/0.3964, allocations: 19.81 kB / 426.9 MB, free: 44.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00117/0.3975, allocations: 0.5977 MB / 427.5 MB, free: 44.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003809/0.4013, allocations: 2.769 MB / 430.3 MB, free: 43.46 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001378/0.4027, allocations: 0.9066 MB / 431.2 MB, free: 42.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004716/0.4032, allocations: 248.1 kB / 431.4 MB, free: 42.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001303/0.4034, allocations: 94.11 kB / 431.5 MB, free: 42.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007463/0.4041, allocations: 394.5 kB / 431.9 MB, free: 42.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 5.099e-06/0.4041, allocations: 3.281 kB / 431.9 MB, free: 42.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.002998/0.4071, allocations: 1.091 MB / 433 MB, free: 42.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.877e-05/0.4072, allocations: 199.6 kB / 433.2 MB, free: 42.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000517/0.4078, allocations: 457.4 kB / 433.6 MB, free: 42.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.213e-05/0.4078, allocations: 40.17 kB / 433.7 MB, free: 41.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001967/0.408, allocations: 369.6 kB / 434 MB, free: 41.69 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/0.4082, allocations: 178.2 kB / 434.2 MB, free: 41.55 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.473e-05/0.4082, allocations: 15.19 kB / 434.2 MB, free: 41.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.687e-05/0.4083, allocations: 367.8 kB / 434.6 MB, free: 41.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004348/0.4087, allocations: 218.5 kB / 434.8 MB, free: 41.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004867/0.4092, allocations: 364.9 kB / 435.1 MB, free: 40.89 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.00914/0.4184, allocations: 1.869 MB / 437 MB, free: 40.42 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.985e-06/0.4184, allocations: 1.969 kB / 437 MB, free: 40.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001632/0.42, allocations: 0.8255 MB / 437.8 MB, free: 40.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.171e-05/0.4201, allocations: 61.5 kB / 437.9 MB, free: 39.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.4201, allocations: 6.562 kB / 437.9 MB, free: 39.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003902/0.4205, allocations: 84.95 kB / 438 MB, free: 39.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006904/0.4212, allocations: 168.5 kB / 438.2 MB, free: 39.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001113/0.4223, allocations: 1.464 MB / 439.6 MB, free: 38.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006312/0.423, allocations: 67.53 kB / 439.7 MB, free: 38.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.975e-05/0.4231, allocations: 43.19 kB / 439.7 MB, free: 38.48 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.0004502/0.4235, allocations: 299.7 kB / 440 MB, free: 38.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001195/0.4236, allocations: 59.38 kB / 440.1 MB, free: 38.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001639/0.4253, allocations: 0.9364 MB / 441 MB, free: 37.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.128e-06/0.4253, allocations: 9.812 kB / 441 MB, free: 37.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.4253, allocations: 0 / 441 MB, free: 37.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.859e-06/0.4253, allocations: 1.969 kB / 441 MB, free: 37.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003483/0.4288, allocations: 1.871 MB / 442.9 MB, free: 36.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.4288, allocations: 0 / 442.9 MB, free: 36.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004252/0.4293, allocations: 102.9 kB / 443 MB, free: 36.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005013/0.4298, allocations: 266.3 kB / 443.3 MB, free: 36.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.477e-05/0.4298, allocations: 25.03 kB / 443.3 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008193/0.4307, allocations: 0.8327 MB / 444.1 MB, free: 36.16 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4307, allocations: 0 / 444.1 MB, free: 36.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003204/0.4339, allocations: 1.412 MB / 445.5 MB, free: 35.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000274/0.4342, allocations: 198.8 kB / 445.7 MB, free: 35.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001285/0.4343, allocations: 18.28 kB / 445.7 MB, free: 35.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004934/0.4348, allocations: 45.77 kB / 445.8 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.649e-05/0.4349, allocations: 47.95 kB / 445.8 MB, free: 35.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.447e-05/0.435, allocations: 26.95 kB / 445.9 MB, free: 35.35 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000318/0.4353, allocations: 323.3 kB / 446.2 MB, free: 35.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.42e-07/0.4353, allocations: 0 / 446.2 MB, free: 35.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007215/0.436, allocations: 238.5 kB / 446.4 MB, free: 35.13 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.00348/0.4395, allocations: 1.992 MB / 448.4 MB, free: 33.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001577/0.4411, allocations: 0.8145 MB / 449.2 MB, free: 33.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.4411, allocations: 0 / 449.2 MB, free: 33.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006386/0.4418, allocations: 491.2 kB / 449.7 MB, free: 33.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007605/0.4426, allocations: 126.8 kB / 449.8 MB, free: 33.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00673/0.4493, allocations: 3.896 MB / 453.7 MB, free: 31.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000411/0.4497, allocations: 0.9389 MB / 454.7 MB, free: 30.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004518/0.4502, allocations: 90.64 kB / 454.7 MB, free: 30.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003839/0.4506, allocations: 298.3 kB / 455 MB, free: 30.16 MB / 350.1 MB Notification: Performance of SimCode: time 1.352e-06/0.4506, allocations: 3.938 kB / 455 MB, free: 30.16 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0377/0.4883, allocations: 14.04 MB / 469.1 MB, free: 28.99 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001429/0.4885, allocations: 197.6 kB / 469.3 MB, free: 28.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.187/2.675, allocations: 0 / 469.3 MB, free: 28.75 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMPDC_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMPDC.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.pipe 2>&1) Environment - environmentSimulation: