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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002241/0.002241, allocations: 179.1 kB / 7.457 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.098/1.098, allocations: 221.4 MB / 229.3 MB, free: 3.207 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008507/0.0008509, allocations: 96.52 kB / 280.1 MB, free: 1.301 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02313/0.02313, allocations: 5.296 MB / 336.2 MB, free: 9.266 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1836/0.2068, allocations: 59.6 MB / 395.8 MB, free: 69.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06623/0.273, allocations: 51.6 MB / 447.4 MB, free: 17.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2307/0.5038, allocations: 87.84 MB / 0.5227 GB, free: 12.42 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001954/0.504, allocations: 72.31 kB / 0.5228 GB, free: 12.39 MB / 346.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.06137/0.5654, allocations: 21.98 MB / 0.5442 GB, free: 10.07 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.5655, allocations: 16 kB / 0.5442 GB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002158/0.5657, allocations: 90.88 kB / 0.5443 GB, free: 9.961 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007887/0.5665, allocations: 496.8 kB / 0.5448 GB, free: 9.531 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.679e-05/0.5665, allocations: 31.94 kB / 0.5448 GB, free: 9.5 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/0.5667, allocations: 43.91 kB / 0.5449 GB, free: 9.457 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001119/0.5678, allocations: 0.6028 MB / 0.5455 GB, free: 9.082 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001049/0.5688, allocations: 0.6594 MB / 0.5461 GB, free: 8.578 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.416e-05/0.5689, allocations: 4 kB / 0.5461 GB, free: 8.574 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.187e-05/0.5689, allocations: 0 / 0.5461 GB, free: 8.574 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.569, allocations: 20 kB / 0.5461 GB, free: 8.555 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003995/0.573, allocations: 2.75 MB / 0.5488 GB, free: 6.316 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000514/0.5735, allocations: 310.8 kB / 0.5491 GB, free: 6.117 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004017/0.5739, allocations: 243.1 kB / 0.5493 GB, free: 5.969 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001234/0.574, allocations: 93.52 kB / 0.5494 GB, free: 5.855 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004526/0.5745, allocations: 395.5 kB / 0.5498 GB, free: 5.523 MB / 362.7 MB Notification: Performance of pre-optimization done (n=59): time 1.744e-06/0.5745, allocations: 0 / 0.5498 GB, free: 5.523 MB / 362.7 MB Notification: Performance of matching and sorting (n=59): time 0.003613/0.5781, allocations: 0.8695 MB / 0.5507 GB, free: 4.809 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.357e-05/0.5782, allocations: 225.4 kB / 0.5509 GB, free: 4.543 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000464/0.5787, allocations: 405.6 kB / 0.5513 GB, free: 4.242 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.759e-05/0.5788, allocations: 29.7 kB / 0.5513 GB, free: 4.207 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001579/0.5789, allocations: 306.7 kB / 0.5516 GB, free: 3.934 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001395/0.5791, allocations: 183.1 kB / 0.5517 GB, free: 3.777 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.79e-05/0.5791, allocations: 0 / 0.5517 GB, free: 3.777 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.5792, allocations: 371.5 kB / 0.5521 GB, free: 3.43 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003298/0.5796, allocations: 201.7 kB / 0.5523 GB, free: 3.32 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004186/0.58, allocations: 352.6 kB / 0.5526 GB, free: 3.016 MB / 362.7 MB Notification: It was not possible to analyze the given system symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.01237/0.5924, allocations: 2.025 MB / 0.5546 GB, free: 1.195 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/0.5924, allocations: 4 kB / 0.5546 GB, free: 1.191 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001698/0.5941, allocations: 0.7278 MB / 0.5553 GB, free: 0.6328 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.5941, allocations: 8.094 kB / 0.5553 GB, free: 0.625 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.5942, allocations: 7.984 kB / 0.5553 GB, free: 0.6172 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004916/0.5947, allocations: 92.06 kB / 0.5554 GB, free: 0.5273 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008852/0.5956, allocations: 182.7 kB / 0.5556 GB, free: 364 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001626/0.5972, allocations: 1.497 MB / 0.5571 GB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006943/0.5979, allocations: 63.55 kB / 0.5571 GB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.372e-05/0.598, allocations: 38.45 kB / 0.5572 GB, free: 14.72 MB / 378.7 MB Warning: Assuming redundant initial conditions for the following 1 initial equations: $PRE.irradiance.dayOfYear = PhotoVoltaics.Functions.dayOfTheYear(irradiance.startDay, irradiance.startMonth, irradiance.startYear) Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 22 ($PRE.irradiance.year,irradiance.year,$PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,$whenCondition2,$whenCondition3,$PRE.mpTracker.vRef,mpTracker.vRef,$PRE.irradiance.startDayOfYear,irradiance.startDayOfYear,$PRE.irradiance.dayOfYear,irradiance.dayOfYear,$PRE.irradiance.daysOfYear,irradiance.daysOfYear,irradiance.localDays,converter.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002565/0.5983, allocations: 211.4 kB / 0.5574 GB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000135/0.5984, allocations: 63.25 kB / 0.5574 GB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003963/0.6024, allocations: 1.081 MB / 0.5585 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.6024, allocations: 4 kB / 0.5585 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.6024, allocations: 4 kB / 0.5585 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.6024, allocations: 3.984 kB / 0.5585 GB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004819/0.6072, allocations: 1.878 MB / 0.5603 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.6073, allocations: 3.938 kB / 0.5603 GB, free: 12.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005466/0.6078, allocations: 102.9 kB / 0.5604 GB, free: 11.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002448/0.6103, allocations: 0.5438 MB / 0.561 GB, free: 11.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.02e-05/0.6103, allocations: 18.23 kB / 0.561 GB, free: 11.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008158/0.6112, allocations: 0.8369 MB / 0.5618 GB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.6112, allocations: 3.938 kB / 0.5618 GB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00405/0.6152, allocations: 1.358 MB / 0.5631 GB, free: 9.527 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004616/0.6199, allocations: 2.021 MB / 0.5651 GB, free: 7.477 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003531/0.6202, allocations: 216.1 kB / 0.5653 GB, free: 7.246 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000136/0.6204, allocations: 12.05 kB / 0.5653 GB, free: 7.234 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005483/0.6209, allocations: 39.98 kB / 0.5653 GB, free: 7.195 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.6211, allocations: 44.58 kB / 0.5654 GB, free: 7.152 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.5e-05/0.6211, allocations: 27.97 kB / 0.5654 GB, free: 7.125 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003808/0.6215, allocations: 322.9 kB / 0.5657 GB, free: 6.809 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001314/0.6228, allocations: 247.3 kB / 0.566 GB, free: 6.566 MB / 378.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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003349/0.6232, allocations: 193.6 kB / 0.5661 GB, free: 6.371 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001233/0.6244, allocations: 0.7197 MB / 0.5669 GB, free: 5.621 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.6244, allocations: 0 / 0.5669 GB, free: 5.621 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005957/0.625, allocations: 429.8 kB / 0.5673 GB, free: 5.191 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00054/0.6256, allocations: 90.36 kB / 0.5673 GB, free: 5.109 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001976/0.6276, allocations: 0.9921 MB / 0.5683 GB, free: 4.074 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007323/0.6283, allocations: 1.035 MB / 0.5693 GB, free: 3.012 MB / 378.7 MB Notification: Performance of SimCode: time 1.903e-06/0.6283, allocations: 4 kB / 0.5693 GB, free: 3.008 MB / 378.7 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)