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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007914/0.0007914, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.882/0.882, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo): time 0.01683/0.01683, allocations: 4.222 MB / 263.4 MB, free: 9.148 MB / 250.7 MB " [Timeout remaining time 180] Using package PhotoVoltaics with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.444e-06/2.444e-06, allocations: 0 / 391.7 MB, free: 6.074 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.766e-05/3.011e-05, allocations: 2.281 kB / 391.7 MB, free: 6.07 MB / 362.7 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMPDC): time 0.004383/0.004413, allocations: 4.671 MB / 396.4 MB, free: 1.367 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.002362/0.006775, allocations: 1.783 MB / 398.2 MB, free: 15.58 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003122/0.007088, allocations: 11.94 kB / 398.2 MB, free: 15.57 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005012/0.007589, allocations: 266.1 kB / 398.4 MB, free: 15.3 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005188/0.008108, allocations: 321.6 kB / 398.7 MB, free: 14.99 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004249/0.008532, allocations: 331.2 kB / 399.1 MB, free: 14.66 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007809/0.009313, allocations: 1.14 MB / 400.2 MB, free: 13.52 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003437/0.009657, allocations: 295.4 kB / 400.5 MB, free: 13.21 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006425/0.0103, allocations: 0.6626 MB / 401.2 MB, free: 12.54 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003963/0.0107, allocations: 418.8 kB / 401.6 MB, free: 12.13 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000101/0.0108, allocations: 112 kB / 401.7 MB, free: 12.02 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001775/0.01097, allocations: 183.9 kB / 401.9 MB, free: 11.84 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001115/0.01109, allocations: 231.1 kB / 402.1 MB, free: 11.62 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002484/0.01133, allocations: 347.1 kB / 402.4 MB, free: 11.28 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008668/0.0122, allocations: 1.246 MB / 403.7 MB, free: 10.03 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.0122, allocations: 4 kB / 403.7 MB, free: 10.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.0122, allocations: 0 / 403.7 MB, free: 10.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.945e-05/0.01222, allocations: 0 / 403.7 MB, free: 10.02 MB / 378.7 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.001766/0.01399, allocations: 1.237 MB / 404.9 MB, free: 8.742 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.355e-05/0.01402, allocations: 8.031 kB / 404.9 MB, free: 8.734 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.779e-05/0.01412, allocations: 118.7 kB / 405 MB, free: 8.609 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001192/0.01424, allocations: 100.3 kB / 405.1 MB, free: 8.512 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009526/0.01519, allocations: 0.5892 MB / 405.7 MB, free: 7.891 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.596e-05/0.01523, allocations: 58 kB / 405.8 MB, free: 7.836 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.301e-05/0.0153, allocations: 71.94 kB / 405.8 MB, free: 7.766 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008947/0.0162, allocations: 0.8858 MB / 406.7 MB, free: 6.828 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.01621, allocations: 0 / 406.7 MB, free: 6.828 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.632e-05/0.01626, allocations: 36 kB / 406.8 MB, free: 6.793 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.253e-05/0.01627, allocations: 20 kB / 406.8 MB, free: 6.773 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007965/0.01707, allocations: 0.663 MB / 407.4 MB, free: 6.102 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002723/0.01979, allocations: 2.455 MB / 409.9 MB, free: 3.535 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008034/0.0206, allocations: 0.5502 MB / 410.4 MB, free: 2.969 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000329/0.02093, allocations: 269.5 kB / 410.7 MB, free: 2.691 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.268e-05/0.021, allocations: 12.36 kB / 410.7 MB, free: 2.68 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004636/0.02146, allocations: 0.5037 MB / 411.2 MB, free: 2.125 MB / 378.7 MB Notification: Performance of pre-optimization done (n=56): time 2.354e-06/0.02146, allocations: 3.938 kB / 411.2 MB, free: 2.121 MB / 378.7 MB Notification: Performance of matching and sorting (n=56): time 0.00157/0.02303, allocations: 1.111 MB / 412.3 MB, free: 0.957 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.174e-05/0.02311, allocations: 204.4 kB / 412.5 MB, free: 0.7109 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003355/0.02344, allocations: 461.9 kB / 413 MB, free: 256 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.278e-05/0.02347, allocations: 41.69 kB / 413 MB, free: 208 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001784/0.02365, allocations: 376.5 kB / 413.4 MB, free: 15.83 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001001/0.02375, allocations: 186.5 kB / 413.6 MB, free: 15.64 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001393/0.02389, allocations: 142.6 kB / 413.7 MB, free: 15.5 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.024, allocations: 366.8 kB / 414.1 MB, free: 15.13 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003174/0.02431, allocations: 273.3 kB / 414.3 MB, free: 14.85 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000372/0.02469, allocations: 421.3 kB / 414.8 MB, free: 14.37 MB / 394.7 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.006929/0.03162, allocations: 2.869 MB / 417.6 MB, free: 11.4 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.03162, allocations: 0 / 417.6 MB, free: 11.4 MB / 394.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001062/0.03268, allocations: 0.8869 MB / 418.5 MB, free: 10.48 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.849e-05/0.03272, allocations: 59.41 kB / 418.6 MB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.03273, allocations: 4 kB / 418.6 MB, free: 10.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002135/0.03294, allocations: 80.78 kB / 418.7 MB, free: 10.33 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003805/0.03332, allocations: 171.8 kB / 418.8 MB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009101/0.03423, allocations: 1.463 MB / 420.3 MB, free: 8.582 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002991/0.03453, allocations: 83.66 kB / 420.4 MB, free: 8.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.803e-05/0.03457, allocations: 35.91 kB / 420.4 MB, free: 8.465 MB / 394.7 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.0002767/0.03485, allocations: 288.7 kB / 420.7 MB, free: 8.164 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.75e-05/0.03491, allocations: 63.62 kB / 420.7 MB, free: 8.102 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001123/0.03604, allocations: 1.011 MB / 421.8 MB, free: 7.039 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.792e-06/0.03604, allocations: 11.98 kB / 421.8 MB, free: 7.027 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.03605, allocations: 0 / 421.8 MB, free: 7.027 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.744e-06/0.03605, allocations: 7.984 kB / 421.8 MB, free: 7.02 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00199/0.03804, allocations: 1.648 MB / 423.4 MB, free: 5.285 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.03805, allocations: 0 / 423.4 MB, free: 5.285 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002388/0.03828, allocations: 107.8 kB / 423.5 MB, free: 5.18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003313/0.03862, allocations: 284.1 kB / 423.8 MB, free: 4.887 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.248e-05/0.03865, allocations: 19.98 kB / 423.8 MB, free: 4.867 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005978/0.03925, allocations: 0.8852 MB / 424.7 MB, free: 3.938 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.03925, allocations: 4.031 kB / 424.7 MB, free: 3.934 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001441/0.04069, allocations: 1.389 MB / 426.1 MB, free: 2.48 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001675/0.04086, allocations: 119.4 kB / 426.2 MB, free: 2.363 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.874e-05/0.04092, allocations: 19.98 kB / 426.2 MB, free: 2.344 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002333/0.04115, allocations: 31.98 kB / 426.3 MB, free: 2.312 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.955e-05/0.04123, allocations: 48.41 kB / 426.3 MB, free: 2.266 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.191e-05/0.04126, allocations: 27.98 kB / 426.3 MB, free: 2.238 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002492/0.04151, allocations: 330.9 kB / 426.7 MB, free: 1.918 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.04151, allocations: 4 kB / 426.7 MB, free: 1.914 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004415/0.04195, allocations: 231.5 kB / 426.9 MB, free: 1.688 MB / 394.7 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.001806/0.04376, allocations: 1.969 MB / 428.9 MB, free: 15.64 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001074/0.04483, allocations: 0.9155 MB / 429.8 MB, free: 14.66 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.04483, allocations: 0 / 429.8 MB, free: 14.66 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007023/0.04554, allocations: 476.8 kB / 430.3 MB, free: 14.16 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004506/0.04599, allocations: 134.4 kB / 430.4 MB, free: 14.03 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005744/0.05173, allocations: 5.784 MB / 436.2 MB, free: 7.965 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000211/0.05194, allocations: 340 kB / 436.5 MB, free: 7.605 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0002328/0.05217, allocations: 92.95 kB / 436.6 MB, free: 7.512 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000291/0.05247, allocations: 292.4 kB / 436.9 MB, free: 7.227 MB / 410.7 MB Notification: Performance of SimCode: time 1.092e-06/0.05247, allocations: 3.938 kB / 436.9 MB, free: 7.223 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1662/0.2187, allocations: 16.48 MB / 453.4 MB, free: 92.29 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.149/8.368, allocations: 8.484 kB / 453.4 MB, free: 92.29 MB / 410.7 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC_res.csv --start-time 0 --stop-time 86400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMPDC.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMPDC.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.234145525842905] Failed to read output from testmodel.py, exit status != 0: 8.465077126398683 8.471784997 8.45812166 Calling exit ...