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.0007674/0.0007675, allocations: 97.56 kB / 15.36 MB, free: 0.7344 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.004745/0.004745, allocations: 169.2 kB / 16.26 MB, free: 6.648 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.239/1.239, allocations: 223.2 MB / 240.3 MB, free: 5.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1267/0.1267, allocations: 5.38 MB / 296.8 MB, free: 3.895 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00034/0.0003401, allocations: 8 kB / 362.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08732/0.08768, allocations: 51.61 MB / 414.3 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.004694/0.09241, allocations: 4.739 MB / 419 MB, free: 5.266 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00281/0.09524, allocations: 1.831 MB / 420.9 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004848/0.09575, allocations: 8 kB / 420.9 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006535/0.09641, allocations: 254.6 kB / 421.1 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007369/0.09716, allocations: 246.4 kB / 421.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005996/0.09777, allocations: 279.7 kB / 421.6 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001069/0.09885, allocations: 1.036 MB / 422.7 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005141/0.09938, allocations: 390.4 kB / 423.1 MB, free: 1.215 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005335/0.09992, allocations: 366.4 kB / 423.4 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000682/0.1006, allocations: 461.9 kB / 423.9 MB, free: 412 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000153/0.1008, allocations: 44 kB / 423.9 MB, free: 368 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002908/0.1011, allocations: 111.9 kB / 424 MB, free: 256 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001352/0.1012, allocations: 159.2 kB / 424.2 MB, free: 96 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1522/0.2535, allocations: 434.2 kB / 424.6 MB, free: 38.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008793/0.2544, allocations: 1.085 MB / 425.7 MB, free: 38.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2544, allocations: 5.203 kB / 425.7 MB, free: 38.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2544, allocations: 0 / 425.7 MB, free: 38.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.547e-06/0.2544, allocations: 0 / 425.7 MB, free: 38.69 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.002242/0.2567, allocations: 1.153 MB / 426.8 MB, free: 38.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.2567, allocations: 10.5 kB / 426.9 MB, free: 38.01 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001158/0.2568, allocations: 121.8 kB / 427 MB, free: 37.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001265/0.2569, allocations: 93.44 kB / 427.1 MB, free: 37.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001049/0.258, allocations: 0.6421 MB / 427.7 MB, free: 37.63 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.728e-05/0.258, allocations: 59.44 kB / 427.8 MB, free: 37.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.53e-05/0.2582, allocations: 77.31 kB / 427.8 MB, free: 37.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/0.2593, allocations: 0.7874 MB / 428.6 MB, free: 37.51 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/0.2593, allocations: 0.8438 kB / 428.6 MB, free: 37.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.445e-05/0.2594, allocations: 33 kB / 428.7 MB, free: 37.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.2594, allocations: 20.56 kB / 428.7 MB, free: 37.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001099/0.2605, allocations: 0.6037 MB / 429.3 MB, free: 37.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00354/0.2641, allocations: 2.769 MB / 432.1 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001195/0.2653, allocations: 0.908 MB / 433 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005118/0.2658, allocations: 258.1 kB / 433.2 MB, free: 35.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.862e-05/0.2659, allocations: 84.61 kB / 433.3 MB, free: 35.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005945/0.2665, allocations: 400.7 kB / 433.7 MB, free: 35.65 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.194e-06/0.2665, allocations: 3.219 kB / 433.7 MB, free: 35.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.002465/0.269, allocations: 1.086 MB / 434.8 MB, free: 35.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.162e-05/0.2691, allocations: 202.7 kB / 435 MB, free: 35.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004056/0.2695, allocations: 458.7 kB / 435.4 MB, free: 35.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.022e-05/0.2695, allocations: 42.33 kB / 435.5 MB, free: 35.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001596/0.2697, allocations: 369.3 kB / 435.8 MB, free: 34.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.2698, allocations: 179.1 kB / 436 MB, free: 34.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.491e-05/0.2699, allocations: 66.06 kB / 436.1 MB, free: 34.7 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.43e-05/0.27, allocations: 364.8 kB / 436.4 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004417/0.2704, allocations: 224.4 kB / 436.6 MB, free: 34.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004748/0.2709, allocations: 372 kB / 437 MB, free: 34.21 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.01045/0.2814, allocations: 2.439 MB / 439.4 MB, free: 33.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.2814, allocations: 3.344 kB / 439.4 MB, free: 33.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00156/0.283, allocations: 0.8291 MB / 440.3 MB, free: 33.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.304e-05/0.283, allocations: 64.72 kB / 440.3 MB, free: 33.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.914e-06/0.283, allocations: 3.438 kB / 440.3 MB, free: 33.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004065/0.2834, allocations: 83.28 kB / 440.4 MB, free: 33.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007039/0.2841, allocations: 170.1 kB / 440.6 MB, free: 33.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001013/0.2852, allocations: 1.466 MB / 442.1 MB, free: 32.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005852/0.2858, allocations: 77.83 kB / 442.1 MB, free: 32.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.739e-05/0.2858, allocations: 33.25 kB / 442.2 MB, free: 32.08 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.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.0003491/0.2862, allocations: 290 kB / 442.4 MB, free: 31.9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.159e-05/0.2863, allocations: 67.38 kB / 442.5 MB, free: 31.87 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001654/0.2879, allocations: 0.9426 MB / 443.5 MB, free: 31.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.2879, allocations: 10.25 kB / 443.5 MB, free: 31.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.288, allocations: 3.281 kB / 443.5 MB, free: 31.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/0.288, allocations: 10.41 kB / 443.5 MB, free: 31.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003561/0.2915, allocations: 1.867 MB / 445.3 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.2915, allocations: 0 / 445.3 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004136/0.292, allocations: 105.7 kB / 445.5 MB, free: 30.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004692/0.2924, allocations: 257.3 kB / 445.7 MB, free: 30.6 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.008e-05/0.2925, allocations: 21.44 kB / 445.7 MB, free: 30.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007702/0.2933, allocations: 0.8335 MB / 446.6 MB, free: 29.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.2933, allocations: 3.344 kB / 446.6 MB, free: 29.94 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003031/0.2963, allocations: 1.419 MB / 448 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002037/0.2965, allocations: 196.6 kB / 448.2 MB, free: 29.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.135e-05/0.2966, allocations: 20.53 kB / 448.2 MB, free: 29.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004982/0.2971, allocations: 47.55 kB / 448.2 MB, free: 29.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.894e-05/0.2972, allocations: 49.39 kB / 448.3 MB, free: 29.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.069e-05/0.2973, allocations: 26.53 kB / 448.3 MB, free: 29.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002917/0.2976, allocations: 325.1 kB / 448.6 MB, free: 28.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2976, allocations: 0 / 448.6 MB, free: 28.97 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009011/0.2985, allocations: 230.5 kB / 448.9 MB, free: 28.92 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.003327/0.3018, allocations: 2.008 MB / 450.9 MB, free: 27.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001331/0.3032, allocations: 0.8175 MB / 451.7 MB, free: 27.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3032, allocations: 3.156 kB / 451.7 MB, free: 27.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006035/0.3038, allocations: 492.1 kB / 452.2 MB, free: 27.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007078/0.3045, allocations: 120.6 kB / 452.3 MB, free: 27.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007436/0.312, allocations: 6.089 MB / 458.4 MB, free: 23.4 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000284/0.3123, allocations: 0.9304 MB / 459.3 MB, free: 22.69 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003882/0.3127, allocations: 100.8 kB / 459.4 MB, free: 22.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003349/0.313, allocations: 287.5 kB / 459.7 MB, free: 22.45 MB / 350.1 MB Notification: Performance of SimCode: time 8.82e-07/0.313, allocations: 0 / 459.7 MB, free: 22.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02793/0.341, allocations: 14.38 MB / 474.1 MB, free: 20.96 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001405/0.3411, allocations: 213.1 kB / 474.3 MB, free: 20.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.96/2.301, allocations: 1 kB / 474.3 MB, free: 20.71 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/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)