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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 180.9 kB / 7.65 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 221.5 MB / 229.6 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008277/0.0008276, allocations: 96.25 kB / 280.5 MB, free: 5.324 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02279/0.02279, allocations: 5.293 MB / 336.5 MB, free: 9.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.333e-05/1.337e-05, allocations: 1.5 kB / 396.4 MB, free: 51.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08366/0.0837, allocations: 51.61 MB / 448 MB, free: 10.93 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1128/0.1966, allocations: 87.92 MB / 0.5234 GB, free: 2.883 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002115/0.1968, allocations: 75.95 kB / 0.5234 GB, free: 2.809 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2589/0.4557, allocations: 21.16 MB / 0.5441 GB, free: 78.89 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.4557, allocations: 0 / 0.5441 GB, free: 78.89 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.633e-05/0.4558, allocations: 19.59 kB / 0.5441 GB, free: 78.87 MB / 362.7 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.001902/0.4577, allocations: 1.017 MB / 0.5451 GB, free: 77.8 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.4578, allocations: 8.031 kB / 0.5451 GB, free: 77.79 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001577/0.4579, allocations: 90.97 kB / 0.5452 GB, free: 77.7 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005966/0.4585, allocations: 494 kB / 0.5457 GB, free: 77.19 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.093e-05/0.4586, allocations: 28 kB / 0.5457 GB, free: 77.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.008e-05/0.4587, allocations: 40 kB / 0.5458 GB, free: 77.12 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009001/0.4596, allocations: 0.6013 MB / 0.5463 GB, free: 76.52 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000975/0.4606, allocations: 0.6644 MB / 0.547 GB, free: 75.83 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.239e-05/0.4606, allocations: 4 kB / 0.547 GB, free: 75.82 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.054e-05/0.4607, allocations: 0 / 0.547 GB, free: 75.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.216e-05/0.4607, allocations: 20 kB / 0.547 GB, free: 75.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003639/0.4643, allocations: 2.76 MB / 0.5497 GB, free: 72.97 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001022/0.4654, allocations: 0.8875 MB / 0.5506 GB, free: 71.98 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003085/0.4657, allocations: 226.4 kB / 0.5508 GB, free: 71.76 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001224/0.4658, allocations: 93.36 kB / 0.5509 GB, free: 71.65 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004901/0.4663, allocations: 400.6 kB / 0.5513 GB, free: 71.22 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 3.316e-06/0.4663, allocations: 4 kB / 0.5513 GB, free: 71.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.003496/0.4698, allocations: 0.8924 MB / 0.5521 GB, free: 70.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.57e-05/0.47, allocations: 230 kB / 0.5524 GB, free: 70.05 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005715/0.4705, allocations: 413.2 kB / 0.5527 GB, free: 69.64 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.017e-05/0.4706, allocations: 25.7 kB / 0.5528 GB, free: 69.61 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002509/0.4709, allocations: 367.4 kB / 0.5531 GB, free: 69.24 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001448/0.471, allocations: 189.3 kB / 0.5533 GB, free: 69.05 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.612e-05/0.4711, allocations: 3.938 kB / 0.5533 GB, free: 69.05 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.4712, allocations: 366.8 kB / 0.5537 GB, free: 68.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002828/0.4715, allocations: 197.5 kB / 0.5538 GB, free: 68.49 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003309/0.4718, allocations: 347 kB / 0.5542 GB, free: 68.09 MB / 362.7 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.01092/0.4828, allocations: 2.03 MB / 0.5562 GB, free: 66.04 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/0.4828, allocations: 4 kB / 0.5562 GB, free: 66.04 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001757/0.4846, allocations: 0.7526 MB / 0.5569 GB, free: 65.28 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.155e-05/0.4846, allocations: 67.39 kB / 0.557 GB, free: 65.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.4846, allocations: 4.562 kB / 0.557 GB, free: 65.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004346/0.4851, allocations: 96.72 kB / 0.5571 GB, free: 65.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007572/0.4859, allocations: 179.7 kB / 0.5572 GB, free: 64.92 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001152/0.487, allocations: 1.494 MB / 0.5587 GB, free: 63.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007195/0.4877, allocations: 63.41 kB / 0.5587 GB, free: 63.24 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-05/0.4878, allocations: 35.97 kB / 0.5588 GB, free: 63.21 MB / 362.7 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: 19 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 85 * 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.0002888/0.4881, allocations: 214.5 kB / 0.559 GB, free: 62.98 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003352/0.4915, allocations: 0.9588 MB / 0.5599 GB, free: 62.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001468/0.4917, allocations: 63.33 kB / 0.56 GB, free: 61.96 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003615/0.4953, allocations: 1.099 MB / 0.5611 GB, free: 60.86 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.4953, allocations: 8 kB / 0.5611 GB, free: 60.85 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4953, allocations: 7.953 kB / 0.5611 GB, free: 60.84 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.859e-06/0.4953, allocations: 0 / 0.5611 GB, free: 60.84 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002264/0.4976, allocations: 1.636 MB / 0.5627 GB, free: 59.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.4976, allocations: 0 / 0.5627 GB, free: 59.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000455/0.4981, allocations: 107.9 kB / 0.5628 GB, free: 59.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002162/0.5003, allocations: 0.5332 MB / 0.5633 GB, free: 58.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.226e-05/0.5003, allocations: 23.97 kB / 0.5633 GB, free: 58.49 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006977/0.501, allocations: 0.8566 MB / 0.5642 GB, free: 57.61 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.5011, allocations: 0 / 0.5642 GB, free: 57.61 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001608/0.5027, allocations: 1.136 MB / 0.5653 GB, free: 56.45 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002767/0.503, allocations: 208.2 kB / 0.5655 GB, free: 56.23 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/0.5031, allocations: 19.94 kB / 0.5655 GB, free: 56.21 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005021/0.5036, allocations: 31.98 kB / 0.5655 GB, free: 56.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.942e-05/0.5037, allocations: 48.48 kB / 0.5656 GB, free: 56.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.035e-05/0.5038, allocations: 27.97 kB / 0.5656 GB, free: 56.1 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003727/0.5041, allocations: 319 kB / 0.5659 GB, free: 55.79 MB / 362.7 MB Notification: Performance of sort global known variables: time 2e-07/0.5041, allocations: 0 / 0.5659 GB, free: 55.79 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000804/0.505, allocations: 239.2 kB / 0.5661 GB, free: 55.55 MB / 362.7 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 57 * 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 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001873/0.5068, allocations: 1.828 MB / 0.5679 GB, free: 53.7 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001085/0.5079, allocations: 0.7818 MB / 0.5687 GB, free: 52.88 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.508, allocations: 448 / 0.5687 GB, free: 52.88 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005238/0.5085, allocations: 485 kB / 0.5691 GB, free: 52.38 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005902/0.5091, allocations: 85.97 kB / 0.5692 GB, free: 52.3 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002045/0.5111, allocations: 1.086 MB / 0.5703 GB, free: 51.16 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.5114, allocations: 0.9498 MB / 0.5712 GB, free: 50.18 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003514/0.5118, allocations: 76.8 kB / 0.5713 GB, free: 50.11 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003792/0.5122, allocations: 307.2 kB / 0.5716 GB, free: 49.81 MB / 362.7 MB Notification: Performance of SimCode: time 4.01e-07/0.5122, allocations: 0 / 0.5716 GB, free: 49.81 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04197/0.5542, allocations: 14.24 MB / 0.5855 GB, free: 35.66 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002116/0.5544, allocations: 127 kB / 0.5856 GB, free: 35.46 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.313/2.867, allocations: 4 kB / 0.5856 GB, free: 35.46 MB / 362.7 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)