Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SolarPyramidBatteryCharge.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: translateModel(PhotoVoltaics.Examples.SolarPyramidBatteryCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SolarPyramidBatteryCharge") translateModel(PhotoVoltaics.Examples.SolarPyramidBatteryCharge,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SolarPyramidBatteryCharge") [: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.001774/0.001774, allocations: 179.4 kB / 7.457 MB, free: 2.504 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.071/1.071, allocations: 221.4 MB / 229.3 MB, free: 3.008 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.0008382/0.0008379, allocations: 100.8 kB / 280.1 MB, free: 1.316 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02257/0.02257, allocations: 5.292 MB / 336.2 MB, free: 9.289 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.67e-06/5.7e-06, allocations: 0 / 393.8 MB, free: 71.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07967/0.07969, allocations: 51.61 MB / 445.4 MB, free: 19.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2394/0.3191, allocations: 90.19 MB / 0.523 GB, free: 11.62 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002008/0.3194, allocations: 69.97 kB / 0.5231 GB, free: 11.59 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.1746/0.494, allocations: 70.88 MB / 0.5923 GB, free: 11.83 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000189/0.4942, allocations: 52 kB / 0.5924 GB, free: 11.78 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 702 * Number of variables: 702 Notification: Performance of Generate backend data structure: time 0.007511/0.5017, allocations: 2.824 MB / 0.5951 GB, free: 8.871 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.5018, allocations: 8.031 kB / 0.5951 GB, free: 8.863 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001486/0.5033, allocations: 339.9 kB / 0.5955 GB, free: 8.527 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002773/0.5061, allocations: 1.674 MB / 0.5971 GB, free: 6.801 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.047e-05/0.5062, allocations: 92 kB / 0.5972 GB, free: 6.711 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000323/0.5065, allocations: 160 kB / 0.5973 GB, free: 6.555 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004566/0.5111, allocations: 2.49 MB / 0.5998 GB, free: 4.059 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004162/0.5152, allocations: 2.576 MB / 0.6023 GB, free: 1.367 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.488e-05/0.5153, allocations: 0 / 0.6023 GB, free: 1.367 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002079/0.5155, allocations: 12 kB / 0.6023 GB, free: 1.355 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.862e-05/0.5156, allocations: 71.91 kB / 0.6024 GB, free: 1.285 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01675/0.5323, allocations: 12.46 MB / 0.6145 GB, free: 4.504 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002436/0.5348, allocations: 1.528 MB / 0.616 GB, free: 2.969 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001258/0.5361, allocations: 0.8722 MB / 0.6169 GB, free: 2.09 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.22e-05/0.5362, allocations: 16.98 kB / 0.6169 GB, free: 2.074 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001211/0.5374, allocations: 0.8853 MB / 0.6178 GB, free: 1.148 MB / 426.7 MB Notification: Performance of pre-optimization done (n=138): time 3.447e-06/0.5374, allocations: 0 / 0.6178 GB, free: 1.148 MB / 426.7 MB Notification: Performance of matching and sorting (n=138): time 0.01052/0.5479, allocations: 2.715 MB / 0.6204 GB, free: 14.41 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001408/0.5481, allocations: 298.3 kB / 0.6207 GB, free: 14.06 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002275/0.5504, allocations: 1.406 MB / 0.6221 GB, free: 12.65 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001657/0.5505, allocations: 37.7 kB / 0.6221 GB, free: 12.61 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00085/0.5514, allocations: 1.005 MB / 0.6231 GB, free: 11.59 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003927/0.5518, allocations: 433.7 kB / 0.6235 GB, free: 11.16 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.5519, allocations: 4 kB / 0.6235 GB, free: 11.15 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.5521, allocations: 373.9 kB / 0.6239 GB, free: 10.78 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/0.5533, allocations: 0.7108 MB / 0.6246 GB, free: 10.07 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001384/0.5547, allocations: 1.097 MB / 0.6256 GB, free: 8.812 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001332/0.556, allocations: 0.8531 MB / 0.6265 GB, free: 7.961 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.556, allocations: 0 / 0.6265 GB, free: 7.961 MB / 442.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.004564/0.5606, allocations: 2.322 MB / 0.6287 GB, free: 5.617 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.5606, allocations: 8.531 kB / 0.6287 GB, free: 5.609 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.837e-05/0.5607, allocations: 15.91 kB / 0.6287 GB, free: 5.594 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001857/0.5625, allocations: 363.1 kB / 0.6291 GB, free: 5.227 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002174/0.5647, allocations: 487.2 kB / 0.6296 GB, free: 4.75 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1284/0.6932, allocations: 6.146 MB / 0.6356 GB, free: 158 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002671/0.6959, allocations: 199.8 kB / 0.6358 GB, free: 158 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001706/0.6961, allocations: 96.02 kB / 0.6358 GB, free: 158 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 44 ($PRE.solarPyramid.dcConverter4.mpTracker.signv,solarPyramid.dcConverter4.mpTracker.signv,$PRE.solarPyramid.dcConverter4.mpTracker.firstTrigger,solarPyramid.dcConverter4.mpTracker.firstTrigger,$PRE.solarPyramid.dcConverter4.mpTracker.counter,solarPyramid.dcConverter4.mpTracker.counter,$PRE.solarPyramid.dcConverter3.mpTracker.signv,solarPyramid.dcConverter3.mpTracker.signv,$PRE.solarPyramid.dcConverter3.mpTracker.firstTrigger,solarPyramid.dcConverter3.mpTracker.firstTrigger,$PRE.solarPyramid.dcConverter3.mpTracker.counter,solarPyramid.dcConverter3.mpTracker.counter,$PRE.solarPyramid.dcConverter2.mpTracker.signv,solarPyramid.dcConverter2.mpTracker.signv,$PRE.solarPyramid.dcConverter2.mpTracker.firstTrigger,solarPyramid.dcConverter2.mpTracker.firstTrigger,$PRE.solarPyramid.dcConverter2.mpTracker.counter,solarPyramid.dcConverter2.mpTracker.counter,$PRE.solarPyramid.dcConverter1.mpTracker.signv,solarPyramid.dcConverter1.mpTracker.signv,$PRE.solarPyramid.dcConverter1.mpTracker.firstTrigger,solarPyramid.dcConverter1.mpTracker.firstTrigger,$PRE.solarPyramid.dcConverter1.mpTracker.counter,solarPyramid.dcConverter1.mpTracker.counter,$whenCondition4,solarPyramid.dcConverter4.mpTracker.sampleTrigger,$whenCondition3,solarPyramid.dcConverter3.mpTracker.sampleTrigger,$whenCondition2,solarPyramid.dcConverter2.mpTracker.sampleTrigger,$whenCondition1,solarPyramid.dcConverter1.mpTracker.sampleTrigger,$PRE.solarPyramid.dcConverter1.mpTracker.vRef,solarPyramid.dcConverter1.mpTracker.vRef,$PRE.solarPyramid.dcConverter2.mpTracker.vRef,solarPyramid.dcConverter2.mpTracker.vRef,$PRE.solarPyramid.dcConverter3.mpTracker.vRef,solarPyramid.dcConverter3.mpTracker.vRef,$PRE.solarPyramid.dcConverter4.mpTracker.vRef,solarPyramid.dcConverter4.mpTracker.vRef,solarPyramid.dcConverter4.converter.integrator.local_reset,solarPyramid.dcConverter3.converter.integrator.local_reset,solarPyramid.dcConverter2.converter.integrator.local_reset,solarPyramid.dcConverter1.converter.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (230): * Single equations (assignments): 222 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {2,2,2,2} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004909/0.6966, allocations: 328.7 kB / 0.6362 GB, free: 157.8 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002622/0.6968, allocations: 185.7 kB / 0.6363 GB, free: 157.8 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01033/0.7072, allocations: 2.999 MB / 0.6393 GB, free: 157.7 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.7072, allocations: 14.44 kB / 0.6393 GB, free: 157.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.7072, allocations: 3.75 kB / 0.6393 GB, free: 157.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.093e-05/0.7072, allocations: 3.797 kB / 0.6393 GB, free: 157.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00871/0.7159, allocations: 5.28 MB / 0.6444 GB, free: 157.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.391e-06/0.716, allocations: 0 / 0.6444 GB, free: 157.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007827/0.7168, allocations: 182.2 kB / 0.6446 GB, free: 157.2 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009445/0.7262, allocations: 2.57 MB / 0.6471 GB, free: 157 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001615/0.7264, allocations: 40.53 kB / 0.6472 GB, free: 157 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003064/0.7295, allocations: 3.649 MB / 0.6507 GB, free: 155 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.7295, allocations: 3.609 kB / 0.6507 GB, free: 155 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008615/0.7381, allocations: 3.641 MB / 0.6543 GB, free: 154.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009694/0.7391, allocations: 0.6111 MB / 0.6549 GB, free: 154.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003467/0.7394, allocations: 30.94 kB / 0.6549 GB, free: 154.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001388/0.7408, allocations: 118.8 kB / 0.655 GB, free: 154.4 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001511/0.741, allocations: 75.2 kB / 0.6551 GB, free: 154.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001186/0.7411, allocations: 64.16 kB / 0.6552 GB, free: 154.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001375/0.7425, allocations: 1.046 MB / 0.6562 GB, free: 154.3 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001668/0.7442, allocations: 0.6765 MB / 0.6568 GB, free: 154.2 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (solarPyramid.dcConverter1.converter.integrator.y,solarPyramid.dcConverter2.converter.integrator.y,solarPyramid.dcConverter3.converter.integrator.y,solarPyramid.dcConverter4.converter.integrator.y) * Number of discrete variables: 24 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,solarPyramid.dcConverter1.mpTracker.firstTrigger,solarPyramid.dcConverter1.mpTracker.sampleTrigger,solarPyramid.dcConverter1.mpTracker.counter,solarPyramid.dcConverter1.mpTracker.signv,solarPyramid.dcConverter1.mpTracker.vRef,solarPyramid.dcConverter2.mpTracker.firstTrigger,solarPyramid.dcConverter2.mpTracker.sampleTrigger,solarPyramid.dcConverter2.mpTracker.counter,solarPyramid.dcConverter2.mpTracker.signv,solarPyramid.dcConverter2.mpTracker.vRef,solarPyramid.dcConverter3.mpTracker.firstTrigger,solarPyramid.dcConverter3.mpTracker.sampleTrigger,solarPyramid.dcConverter3.mpTracker.counter,solarPyramid.dcConverter3.mpTracker.signv,solarPyramid.dcConverter3.mpTracker.vRef,solarPyramid.dcConverter4.mpTracker.firstTrigger,solarPyramid.dcConverter4.mpTracker.sampleTrigger,solarPyramid.dcConverter4.mpTracker.counter,solarPyramid.dcConverter4.mpTracker.signv,solarPyramid.dcConverter4.mpTracker.vRef) * Number of discrete states: 28 (solarPyramid.dcConverter3.mpTracker.signv,solarPyramid.dcConverter3.mpTracker.vRef,solarPyramid.dcConverter3.mpTracker.firstTrigger,solarPyramid.dcConverter3.mpTracker.counter,$whenCondition3,solarPyramid.dcConverter3.mpTracker.sampleTrigger,solarPyramid.dcConverter3.mpTracker.power,solarPyramid.dcConverter2.mpTracker.signv,solarPyramid.dcConverter2.mpTracker.vRef,solarPyramid.dcConverter2.mpTracker.firstTrigger,solarPyramid.dcConverter2.mpTracker.counter,$whenCondition2,solarPyramid.dcConverter2.mpTracker.sampleTrigger,solarPyramid.dcConverter2.mpTracker.power,solarPyramid.dcConverter1.mpTracker.signv,solarPyramid.dcConverter1.mpTracker.vRef,solarPyramid.dcConverter1.mpTracker.firstTrigger,solarPyramid.dcConverter1.mpTracker.counter,$whenCondition1,solarPyramid.dcConverter1.mpTracker.sampleTrigger,solarPyramid.dcConverter1.mpTracker.power,solarPyramid.dcConverter4.mpTracker.signv,solarPyramid.dcConverter4.mpTracker.vRef,solarPyramid.dcConverter4.mpTracker.firstTrigger,solarPyramid.dcConverter4.mpTracker.counter,$whenCondition4,solarPyramid.dcConverter4.mpTracker.sampleTrigger,solarPyramid.dcConverter4.mpTracker.power) * Top-level inputs: 0 Notification: Strong component statistics for simulation (101): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 5,1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003794/0.7446, allocations: 227.4 kB / 0.6571 GB, free: 154.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003027/0.7476, allocations: 2.279 MB / 0.6593 GB, free: 153.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.287e-06/0.7476, allocations: 1.625 kB / 0.6593 GB, free: 153.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001362/0.749, allocations: 1.052 MB / 0.6603 GB, free: 153.4 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001176/0.7502, allocations: 266.7 kB / 0.6606 GB, free: 153.4 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005606/0.7558, allocations: 3.061 MB / 0.6636 GB, free: 152.5 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001359/0.7572, allocations: 1.774 MB / 0.6653 GB, free: 151.8 MB / 442.7 MB Notification: Performance of SimCode: time 6.91e-07/0.7572, allocations: 0 / 0.6653 GB, free: 151.8 MB / 442.7 MB Notification: Performance of Templates: time 0.04391/0.8011, allocations: 28.26 MB / 0.6929 GB, free: 145.5 MB / 442.7 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SolarPyramidBatteryCharge.makefile (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SolarPyramidBatteryCharge.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SolarPyramidBatteryCharge.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SolarPyramidBatteryCharge.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SolarPyramidBatteryCharge.sim & ./PhotoVoltaics_PhotoVoltaics.Examples.SolarPyramidBatteryCharge -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SolarPyramidBatteryCharge.pipe 2>&1)