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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002429/0.002428, allocations: 175.4 kB / 7.648 MB, free: 1.434 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.608/1.608, allocations: 221.5 MB / 229.6 MB, free: 7.586 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.00109/0.00109, allocations: 91.67 kB / 280.5 MB, free: 5.336 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02354/0.02354, allocations: 5.291 MB / 336.5 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.491e-05/1.493e-05, allocations: 0 / 394.4 MB, free: 36 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3368/0.3368, allocations: 51.6 MB / 446 MB, free: 13.08 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1587/0.4956, allocations: 90.27 MB / 0.5237 GB, free: 2.676 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003047/0.496, allocations: 71.97 kB / 0.5237 GB, free: 2.605 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5233/1.019, allocations: 70.83 MB / 0.5929 GB, free: 29.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.134e-06/1.019, allocations: 0 / 0.5929 GB, free: 29.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001554/1.02, allocations: 52 kB / 0.593 GB, free: 29.13 MB / 362.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.007394/1.027, allocations: 2.749 MB / 0.5956 GB, free: 26.3 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.37e-05/1.027, allocations: 16.02 kB / 0.5957 GB, free: 26.29 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001072/1.028, allocations: 339.9 kB / 0.596 GB, free: 25.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00262/1.031, allocations: 1.651 MB / 0.5976 GB, free: 24.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.443e-05/1.031, allocations: 88 kB / 0.5977 GB, free: 24.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003052/1.031, allocations: 168 kB / 0.5978 GB, free: 24 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004471/1.036, allocations: 2.494 MB / 0.6003 GB, free: 21.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004131/1.04, allocations: 2.572 MB / 0.6028 GB, free: 18.81 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.655e-05/1.04, allocations: 3.938 kB / 0.6028 GB, free: 18.81 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002014/1.04, allocations: 8 kB / 0.6028 GB, free: 18.8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.38e-05/1.04, allocations: 67.94 kB / 0.6029 GB, free: 18.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01722/1.057, allocations: 12.5 MB / 0.6151 GB, free: 5.914 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003041/1.06, allocations: 3.541 MB / 0.6185 GB, free: 1.953 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001194/1.062, allocations: 0.9106 MB / 0.6194 GB, free: 1.039 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.541e-05/1.062, allocations: 25.22 kB / 0.6194 GB, free: 1.016 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001099/1.063, allocations: 0.8751 MB / 0.6203 GB, free: 108 kB / 362.7 MB Notification: Performance of pre-optimization done (n=138): time 3.106e-06/1.063, allocations: 0 / 0.6203 GB, free: 108 kB / 362.7 MB Notification: Performance of matching and sorting (n=138): time 0.01209/1.075, allocations: 2.746 MB / 0.623 GB, free: 13.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002612/1.075, allocations: 310.3 kB / 0.6233 GB, free: 12.97 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004512/1.08, allocations: 1.398 MB / 0.6246 GB, free: 11.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004861/1.08, allocations: 41.69 kB / 0.6247 GB, free: 11.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002039/1.082, allocations: 1.24 MB / 0.6259 GB, free: 10.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009815/1.083, allocations: 433.7 kB / 0.6263 GB, free: 9.836 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003936/1.084, allocations: 8 kB / 0.6263 GB, free: 9.828 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000327/1.084, allocations: 369.9 kB / 0.6267 GB, free: 9.461 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002412/1.087, allocations: 0.7069 MB / 0.6273 GB, free: 8.754 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00268/1.089, allocations: 1.081 MB / 0.6284 GB, free: 7.512 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002604/1.092, allocations: 0.8452 MB / 0.6292 GB, free: 6.668 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.927e-05/1.092, allocations: 0 / 0.6292 GB, free: 6.668 MB / 378.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.008958/1.101, allocations: 2.318 MB / 0.6315 GB, free: 4.328 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001543/1.101, allocations: 122.8 kB / 0.6316 GB, free: 4.184 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.999e-05/1.101, allocations: 12 kB / 0.6316 GB, free: 4.172 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002455/1.104, allocations: 363.6 kB / 0.632 GB, free: 3.805 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003205/1.107, allocations: 479.2 kB / 0.6324 GB, free: 3.336 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009214/1.116, allocations: 6.181 MB / 0.6385 GB, free: 12.69 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003559/1.12, allocations: 198.4 kB / 0.6387 GB, free: 12.49 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000665/1.12, allocations: 91.92 kB / 0.6387 GB, free: 12.4 MB / 394.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.001225/1.122, allocations: 331.3 kB / 0.6391 GB, free: 12.05 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009588/1.123, allocations: 181.8 kB / 0.6392 GB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01187/1.134, allocations: 3.049 MB / 0.6422 GB, free: 8.789 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.57e-05/1.135, allocations: 12 kB / 0.6422 GB, free: 8.777 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.287e-06/1.135, allocations: 0 / 0.6422 GB, free: 8.777 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.216e-05/1.135, allocations: 7.969 kB / 0.6422 GB, free: 8.77 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01943/1.154, allocations: 5.89 MB / 0.648 GB, free: 2.801 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.998e-05/1.154, allocations: 4 kB / 0.648 GB, free: 2.797 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009627/1.155, allocations: 171.7 kB / 0.6481 GB, free: 2.629 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009657/1.165, allocations: 2.512 MB / 0.6506 GB, free: 80 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003147/1.165, allocations: 43.91 kB / 0.6506 GB, free: 36 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004675/1.17, allocations: 3.728 MB / 0.6543 GB, free: 12.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.15e-05/1.17, allocations: 3.938 kB / 0.6543 GB, free: 12.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01285/1.183, allocations: 3.987 MB / 0.6582 GB, free: 8.145 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001903/1.185, allocations: 0.5902 MB / 0.6588 GB, free: 7.523 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009755/1.186, allocations: 36 kB / 0.6588 GB, free: 7.488 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001994/1.188, allocations: 111.9 kB / 0.6589 GB, free: 7.379 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002659/1.188, allocations: 85.12 kB / 0.659 GB, free: 7.297 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000177/1.188, allocations: 67.88 kB / 0.659 GB, free: 7.23 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002833/1.191, allocations: 1.049 MB / 0.6601 GB, free: 6.188 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.51e-07/1.191, allocations: 0 / 0.6601 GB, free: 6.188 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003581/1.195, allocations: 0.6768 MB / 0.6607 GB, free: 5.508 MB / 410.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.0006324/1.195, allocations: 221.8 kB / 0.6609 GB, free: 5.277 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005267/1.201, allocations: 2.395 MB / 0.6633 GB, free: 2.781 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/1.201, allocations: 2.062 kB / 0.6633 GB, free: 2.781 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002255/1.203, allocations: 1.174 MB / 0.6644 GB, free: 1.559 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002584/1.206, allocations: 277.5 kB / 0.6647 GB, free: 1.285 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009534/1.215, allocations: 2.974 MB / 0.6676 GB, free: 14.26 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002438/1.218, allocations: 1.618 MB / 0.6692 GB, free: 12.61 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001789/1.219, allocations: 197.8 kB / 0.6694 GB, free: 12.41 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009944/1.22, allocations: 139.3 kB / 0.6695 GB, free: 12.27 MB / 426.7 MB Notification: Performance of SimCode: time 2.495e-06/1.22, allocations: 0 / 0.6695 GB, free: 12.27 MB / 426.7 MB Notification: Performance of Templates: time 0.3836/1.604, allocations: 27.35 MB / 0.6962 GB, free: 103.9 MB / 426.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)