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.008583/0.008583, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001828/0.001829, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.321/1.321, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02749/0.02749, allocations: 5.393 MB / 295.9 MB, free: 9.484 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 59.91 kB / 412.3 MB, free: 23.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08024/0.08161, allocations: 50.62 MB / 462.9 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.006505/0.08816, allocations: 5.154 MB / 468.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00322/0.09141, allocations: 1.862 MB / 469.9 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005164/0.09195, allocations: 19.88 kB / 470 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007684/0.09273, allocations: 306 kB / 470.3 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007557/0.09353, allocations: 305.8 kB / 470.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005984/0.09414, allocations: 315.5 kB / 470.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001021/0.09517, allocations: 1.122 MB / 472 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005486/0.09573, allocations: 439.3 kB / 472.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000459/0.0962, allocations: 446.4 kB / 472.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006163/0.09682, allocations: 0.5408 MB / 473.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001411/0.09698, allocations: 112 kB / 473.5 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002475/0.09723, allocations: 176 kB / 473.7 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001748/0.09742, allocations: 227.2 kB / 473.9 MB, free: 9.316 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004327/0.09786, allocations: 0.4937 MB / 474.4 MB, free: 8.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001057/0.09892, allocations: 1.172 MB / 475.6 MB, free: 7.645 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.09893, allocations: 0 / 475.6 MB, free: 7.645 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.09894, allocations: 0 / 475.6 MB, free: 7.645 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.086e-05/0.09896, allocations: 0 / 475.6 MB, free: 7.645 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.002833/0.1018, allocations: 1.305 MB / 476.9 MB, free: 6.277 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.1018, allocations: 8.031 kB / 476.9 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001331/0.102, allocations: 122.7 kB / 477 MB, free: 6.141 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001636/0.1021, allocations: 91.89 kB / 477.1 MB, free: 6.051 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001381/0.1035, allocations: 0.6543 MB / 477.7 MB, free: 5.352 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.797e-05/0.1036, allocations: 54 kB / 477.8 MB, free: 5.301 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.1037, allocations: 76 kB / 477.9 MB, free: 5.227 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001378/0.1051, allocations: 0.7854 MB / 478.7 MB, free: 4.414 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.389e-05/0.1051, allocations: 3.938 kB / 478.7 MB, free: 4.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.814e-05/0.1052, allocations: 32 kB / 478.7 MB, free: 4.379 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.623e-05/0.1052, allocations: 16 kB / 478.7 MB, free: 4.363 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001354/0.1066, allocations: 0.5972 MB / 479.3 MB, free: 3.766 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00406/0.1107, allocations: 2.726 MB / 482 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001518/0.1122, allocations: 0.9026 MB / 482.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005489/0.1128, allocations: 242 kB / 483.2 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001236/0.1129, allocations: 97.47 kB / 483.3 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006894/0.1136, allocations: 381.4 kB / 483.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.254e-06/0.1136, allocations: 0 / 483.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.00304/0.1167, allocations: 1.066 MB / 484.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.1168, allocations: 200.3 kB / 484.9 MB, free: 13.81 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005112/0.1173, allocations: 454 kB / 485.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.244e-05/0.1174, allocations: 49.7 kB / 485.4 MB, free: 13.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002311/0.1176, allocations: 363.4 kB / 485.7 MB, free: 12.94 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001474/0.1178, allocations: 185.4 kB / 485.9 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002152/0.118, allocations: 134.6 kB / 486.1 MB, free: 12.62 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.1181, allocations: 366.8 kB / 486.4 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000539/0.1187, allocations: 225.8 kB / 486.6 MB, free: 12.03 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006317/0.1193, allocations: 365.8 kB / 487 MB, free: 11.62 MB / 366.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.01205/0.1314, allocations: 2.372 MB / 489.4 MB, free: 9.141 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.586e-06/0.1314, allocations: 11.88 kB / 489.4 MB, free: 9.129 MB / 366.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001906/0.1333, allocations: 0.8188 MB / 490.2 MB, free: 8.289 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.509e-05/0.1334, allocations: 59.41 kB / 490.3 MB, free: 8.219 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.1334, allocations: 8 kB / 490.3 MB, free: 8.211 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004744/0.1339, allocations: 92.86 kB / 490.3 MB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008275/0.1347, allocations: 163.7 kB / 490.5 MB, free: 7.957 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00155/0.1363, allocations: 1.578 MB / 492.1 MB, free: 6.234 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006511/0.137, allocations: 71.42 kB / 492.2 MB, free: 6.164 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.661e-05/0.1371, allocations: 35.97 kB / 492.2 MB, free: 6.129 MB / 366.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.000394/0.1375, allocations: 290.7 kB / 492.5 MB, free: 5.828 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.1376, allocations: 67.31 kB / 492.5 MB, free: 5.762 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001917/0.1395, allocations: 0.9399 MB / 493.5 MB, free: 4.805 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.908e-06/0.1395, allocations: 8 kB / 493.5 MB, free: 4.797 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.983e-06/0.1395, allocations: 3.938 kB / 493.5 MB, free: 4.793 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.1395, allocations: 3.984 kB / 493.5 MB, free: 4.789 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004127/0.1437, allocations: 1.837 MB / 495.3 MB, free: 2.879 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.1437, allocations: 0 / 495.3 MB, free: 2.879 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004748/0.1442, allocations: 99.88 kB / 495.4 MB, free: 2.781 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005594/0.1447, allocations: 250.4 kB / 495.7 MB, free: 2.527 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.483e-05/0.1448, allocations: 27.92 kB / 495.7 MB, free: 2.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001031/0.1458, allocations: 0.8233 MB / 496.5 MB, free: 1.645 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.063e-06/0.1459, allocations: 0 / 496.5 MB, free: 1.645 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003676/0.1495, allocations: 1.377 MB / 497.9 MB, free: 228 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002631/0.1498, allocations: 192.3 kB / 498.1 MB, free: 16 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001174/0.1499, allocations: 20.08 kB / 498.1 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005331/0.1505, allocations: 47.95 kB / 498.2 MB, free: 15.95 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001208/0.1506, allocations: 52.44 kB / 498.2 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-05/0.1507, allocations: 23.98 kB / 498.2 MB, free: 15.87 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003759/0.1511, allocations: 326.8 kB / 498.6 MB, free: 15.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1511, allocations: 0 / 498.6 MB, free: 15.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007042/0.1518, allocations: 235.3 kB / 498.8 MB, free: 15.32 MB / 382.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.004061/0.1559, allocations: 1.969 MB / 0.489 GB, free: 13.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001634/0.1575, allocations: 0.8268 MB / 0.4898 GB, free: 12.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1575, allocations: 128 / 0.4898 GB, free: 12.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000771/0.1583, allocations: 493.8 kB / 0.4903 GB, free: 11.94 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006873/0.159, allocations: 128.8 kB / 0.4904 GB, free: 11.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009027/0.168, allocations: 5.527 MB / 0.4958 GB, free: 6.078 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005087/0.1686, allocations: 0.9263 MB / 0.4967 GB, free: 5.121 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003449/0.1689, allocations: 96.95 kB / 0.4968 GB, free: 5.023 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004197/0.1693, allocations: 291.3 kB / 0.4971 GB, free: 4.742 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1694, allocations: 0 / 0.4971 GB, free: 4.742 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2114/0.3808, allocations: 15.48 MB / 0.5122 GB, free: 50.31 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.03/12.41, allocations: 2.156 kB / 0.5122 GB, free: 50.31 MB / 382.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)