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.00114/0.001141, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 197 kB / 16.53 MB, free: 6.664 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.349/1.349, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1472/0.1472, allocations: 5.39 MB / 295.8 MB, free: 2.844 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00161/0.00161, allocations: 75.88 kB / 361 MB, free: 14.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09751/0.09915, allocations: 50.6 MB / 411.6 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.007083/0.1063, allocations: 5.159 MB / 416.8 MB, free: 6.172 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003827/0.1101, allocations: 1.873 MB / 418.7 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008828/0.1111, allocations: 19.94 kB / 418.7 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000985/0.1121, allocations: 270.2 kB / 418.9 MB, free: 4.008 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00114/0.1133, allocations: 301.7 kB / 419.2 MB, free: 3.711 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008088/0.1141, allocations: 311.5 kB / 419.5 MB, free: 3.406 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001553/0.1157, allocations: 1.11 MB / 420.7 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007283/0.1164, allocations: 442.7 kB / 421.1 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007589/0.1172, allocations: 454.4 kB / 421.5 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008513/0.118, allocations: 0.5291 MB / 422.1 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002592/0.1183, allocations: 112 kB / 422.2 MB, free: 0.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003911/0.1187, allocations: 179.9 kB / 422.3 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002135/0.1189, allocations: 223.2 kB / 422.6 MB, free: 364 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1774/0.2963, allocations: 497.2 kB / 423 MB, free: 41.15 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001394/0.2978, allocations: 1.157 MB / 424.2 MB, free: 41.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2978, allocations: 0 / 424.2 MB, free: 41.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.2978, allocations: 0 / 424.2 MB, free: 41.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.883e-05/0.2979, allocations: 1.406 kB / 424.2 MB, free: 41.11 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.003167/0.301, allocations: 1.307 MB / 425.5 MB, free: 40.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.3011, allocations: 8 kB / 425.5 MB, free: 40.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001587/0.3012, allocations: 119.5 kB / 425.6 MB, free: 40.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002013/0.3015, allocations: 94.84 kB / 425.7 MB, free: 40.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001222/0.3027, allocations: 0.644 MB / 426.4 MB, free: 40.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.813e-05/0.3027, allocations: 62.53 kB / 426.4 MB, free: 40.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.3029, allocations: 77.31 kB / 426.5 MB, free: 40.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001218/0.3041, allocations: 0.7738 MB / 427.3 MB, free: 39.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.161e-05/0.3041, allocations: 0 / 427.3 MB, free: 39.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.943e-05/0.3042, allocations: 34.69 kB / 427.3 MB, free: 39.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.36e-05/0.3042, allocations: 18.12 kB / 427.3 MB, free: 39.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001191/0.3054, allocations: 0.5954 MB / 427.9 MB, free: 39.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003551/0.309, allocations: 2.766 MB / 430.7 MB, free: 38.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001252/0.3102, allocations: 0.8995 MB / 431.6 MB, free: 38.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004772/0.3107, allocations: 243 kB / 431.8 MB, free: 38.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.553e-05/0.3108, allocations: 92.67 kB / 431.9 MB, free: 38.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006248/0.3115, allocations: 392.2 kB / 432.3 MB, free: 38.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.164e-06/0.3115, allocations: 0 / 432.3 MB, free: 38.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.002639/0.3141, allocations: 1.06 MB / 433.4 MB, free: 37.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.278e-05/0.3142, allocations: 193.9 kB / 433.6 MB, free: 37.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004023/0.3146, allocations: 461.4 kB / 434 MB, free: 37.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.96e-05/0.3147, allocations: 36.95 kB / 434 MB, free: 37.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.3148, allocations: 371.9 kB / 434.4 MB, free: 36.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001009/0.3149, allocations: 178.5 kB / 434.6 MB, free: 36.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001769/0.3151, allocations: 141.8 kB / 434.7 MB, free: 36.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.593e-05/0.3152, allocations: 372.5 kB / 435.1 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004506/0.3156, allocations: 211.9 kB / 435.3 MB, free: 36.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004811/0.3161, allocations: 362.3 kB / 435.6 MB, free: 36 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.01065/0.3268, allocations: 2.386 MB / 438 MB, free: 35.12 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.3268, allocations: 0 / 438 MB, free: 35.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001629/0.3285, allocations: 0.8281 MB / 438.9 MB, free: 34.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.608e-05/0.3285, allocations: 61 kB / 438.9 MB, free: 34.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.916e-06/0.3285, allocations: 7.391 kB / 438.9 MB, free: 34.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004197/0.3289, allocations: 80.28 kB / 439 MB, free: 34.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007215/0.3297, allocations: 177.7 kB / 439.2 MB, free: 34.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001179/0.3309, allocations: 1.572 MB / 440.8 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006458/0.3315, allocations: 78.27 kB / 440.8 MB, free: 33.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.202e-05/0.3316, allocations: 36.08 kB / 440.9 MB, free: 33.13 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.0004091/0.332, allocations: 280.7 kB / 441.1 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.861e-05/0.3321, allocations: 63.67 kB / 441.2 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00164/0.3338, allocations: 0.9328 MB / 442.1 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.3338, allocations: 10.66 kB / 442.1 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.3338, allocations: 2.625 kB / 442.1 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.3338, allocations: 3.375 kB / 442.1 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003546/0.3373, allocations: 1.839 MB / 444 MB, free: 31.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.817e-06/0.3374, allocations: 0 / 444 MB, free: 31.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004655/0.3379, allocations: 100.8 kB / 444.1 MB, free: 31.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005669/0.3384, allocations: 260.1 kB / 444.3 MB, free: 31.51 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-05/0.3385, allocations: 23.94 kB / 444.4 MB, free: 31.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009663/0.3395, allocations: 0.8288 MB / 445.2 MB, free: 30.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.3395, allocations: 0 / 445.2 MB, free: 30.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003329/0.3429, allocations: 1.379 MB / 446.6 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003583/0.3432, allocations: 197.4 kB / 446.8 MB, free: 30.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001192/0.3434, allocations: 22.16 kB / 446.8 MB, free: 30.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000504/0.3439, allocations: 40.09 kB / 446.8 MB, free: 30.05 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000121/0.344, allocations: 44.84 kB / 446.9 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.364e-05/0.3441, allocations: 30.91 kB / 446.9 MB, free: 30.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003219/0.3444, allocations: 325.7 kB / 447.2 MB, free: 29.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3444, allocations: 0 / 447.2 MB, free: 29.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007369/0.3451, allocations: 236.3 kB / 447.4 MB, free: 29.82 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.003534/0.3487, allocations: 1.968 MB / 449.4 MB, free: 28.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001755/0.3504, allocations: 0.8407 MB / 450.3 MB, free: 28.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.3505, allocations: 3 kB / 450.3 MB, free: 28.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006594/0.3511, allocations: 499.6 kB / 450.7 MB, free: 28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007454/0.3519, allocations: 130.2 kB / 450.9 MB, free: 27.94 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007958/0.3599, allocations: 5.677 MB / 456.5 MB, free: 24.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003597/0.3602, allocations: 0.9319 MB / 457.5 MB, free: 23.94 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000441/0.3607, allocations: 91.09 kB / 457.6 MB, free: 23.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003468/0.361, allocations: 290.5 kB / 457.9 MB, free: 23.7 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3611, allocations: 2.625 kB / 457.9 MB, free: 23.7 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04077/0.4018, allocations: 15.2 MB / 473.1 MB, free: 21.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.41, allocations: 3.938 kB / 473.1 MB, free: 21.88 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)