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.0008912/0.0008912, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.000893/0.000893, allocations: 177.3 kB / 15.95 MB, free: 216 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.265/1.265, allocations: 223.2 MB / 239.9 MB, free: 5.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1488/0.1488, allocations: 5.372 MB / 296.3 MB, free: 3.977 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003357/0.0003359, allocations: 8 kB / 361.9 MB, free: 14.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09408/0.09443, allocations: 51.6 MB / 413.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.004455/0.09893, allocations: 4.229 MB / 417.7 MB, free: 6.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002541/0.1015, allocations: 1.762 MB / 419.5 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000278/0.1018, allocations: 15.94 kB / 419.5 MB, free: 4.488 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004429/0.1022, allocations: 222.7 kB / 419.7 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004892/0.1027, allocations: 287.1 kB / 420 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004188/0.1032, allocations: 215.5 kB / 420.2 MB, free: 3.777 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006805/0.1039, allocations: 0.6791 MB / 420.9 MB, free: 3.098 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004075/0.1043, allocations: 315.9 kB / 421.2 MB, free: 2.773 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003651/0.1047, allocations: 358.7 kB / 421.6 MB, free: 2.422 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004962/0.1052, allocations: 446.2 kB / 422 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.118e-05/0.1053, allocations: 51.94 kB / 422 MB, free: 1.934 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001839/0.1054, allocations: 103.9 kB / 422.1 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001148/0.1056, allocations: 147.4 kB / 422.3 MB, free: 1.688 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001382/0.1057, allocations: 177.3 kB / 422.5 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006655/0.1064, allocations: 0.8687 MB / 423.3 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/0.1064, allocations: 0 / 423.3 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1064, allocations: 4 kB / 423.3 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.141e-05/0.1064, allocations: 0 / 423.3 MB, free: 0.6328 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.1649/0.2713, allocations: 1.146 MB / 424.5 MB, free: 38.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.2714, allocations: 10 kB / 424.5 MB, free: 38.74 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002934/0.2717, allocations: 121.3 kB / 424.6 MB, free: 38.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001788/0.2718, allocations: 95.78 kB / 424.7 MB, free: 38.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001246/0.2731, allocations: 0.6223 MB / 425.3 MB, free: 38.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.997e-05/0.2732, allocations: 56.81 kB / 425.4 MB, free: 38.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.2733, allocations: 73.66 kB / 425.4 MB, free: 38.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001227/0.2745, allocations: 0.7769 MB / 426.2 MB, free: 38.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.736e-05/0.2746, allocations: 0 / 426.2 MB, free: 38.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.302e-05/0.2746, allocations: 33.81 kB / 426.3 MB, free: 38.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.2746, allocations: 18.05 kB / 426.3 MB, free: 38.27 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/0.2758, allocations: 0.6024 MB / 426.9 MB, free: 38.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003332/0.2791, allocations: 2.776 MB / 429.7 MB, free: 37.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001229/0.2803, allocations: 0.9119 MB / 430.6 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.683e-05/0.2805, allocations: 94.61 kB / 430.7 MB, free: 36.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005688/0.281, allocations: 388.7 kB / 431 MB, free: 36.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 1.984e-06/0.281, allocations: 0 / 431 MB, free: 36.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.002538/0.2836, allocations: 1.167 MB / 432.2 MB, free: 36.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.595e-05/0.2837, allocations: 199 kB / 432.4 MB, free: 35.88 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004502/0.2841, allocations: 455.2 kB / 432.8 MB, free: 35.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.061e-05/0.2842, allocations: 38.8 kB / 432.9 MB, free: 35.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001873/0.2844, allocations: 369.7 kB / 433.2 MB, free: 35.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.2845, allocations: 172.9 kB / 433.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.294e-05/0.2845, allocations: 17.12 kB / 433.4 MB, free: 35.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.2847, allocations: 370 kB / 433.8 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004724/0.2851, allocations: 221.6 kB / 434 MB, free: 35.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004682/0.2856, allocations: 371.2 kB / 434.4 MB, free: 34.93 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.00958/0.2952, allocations: 1.867 MB / 436.2 MB, free: 34.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.2952, allocations: 3.125 kB / 436.2 MB, free: 34.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001549/0.2968, allocations: 0.8272 MB / 437.1 MB, free: 34.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.653e-05/0.2968, allocations: 61 kB / 437.1 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.2968, allocations: 7.25 kB / 437.1 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003971/0.2972, allocations: 76.5 kB / 437.2 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006982/0.298, allocations: 176.5 kB / 437.4 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001082/0.299, allocations: 1.469 MB / 438.8 MB, free: 33.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005783/0.2996, allocations: 80 kB / 438.9 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.141e-05/0.2997, allocations: 32.25 kB / 439 MB, free: 33.05 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.0003432/0.3001, allocations: 298.7 kB / 439.2 MB, free: 32.87 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.995e-05/0.3001, allocations: 59.38 kB / 439.3 MB, free: 32.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001583/0.3017, allocations: 0.949 MB / 440.3 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.3017, allocations: 6.531 kB / 440.3 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.3018, allocations: 0 / 440.3 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.3018, allocations: 3.234 kB / 440.3 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003387/0.3052, allocations: 1.866 MB / 442.1 MB, free: 32.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.3052, allocations: 0 / 442.1 MB, free: 32.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004216/0.3056, allocations: 105.8 kB / 442.2 MB, free: 32.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004741/0.3061, allocations: 273.6 kB / 442.5 MB, free: 32.19 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.391e-05/0.3061, allocations: 17.77 kB / 442.5 MB, free: 32.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007913/0.3069, allocations: 0.8367 MB / 443.4 MB, free: 31.63 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.307, allocations: 0 / 443.4 MB, free: 31.63 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00297/0.3099, allocations: 1.416 MB / 444.8 MB, free: 31.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000237/0.3102, allocations: 196.6 kB / 445 MB, free: 31.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.926e-05/0.3103, allocations: 28.97 kB / 445 MB, free: 31.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004772/0.3108, allocations: 43.22 kB / 445 MB, free: 31.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.759e-05/0.3109, allocations: 46.39 kB / 445.1 MB, free: 31.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.219e-05/0.3109, allocations: 27.55 kB / 445.1 MB, free: 31.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003045/0.3112, allocations: 322.5 kB / 445.4 MB, free: 31.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3112, allocations: 0 / 445.4 MB, free: 31.1 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006677/0.3119, allocations: 234.5 kB / 445.6 MB, free: 31.06 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.003307/0.3152, allocations: 2.074 MB / 447.7 MB, free: 30.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00136/0.3166, allocations: 0.8221 MB / 448.5 MB, free: 29.67 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3166, allocations: 0 / 448.5 MB, free: 29.67 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005993/0.3172, allocations: 496.5 kB / 449 MB, free: 29.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005666/0.3178, allocations: 107.2 kB / 449.1 MB, free: 29.36 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003021/0.3208, allocations: 4.807 MB / 453.9 MB, free: 25.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003059/0.3212, allocations: 0.9496 MB / 454.9 MB, free: 24.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000366/0.3215, allocations: 92.8 kB / 455 MB, free: 24.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003204/0.3219, allocations: 297.2 kB / 455.3 MB, free: 24.32 MB / 350.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3219, allocations: 0 / 455.3 MB, free: 24.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02855/0.3504, allocations: 13.78 MB / 469.1 MB, free: 23.39 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001434/0.3506, allocations: 194.9 kB / 469.2 MB, free: 23.15 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.936/2.287, allocations: 0 / 469.2 MB, free: 23.15 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: