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.005409/0.005409, allocations: 171.9 kB / 15.12 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 223.2 MB / 239 MB, free: 1.781 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.0008797/0.0008799, allocations: 99.22 kB / 290.2 MB, free: 13.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02443/0.02443, allocations: 5.398 MB / 346.7 MB, free: 5.574 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003177/0.0003178, allocations: 10.03 kB / 408.8 MB, free: 91.95 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09046/0.0908, allocations: 51.62 MB / 460.4 MB, free: 48.06 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3137/0.4045, allocations: 91.01 MB / 0.5385 GB, free: 20.64 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001783/0.4047, allocations: 74.16 kB / 0.5386 GB, free: 20.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1636/0.5684, allocations: 71.63 MB / 0.6085 GB, free: 13.67 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.5684, allocations: 0 / 0.6085 GB, free: 13.67 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001579/0.5686, allocations: 55.98 kB / 0.6086 GB, free: 13.61 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: 702 * Number of variables: 702 Notification: Performance of Generate backend data structure: time 0.0083/0.5769, allocations: 3.107 MB / 0.6116 GB, free: 10.66 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.577, allocations: 8.031 kB / 0.6116 GB, free: 10.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001107/0.5781, allocations: 343.9 kB / 0.6119 GB, free: 10.31 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003012/0.5811, allocations: 1.662 MB / 0.6136 GB, free: 9.219 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000153/0.5813, allocations: 210.1 kB / 0.6138 GB, free: 9.098 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004438/0.5817, allocations: 271.8 kB / 0.614 GB, free: 8.918 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006409/0.5881, allocations: 3.227 MB / 0.6172 GB, free: 6.168 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.36e-05/0.5882, allocations: 0 / 0.6172 GB, free: 6.168 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002729/0.5885, allocations: 112 kB / 0.6173 GB, free: 6.059 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.717e-05/0.5885, allocations: 68 kB / 0.6173 GB, free: 5.992 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00708/0.5956, allocations: 3.096 MB / 0.6204 GB, free: 2.883 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02036/0.616, allocations: 13.03 MB / 0.6331 GB, free: 5.508 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004857/0.6209, allocations: 3.833 MB / 0.6368 GB, free: 1.25 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.935e-05/0.621, allocations: 20.97 kB / 0.6369 GB, free: 1.23 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001792/0.6228, allocations: 1.032 MB / 0.6379 GB, free: 168 kB / 394.7 MB Notification: Performance of pre-optimization done (n=138): time 4.048e-06/0.6228, allocations: 0 / 0.6379 GB, free: 168 kB / 394.7 MB Notification: Performance of matching and sorting (n=138): time 0.02008/0.6429, allocations: 5.271 MB / 0.643 GB, free: 10.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001769/0.6431, allocations: 302.3 kB / 0.6433 GB, free: 10.41 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003177/0.6463, allocations: 1.755 MB / 0.645 GB, free: 8.621 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003013/0.6466, allocations: 57.7 kB / 0.6451 GB, free: 8.559 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001178/0.6478, allocations: 1.234 MB / 0.6463 GB, free: 7.309 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004991/0.6483, allocations: 449.6 kB / 0.6467 GB, free: 6.863 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.6485, allocations: 44 kB / 0.6467 GB, free: 6.82 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001621/0.6486, allocations: 370 kB / 0.6471 GB, free: 6.453 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001817/0.6505, allocations: 0.8707 MB / 0.648 GB, free: 5.582 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001976/0.6524, allocations: 1.261 MB / 0.6492 GB, free: 4.168 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001965/0.6544, allocations: 1.121 MB / 0.6503 GB, free: 3.023 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.358e-06/0.6544, allocations: 4 kB / 0.6503 GB, free: 3.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.006109/0.6606, allocations: 2.867 MB / 0.6531 GB, free: 108 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001024/0.6607, allocations: 126.8 kB / 0.6532 GB, free: 15.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/0.6607, allocations: 8 kB / 0.6532 GB, free: 15.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001836/0.6625, allocations: 367.5 kB / 0.6536 GB, free: 15.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002155/0.6647, allocations: 479.2 kB / 0.654 GB, free: 15.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006506/0.6712, allocations: 6.485 MB / 0.6604 GB, free: 8.074 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002704/0.674, allocations: 266 kB / 0.6606 GB, free: 7.812 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002287/0.6742, allocations: 95.91 kB / 0.6607 GB, free: 7.719 MB / 426.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 () * Number of clocked 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.00172/0.6759, allocations: 0.7384 MB / 0.6614 GB, free: 6.949 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004296/0.6764, allocations: 201.6 kB / 0.6616 GB, free: 6.75 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01204/0.6884, allocations: 3.653 MB / 0.6652 GB, free: 3.047 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.791e-05/0.6885, allocations: 12 kB / 0.6652 GB, free: 3.035 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.6885, allocations: 0 / 0.6652 GB, free: 3.035 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.127e-05/0.6885, allocations: 7.938 kB / 0.6652 GB, free: 3.027 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01213/0.7006, allocations: 6.006 MB / 0.6711 GB, free: 12.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.7007, allocations: 0 / 0.6711 GB, free: 12.91 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008988/0.7016, allocations: 183.8 kB / 0.6712 GB, free: 12.73 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0104/0.712, allocations: 2.722 MB / 0.6739 GB, free: 9.965 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002883/0.7123, allocations: 59.92 kB / 0.674 GB, free: 9.906 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004656/0.717, allocations: 3.996 MB / 0.6779 GB, free: 5.781 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.717, allocations: 0 / 0.6779 GB, free: 5.781 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009716/0.7267, allocations: 4.189 MB / 0.6819 GB, free: 1.512 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001413/0.7282, allocations: 0.625 MB / 0.6826 GB, free: 0.8516 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000375/0.7286, allocations: 52 kB / 0.6826 GB, free: 0.8008 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001448/0.73, allocations: 127.9 kB / 0.6827 GB, free: 0.6758 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001868/0.7302, allocations: 88.77 kB / 0.6828 GB, free: 0.5859 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001353/0.7304, allocations: 63.92 kB / 0.6829 GB, free: 0.5234 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002285/0.7326, allocations: 1.349 MB / 0.6842 GB, free: 15.15 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.7327, allocations: 0 / 0.6842 GB, free: 15.15 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002113/0.7348, allocations: 0.7085 MB / 0.6849 GB, free: 14.44 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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) * Number of clocked states: 0 () * 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.0004036/0.7352, allocations: 242.3 kB / 0.6851 GB, free: 14.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005009/0.7402, allocations: 2.787 MB / 0.6878 GB, free: 11.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.349e-06/0.7402, allocations: 4 kB / 0.6878 GB, free: 11.29 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002297/0.7425, allocations: 1.339 MB / 0.6891 GB, free: 9.902 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001914/0.7445, allocations: 347.9 kB / 0.6895 GB, free: 9.559 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008645/0.7531, allocations: 5.094 MB / 0.6945 GB, free: 4.43 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001274/0.7544, allocations: 1.615 MB / 0.696 GB, free: 2.785 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001291/0.7557, allocations: 231.5 kB / 0.6963 GB, free: 2.555 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005051/0.7562, allocations: 155.3 kB / 0.6964 GB, free: 2.402 MB / 458.7 MB Notification: Performance of SimCode: time 6.11e-07/0.7562, allocations: 0 / 0.6964 GB, free: 2.402 MB / 458.7 MB Notification: Performance of Templates: time 0.267/1.023, allocations: 32.39 MB / 0.728 GB, free: 115.5 MB / 458.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)