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.0009152/0.0009149, allocations: 180.9 kB / 15.45 MB, free: 0.6523 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.353/1.353, allocations: 223.3 MB / 239.5 MB, free: 5.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007227/0.0007226, allocations: 87.72 kB / 290.6 MB, free: 2.113 MB / 238.1 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.39 MB / 347.2 MB, free: 7.848 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003093/0.0003092, allocations: 8.031 kB / 413 MB, free: 46.17 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08887/0.0892, allocations: 51.61 MB / 464.6 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.004637/0.09387, allocations: 4.724 MB / 469.4 MB, free: 12.87 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002921/0.09681, allocations: 1.842 MB / 471.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000512/0.09735, allocations: 12 kB / 471.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006918/0.09806, allocations: 254.9 kB / 471.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007137/0.09878, allocations: 250.4 kB / 471.7 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005404/0.09933, allocations: 279.7 kB / 472 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009378/0.1003, allocations: 1.028 MB / 473 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000484/0.1008, allocations: 390.3 kB / 473.4 MB, free: 8.805 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000398/0.1012, allocations: 362.4 kB / 473.8 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005329/0.1017, allocations: 465.8 kB / 474.2 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.419e-05/0.1018, allocations: 44 kB / 474.3 MB, free: 7.949 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002001/0.102, allocations: 115.9 kB / 474.4 MB, free: 7.836 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001141/0.1022, allocations: 159.3 kB / 474.5 MB, free: 7.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003371/0.1025, allocations: 443.3 kB / 475 MB, free: 7.238 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008314/0.1033, allocations: 1.078 MB / 476 MB, free: 6.156 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1033, allocations: 0 / 476 MB, free: 6.156 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1034, allocations: 0 / 476 MB, free: 6.156 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.1034, allocations: 0 / 476 MB, free: 6.156 MB / 302.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.002432/0.1058, allocations: 1.157 MB / 477.2 MB, free: 4.938 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.1059, allocations: 8.031 kB / 477.2 MB, free: 4.93 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000143/0.106, allocations: 118.7 kB / 477.3 MB, free: 4.805 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001358/0.1061, allocations: 91.91 kB / 477.4 MB, free: 4.715 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001171/0.1073, allocations: 0.6543 MB / 478.1 MB, free: 4.016 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.166e-05/0.1074, allocations: 54 kB / 478.1 MB, free: 3.965 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001051/0.1075, allocations: 72 kB / 478.2 MB, free: 3.895 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.1088, allocations: 0.7854 MB / 479 MB, free: 3.082 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.763e-05/0.1088, allocations: 7.969 kB / 479 MB, free: 3.074 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.85e-05/0.1089, allocations: 32 kB / 479 MB, free: 3.043 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.682e-05/0.1089, allocations: 16 kB / 479 MB, free: 3.027 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00123/0.1102, allocations: 0.605 MB / 479.6 MB, free: 2.422 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004131/0.1143, allocations: 2.769 MB / 482.4 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001414/0.1158, allocations: 0.9197 MB / 483.3 MB, free: 14.51 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005129/0.1163, allocations: 250 kB / 483.6 MB, free: 14.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001492/0.1164, allocations: 89.45 kB / 483.6 MB, free: 14.16 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007248/0.1172, allocations: 385.5 kB / 484 MB, free: 13.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=56): time 2.224e-06/0.1172, allocations: 0 / 484 MB, free: 13.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.002811/0.12, allocations: 1.093 MB / 485.1 MB, free: 12.62 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.96e-05/0.1201, allocations: 200.3 kB / 485.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004864/0.1206, allocations: 458 kB / 485.8 MB, free: 11.92 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.67e-05/0.1207, allocations: 37.7 kB / 485.8 MB, free: 11.88 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002507/0.1209, allocations: 367.4 kB / 486.2 MB, free: 11.52 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.1211, allocations: 185.4 kB / 486.3 MB, free: 11.33 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.103e-05/0.1212, allocations: 69.67 kB / 486.4 MB, free: 11.26 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.1213, allocations: 362.8 kB / 486.8 MB, free: 10.89 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005014/0.1218, allocations: 221.9 kB / 487 MB, free: 10.68 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005733/0.1224, allocations: 367.8 kB / 487.3 MB, free: 10.26 MB / 318.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.01164/0.134, allocations: 2.443 MB / 489.8 MB, free: 7.707 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.1341, allocations: 7.938 kB / 489.8 MB, free: 7.699 MB / 318.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001837/0.1359, allocations: 0.8343 MB / 490.6 MB, free: 6.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.037e-05/0.136, allocations: 63.39 kB / 490.7 MB, free: 6.766 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.136, allocations: 4 kB / 490.7 MB, free: 6.762 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004763/0.1365, allocations: 84.94 kB / 490.8 MB, free: 6.676 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007975/0.1373, allocations: 163.7 kB / 490.9 MB, free: 6.516 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001732/0.1391, allocations: 1.471 MB / 492.4 MB, free: 4.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000758/0.1398, allocations: 75.58 kB / 492.5 MB, free: 4.836 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.19e-05/0.1399, allocations: 39.97 kB / 492.5 MB, free: 4.797 MB / 318.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.0005553/0.1405, allocations: 288.1 kB / 492.8 MB, free: 4.496 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.1406, allocations: 55.34 kB / 492.8 MB, free: 4.441 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001858/0.1424, allocations: 0.9515 MB / 493.8 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.011e-05/0.1425, allocations: 8 kB / 493.8 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.1425, allocations: 3.938 kB / 493.8 MB, free: 3.453 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.298e-06/0.1425, allocations: 3.984 kB / 493.8 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004129/0.1466, allocations: 1.874 MB / 495.7 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.708e-06/0.1466, allocations: 0 / 495.7 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004618/0.1471, allocations: 103.9 kB / 495.8 MB, free: 1.398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005685/0.1477, allocations: 262.4 kB / 496 MB, free: 1.133 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.676e-05/0.1478, allocations: 19.98 kB / 496.1 MB, free: 1.113 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009658/0.1487, allocations: 0.835 MB / 496.9 MB, free: 252 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.1487, allocations: 3.938 kB / 496.9 MB, free: 248 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003503/0.1522, allocations: 1.408 MB / 498.3 MB, free: 14.8 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003538/0.1526, allocations: 196.1 kB / 498.5 MB, free: 14.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/0.1527, allocations: 24 kB / 498.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005118/0.1533, allocations: 51.91 kB / 498.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.1534, allocations: 36.5 kB / 498.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.739e-05/0.1534, allocations: 31.98 kB / 498.6 MB, free: 14.45 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003884/0.1538, allocations: 326.9 kB / 499 MB, free: 14.13 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.1538, allocations: 0 / 499 MB, free: 14.13 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007175/0.1546, allocations: 231.2 kB / 499.2 MB, free: 13.91 MB / 334.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.003798/0.1584, allocations: 2.005 MB / 0.4894 GB, free: 11.86 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001565/0.16, allocations: 0.827 MB / 0.4903 GB, free: 10.99 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.16, allocations: 4 kB / 0.4903 GB, free: 10.98 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007239/0.1607, allocations: 489.9 kB / 0.4907 GB, free: 10.48 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000813/0.1615, allocations: 117.9 kB / 0.4908 GB, free: 10.36 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008916/0.1705, allocations: 6.09 MB / 0.4968 GB, free: 4.066 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004491/0.171, allocations: 0.9343 MB / 0.4977 GB, free: 3.102 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0004249/0.1714, allocations: 92.94 kB / 0.4978 GB, free: 3.008 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003938/0.1718, allocations: 291.3 kB / 0.4981 GB, free: 2.723 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1718, allocations: 4 kB / 0.4981 GB, free: 2.719 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02835/0.2001, allocations: 14.39 MB / 0.5121 GB, free: 4.543 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001942/0.2004, allocations: 213.3 kB / 0.5123 GB, free: 4.289 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.098/2.298, allocations: 0 / 0.5123 GB, free: 4.289 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)