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.001273/0.001274, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001381/0.001381, allocations: 187.7 kB / 16.25 MB, free: 6.637 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.298/1.298, allocations: 222.9 MB / 239.9 MB, free: 4.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1251/0.1251, allocations: 5.388 MB / 295.5 MB, free: 2.891 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 59.91 kB / 360.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0853/0.0866, allocations: 50.62 MB / 411.1 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.006216/0.09286, allocations: 5.163 MB / 416.2 MB, free: 6.527 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003083/0.09597, allocations: 1.85 MB / 418.1 MB, free: 4.672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000659/0.09665, allocations: 8 kB / 418.1 MB, free: 4.664 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008822/0.09754, allocations: 242.6 kB / 418.3 MB, free: 4.426 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000944/0.09853, allocations: 258.4 kB / 418.6 MB, free: 4.172 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006872/0.09923, allocations: 279.6 kB / 418.9 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001274/0.1005, allocations: 1.11 MB / 420 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005627/0.1011, allocations: 442.7 kB / 420.4 MB, free: 2.328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004931/0.1016, allocations: 446.4 kB / 420.8 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005407/0.1021, allocations: 0.5369 MB / 421.4 MB, free: 1.352 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001258/0.1023, allocations: 112 kB / 421.5 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002372/0.1025, allocations: 175.9 kB / 421.6 MB, free: 1.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001566/0.1027, allocations: 227.2 kB / 421.9 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003657/0.1031, allocations: 497.6 kB / 422.4 MB, free: 368 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1509/0.254, allocations: 1.161 MB / 423.5 MB, free: 41.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.254, allocations: 0 / 423.5 MB, free: 41.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.254, allocations: 0 / 423.5 MB, free: 41.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.609e-05/0.254, allocations: 1.656 kB / 423.5 MB, free: 41.96 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.002645/0.2567, allocations: 1.294 MB / 424.8 MB, free: 41.27 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.2567, allocations: 10.5 kB / 424.8 MB, free: 41.27 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001173/0.2569, allocations: 120.5 kB / 424.9 MB, free: 41.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001432/0.257, allocations: 97.69 kB / 425 MB, free: 41.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00108/0.2581, allocations: 0.644 MB / 425.7 MB, free: 40.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.659e-05/0.2581, allocations: 62.97 kB / 425.7 MB, free: 40.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.755e-05/0.2582, allocations: 73.25 kB / 425.8 MB, free: 40.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001127/0.2594, allocations: 0.7808 MB / 426.6 MB, free: 40.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.155e-05/0.2594, allocations: 1.406 kB / 426.6 MB, free: 40.78 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.498e-05/0.2595, allocations: 29.88 kB / 426.6 MB, free: 40.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.2595, allocations: 19.41 kB / 426.6 MB, free: 40.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001106/0.2606, allocations: 0.599 MB / 427.2 MB, free: 40.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003234/0.2639, allocations: 2.756 MB / 430 MB, free: 39.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001231/0.2651, allocations: 0.9109 MB / 430.9 MB, free: 39.19 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004513/0.2656, allocations: 248.4 kB / 431.2 MB, free: 39.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.613e-05/0.2657, allocations: 87.7 kB / 431.2 MB, free: 39.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006196/0.2663, allocations: 386.7 kB / 431.6 MB, free: 38.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.044e-06/0.2663, allocations: 0 / 431.6 MB, free: 38.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.002545/0.2689, allocations: 1.06 MB / 432.7 MB, free: 38.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.101e-05/0.2689, allocations: 200.4 kB / 432.9 MB, free: 38.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003791/0.2693, allocations: 456.7 kB / 433.3 MB, free: 38.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.993e-05/0.2694, allocations: 44.92 kB / 433.4 MB, free: 38.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001477/0.2695, allocations: 372.8 kB / 433.7 MB, free: 37.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.64e-05/0.2696, allocations: 172.2 kB / 433.9 MB, free: 37.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/0.2698, allocations: 140 kB / 434 MB, free: 37.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.112e-05/0.2699, allocations: 368.1 kB / 434.4 MB, free: 37.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004436/0.2703, allocations: 217.3 kB / 434.6 MB, free: 37.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004755/0.2708, allocations: 367.9 kB / 435 MB, free: 36.91 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.01088/0.2817, allocations: 2.38 MB / 437.3 MB, free: 36.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.2817, allocations: 3.312 kB / 437.3 MB, free: 36.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001549/0.2833, allocations: 0.8253 MB / 438.2 MB, free: 35.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.328e-05/0.2833, allocations: 57.97 kB / 438.2 MB, free: 35.63 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.2833, allocations: 7 kB / 438.2 MB, free: 35.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000427/0.2838, allocations: 85.08 kB / 438.3 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007272/0.2845, allocations: 169 kB / 438.5 MB, free: 35.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001145/0.2857, allocations: 1.574 MB / 440.1 MB, free: 34.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006079/0.2863, allocations: 84.36 kB / 440.1 MB, free: 34.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.159e-05/0.2863, allocations: 37 kB / 440.2 MB, free: 34.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 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.0003228/0.2867, allocations: 286.6 kB / 440.5 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.804e-05/0.2868, allocations: 59.03 kB / 440.5 MB, free: 33.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001589/0.2884, allocations: 0.9361 MB / 441.4 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.2884, allocations: 6.094 kB / 441.5 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-06/0.2884, allocations: 0 / 441.5 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.2884, allocations: 3.422 kB / 441.5 MB, free: 33.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003459/0.2919, allocations: 1.838 MB / 443.3 MB, free: 32.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.2919, allocations: 0 / 443.3 MB, free: 32.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004243/0.2923, allocations: 102.5 kB / 443.4 MB, free: 32.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004727/0.2928, allocations: 258.5 kB / 443.6 MB, free: 32.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.801e-05/0.2929, allocations: 23.97 kB / 443.7 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007663/0.2936, allocations: 0.8271 MB / 444.5 MB, free: 31.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.2936, allocations: 0 / 444.5 MB, free: 31.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003125/0.2968, allocations: 1.383 MB / 445.9 MB, free: 31.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001915/0.297, allocations: 196.2 kB / 446.1 MB, free: 31 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.2971, allocations: 24.97 kB / 446.1 MB, free: 30.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004974/0.2976, allocations: 42.73 kB / 446.1 MB, free: 30.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.2977, allocations: 43.64 kB / 446.2 MB, free: 30.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.303e-05/0.2977, allocations: 26.06 kB / 446.2 MB, free: 30.96 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002824/0.298, allocations: 325.5 kB / 446.5 MB, free: 30.81 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.298, allocations: 2.906 kB / 446.5 MB, free: 30.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006074/0.2987, allocations: 235.2 kB / 446.8 MB, free: 30.75 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.003398/0.3021, allocations: 1.969 MB / 448.7 MB, free: 29.6 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001513/0.3036, allocations: 0.8408 MB / 449.6 MB, free: 29.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3036, allocations: 3.469 kB / 449.6 MB, free: 29.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006065/0.3042, allocations: 492 kB / 450.1 MB, free: 28.92 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006691/0.3049, allocations: 130 kB / 450.2 MB, free: 28.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00769/0.3126, allocations: 5.993 MB / 456.2 MB, free: 25.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003869/0.313, allocations: 0.9355 MB / 457.1 MB, free: 24.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003946/0.3134, allocations: 95 kB / 457.2 MB, free: 24.5 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003205/0.3137, allocations: 291.5 kB / 457.5 MB, free: 24.29 MB / 350.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3137, allocations: 0 / 457.5 MB, free: 24.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04031/0.3541, allocations: 15.07 MB / 472.6 MB, free: 22.61 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001499/0.3542, allocations: 211.8 kB / 472.8 MB, free: 22.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.036/2.39, allocations: 0 / 472.8 MB, free: 22.36 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)