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.005335/0.005335, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001232/0.001232, allocations: 195.1 kB / 16.67 MB, free: 5.977 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1401/0.1401, allocations: 5.39 MB / 295.9 MB, free: 2.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002249/0.002249, allocations: 55.91 kB / 412.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.2842, allocations: 50.62 MB / 462.9 MB, free: 21.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.005499/0.2897, allocations: 5.152 MB / 468.1 MB, free: 17.66 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003453/0.2932, allocations: 1.874 MB / 469.9 MB, free: 16.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007239/0.294, allocations: 18.78 kB / 470 MB, free: 16.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007897/0.2948, allocations: 292 kB / 470.2 MB, free: 16.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000784/0.2956, allocations: 289.7 kB / 470.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007573/0.2964, allocations: 314.3 kB / 470.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001203/0.2976, allocations: 1.117 MB / 472 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000554/0.2981, allocations: 444.4 kB / 472.4 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006154/0.2988, allocations: 447.4 kB / 472.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000697/0.2995, allocations: 0.5299 MB / 473.4 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001646/0.2996, allocations: 112.5 kB / 473.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003358/0.3, allocations: 176.4 kB / 473.6 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001659/0.3002, allocations: 230.6 kB / 473.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004088/0.3006, allocations: 0.4894 MB / 474.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001261/0.3019, allocations: 1.181 MB / 475.5 MB, free: 13.47 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3019, allocations: 2.344 kB / 475.5 MB, free: 13.47 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.3019, allocations: 0 / 475.5 MB, free: 13.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.891e-05/0.3019, allocations: 0 / 475.5 MB, free: 13.47 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.002935/0.3048, allocations: 1.295 MB / 476.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.3049, allocations: 9.891 kB / 476.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001387/0.305, allocations: 122 kB / 477 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001787/0.3052, allocations: 94.94 kB / 477.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001324/0.3066, allocations: 0.6509 MB / 477.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.791e-05/0.3066, allocations: 56.38 kB / 477.8 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000105/0.3067, allocations: 72.84 kB / 477.8 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00131/0.308, allocations: 0.7832 MB / 478.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/0.3081, allocations: 1.094 kB / 478.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.669e-05/0.3081, allocations: 27.97 kB / 478.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.756e-05/0.3082, allocations: 21.44 kB / 478.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001173/0.3094, allocations: 0.5992 MB / 479.3 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003547/0.3129, allocations: 2.735 MB / 482 MB, free: 9.129 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001315/0.3142, allocations: 0.9058 MB / 482.9 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004874/0.3147, allocations: 247.4 kB / 483.1 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001022/0.3149, allocations: 92.08 kB / 483.2 MB, free: 8.148 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006105/0.3155, allocations: 382 kB / 483.6 MB, free: 7.863 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.625e-06/0.3155, allocations: 0 / 483.6 MB, free: 7.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.002884/0.3184, allocations: 1.06 MB / 484.7 MB, free: 7.262 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.025e-05/0.3185, allocations: 206.7 kB / 484.9 MB, free: 7.027 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005894/0.3191, allocations: 458.3 kB / 485.3 MB, free: 6.742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.131e-05/0.3191, allocations: 42 kB / 485.4 MB, free: 6.699 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002371/0.3194, allocations: 362 kB / 485.7 MB, free: 6.383 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001465/0.3195, allocations: 192.6 kB / 485.9 MB, free: 6.215 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002155/0.3198, allocations: 135.4 kB / 486 MB, free: 6.125 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.3199, allocations: 367.2 kB / 486.4 MB, free: 5.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004864/0.3204, allocations: 220.3 kB / 486.6 MB, free: 5.664 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005279/0.3209, allocations: 367 kB / 487 MB, free: 5.383 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.01157/0.3325, allocations: 2.385 MB / 489.3 MB, free: 4.043 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.826e-06/0.3325, allocations: 5.25 kB / 489.4 MB, free: 4.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001754/0.3343, allocations: 0.8142 MB / 490.2 MB, free: 3.594 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.759e-05/0.3343, allocations: 65.02 kB / 490.2 MB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.3343, allocations: 4.125 kB / 490.2 MB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004559/0.3348, allocations: 81.03 kB / 490.3 MB, free: 3.496 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007814/0.3356, allocations: 168.7 kB / 490.5 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00121/0.3368, allocations: 1.578 MB / 492.1 MB, free: 1.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007245/0.3376, allocations: 74.62 kB / 492.1 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.701e-05/0.3376, allocations: 33.86 kB / 492.2 MB, free: 1.797 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.000408/0.338, allocations: 292.2 kB / 492.4 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.3382, allocations: 61.62 kB / 492.5 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001765/0.3399, allocations: 0.9416 MB / 493.4 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.037e-06/0.34, allocations: 6.406 kB / 493.5 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-06/0.34, allocations: 0 / 493.5 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.34, allocations: 3.984 kB / 493.5 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004113/0.3441, allocations: 1.837 MB / 495.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3441, allocations: 1.125 kB / 495.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000467/0.3446, allocations: 101.1 kB / 495.4 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005449/0.3451, allocations: 262.7 kB / 495.7 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.991e-05/0.3452, allocations: 27.42 kB / 495.7 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009978/0.3462, allocations: 0.8122 MB / 496.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/0.3462, allocations: 7.922 kB / 496.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003729/0.35, allocations: 1.381 MB / 497.9 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002975/0.3503, allocations: 192.2 kB / 498.1 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000114/0.3504, allocations: 16 kB / 498.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005469/0.351, allocations: 43.95 kB / 498.1 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001225/0.3511, allocations: 52.38 kB / 498.2 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.742e-05/0.3511, allocations: 23.98 kB / 498.2 MB, free: 12.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003911/0.3515, allocations: 330.9 kB / 498.5 MB, free: 12.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3516, allocations: 0 / 498.5 MB, free: 12.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008142/0.3524, allocations: 227.3 kB / 498.7 MB, free: 12.41 MB / 366.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.004133/0.3565, allocations: 1.974 MB / 0.489 GB, free: 10.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001661/0.3582, allocations: 0.8185 MB / 0.4898 GB, free: 9.531 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.3582, allocations: 7.938 kB / 0.4898 GB, free: 9.523 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007677/0.359, allocations: 490.7 kB / 0.4903 GB, free: 9.023 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007997/0.3598, allocations: 122.1 kB / 0.4904 GB, free: 8.902 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009178/0.369, allocations: 5.519 MB / 0.4958 GB, free: 3.172 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005561/0.3696, allocations: 0.9341 MB / 0.4967 GB, free: 2.207 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003808/0.37, allocations: 96.94 kB / 0.4968 GB, free: 2.109 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004235/0.3704, allocations: 295.3 kB / 0.4971 GB, free: 1.824 MB / 366.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3704, allocations: 4 kB / 0.4971 GB, free: 1.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04325/0.4137, allocations: 15.82 MB / 0.5125 GB, free: 2.176 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.23/12.65, allocations: 6.531 kB / 0.5125 GB, free: 2.172 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)