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.001322/0.001322, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001321/0.001321, allocations: 189.4 kB / 16.14 MB, free: 6.66 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.286/1.286, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1403/0.1403, allocations: 5.384 MB / 295.3 MB, free: 2.953 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001687/0.001687, allocations: 63.91 kB / 360.3 MB, free: 14.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09976/0.1015, allocations: 50.62 MB / 410.9 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.006179/0.1077, allocations: 5.155 MB / 416 MB, free: 6.688 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003197/0.1109, allocations: 1.877 MB / 417.9 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005572/0.1115, allocations: 8 kB / 417.9 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007569/0.1123, allocations: 242.6 kB / 418.1 MB, free: 4.559 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006432/0.1129, allocations: 254.4 kB / 418.4 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005895/0.1135, allocations: 275.7 kB / 418.7 MB, free: 4.039 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001205/0.1148, allocations: 1.032 MB / 419.7 MB, free: 3.004 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005189/0.1153, allocations: 402.4 kB / 420.1 MB, free: 2.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004336/0.1157, allocations: 398.4 kB / 420.5 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000602/0.1163, allocations: 0.494 MB / 421 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002037/0.1166, allocations: 60 kB / 421 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002197/0.1168, allocations: 131.9 kB / 421.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002245/0.117, allocations: 179.2 kB / 421.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004195/0.1174, allocations: 449.7 kB / 421.8 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1584/0.2759, allocations: 1.112 MB / 422.9 MB, free: 41.56 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.2759, allocations: 0 / 422.9 MB, free: 41.56 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2759, allocations: 0 / 422.9 MB, free: 41.56 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.438e-05/0.276, allocations: 0 / 422.9 MB, free: 41.56 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.003169/0.2791, allocations: 1.307 MB / 424.2 MB, free: 40.91 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.2792, allocations: 9.438 kB / 424.2 MB, free: 40.91 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001308/0.2793, allocations: 115.3 kB / 424.3 MB, free: 40.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002004/0.2795, allocations: 96.28 kB / 424.4 MB, free: 40.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001176/0.2807, allocations: 0.6473 MB / 425.1 MB, free: 40.53 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.217e-05/0.2808, allocations: 57.56 kB / 425.1 MB, free: 40.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.493e-05/0.2809, allocations: 71.69 kB / 425.2 MB, free: 40.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00115/0.282, allocations: 0.7811 MB / 426 MB, free: 40.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.872e-05/0.2821, allocations: 2.938 kB / 426 MB, free: 40.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.365e-05/0.2821, allocations: 28.66 kB / 426 MB, free: 40.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.2821, allocations: 20.72 kB / 426 MB, free: 40.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001134/0.2833, allocations: 0.5993 MB / 426.6 MB, free: 40.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003312/0.2866, allocations: 2.763 MB / 429.4 MB, free: 39.33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/0.2879, allocations: 0.9053 MB / 430.3 MB, free: 38.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004637/0.2883, allocations: 242.1 kB / 430.5 MB, free: 38.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001032/0.2884, allocations: 90.5 kB / 430.6 MB, free: 38.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006226/0.2891, allocations: 387.2 kB / 431 MB, free: 38.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.354e-06/0.2891, allocations: 0 / 431 MB, free: 38.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.002686/0.2918, allocations: 1.062 MB / 432 MB, free: 38.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.53e-05/0.2919, allocations: 200.6 kB / 432.2 MB, free: 38.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003956/0.2923, allocations: 460 kB / 432.7 MB, free: 37.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.968e-05/0.2923, allocations: 36.86 kB / 432.7 MB, free: 37.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001523/0.2925, allocations: 371.3 kB / 433.1 MB, free: 37.56 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.2926, allocations: 184.6 kB / 433.3 MB, free: 37.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001872/0.2928, allocations: 140.6 kB / 433.4 MB, free: 37.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.509e-05/0.2928, allocations: 367.8 kB / 433.8 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004636/0.2933, allocations: 214.4 kB / 434 MB, free: 36.95 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005174/0.2938, allocations: 369.2 kB / 434.3 MB, free: 36.71 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.01143/0.3053, allocations: 2.374 MB / 436.7 MB, free: 35.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.3053, allocations: 3.219 kB / 436.7 MB, free: 35.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001667/0.307, allocations: 0.8284 MB / 437.5 MB, free: 35.49 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.432e-05/0.307, allocations: 60.97 kB / 437.6 MB, free: 35.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.577e-06/0.307, allocations: 3.125 kB / 437.6 MB, free: 35.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004476/0.3075, allocations: 83.34 kB / 437.7 MB, free: 35.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007622/0.3083, allocations: 173.3 kB / 437.9 MB, free: 35.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001085/0.3094, allocations: 1.459 MB / 439.3 MB, free: 34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006418/0.31, allocations: 71.88 kB / 439.4 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.215e-05/0.3101, allocations: 41.08 kB / 439.4 MB, free: 33.95 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.0003407/0.3104, allocations: 296.7 kB / 439.7 MB, free: 33.71 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.294e-05/0.3105, allocations: 60.41 kB / 439.8 MB, free: 33.69 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001646/0.3122, allocations: 0.9291 MB / 440.7 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.3122, allocations: 9.219 kB / 440.7 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.3122, allocations: 0 / 440.7 MB, free: 33.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.3122, allocations: 8.062 kB / 440.7 MB, free: 33.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003617/0.3158, allocations: 1.84 MB / 442.6 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.3159, allocations: 0 / 442.6 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004385/0.3163, allocations: 103.8 kB / 442.7 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004924/0.3168, allocations: 257.5 kB / 442.9 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.62e-05/0.3169, allocations: 17.73 kB / 442.9 MB, free: 32.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008191/0.3177, allocations: 0.8298 MB / 443.8 MB, free: 31.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3177, allocations: 0 / 443.8 MB, free: 31.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003294/0.321, allocations: 1.382 MB / 445.1 MB, free: 31.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002286/0.3212, allocations: 198.3 kB / 445.3 MB, free: 30.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001026/0.3213, allocations: 17.72 kB / 445.4 MB, free: 30.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005297/0.3219, allocations: 47.91 kB / 445.4 MB, free: 30.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.322, allocations: 44.23 kB / 445.4 MB, free: 30.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.649e-05/0.3221, allocations: 27.45 kB / 445.5 MB, free: 30.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003007/0.3224, allocations: 324.1 kB / 445.8 MB, free: 30.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3224, allocations: 0 / 445.8 MB, free: 30.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006607/0.323, allocations: 230 kB / 446 MB, free: 30.65 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.00358/0.3266, allocations: 1.973 MB / 448 MB, free: 29.5 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001379/0.328, allocations: 0.8115 MB / 448.8 MB, free: 29.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.328, allocations: 4.312 kB / 448.8 MB, free: 29.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000625/0.3287, allocations: 488.5 kB / 449.3 MB, free: 28.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006959/0.3294, allocations: 125.1 kB / 449.4 MB, free: 28.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007726/0.3371, allocations: 5.998 MB / 455.4 MB, free: 25.17 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000296/0.3374, allocations: 0.9294 MB / 456.3 MB, free: 24.46 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004321/0.3379, allocations: 95.23 kB / 456.4 MB, free: 24.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003584/0.3382, allocations: 292.2 kB / 456.7 MB, free: 24.21 MB / 350.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3382, allocations: 0 / 456.7 MB, free: 24.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02961/0.3679, allocations: 14.57 MB / 471.3 MB, free: 22.95 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001293/0.368, allocations: 220.4 kB / 471.5 MB, free: 22.69 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.111/2.479, allocations: 1.25 kB / 471.5 MB, free: 22.69 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)