Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.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.SimpleModuleMP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP") translateModel(PhotoVoltaics.Examples.SimpleModuleMP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP") [: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.001786/0.001786, allocations: 178.8 kB / 7.453 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.055/1.055, allocations: 221.4 MB / 229.3 MB, free: 3.012 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.000842/0.000842, allocations: 94.59 kB / 280.1 MB, free: 1.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02247/0.02247, allocations: 5.293 MB / 336.2 MB, free: 9.203 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.089e-06/5.109e-06, allocations: 0 / 395.7 MB, free: 69.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06636/0.06638, allocations: 51.61 MB / 447.3 MB, free: 17.9 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2088/0.2753, allocations: 92.75 MB / 0.5274 GB, free: 7.348 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001634/0.2755, allocations: 69.47 kB / 0.5275 GB, free: 7.316 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.06809/0.3436, allocations: 29.39 MB / 0.5562 GB, free: 15.56 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.157e-05/0.3436, allocations: 20 kB / 0.5562 GB, free: 15.54 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: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.002384/0.346, allocations: 1.173 MB / 0.5573 GB, free: 14.4 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.731e-05/0.3461, allocations: 11.97 kB / 0.5573 GB, free: 14.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001509/0.3476, allocations: 299.8 kB / 0.5576 GB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007105/0.3483, allocations: 0.5252 MB / 0.5581 GB, free: 13.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.408e-05/0.3483, allocations: 32 kB / 0.5582 GB, free: 13.65 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.3485, allocations: 59.56 kB / 0.5582 GB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001347/0.3498, allocations: 0.8035 MB / 0.559 GB, free: 13.11 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001252/0.3511, allocations: 0.8203 MB / 0.5598 GB, free: 12.51 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.617e-05/0.3511, allocations: 4 kB / 0.5598 GB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.829e-05/0.3512, allocations: 0 / 0.5598 GB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.979e-05/0.3512, allocations: 24 kB / 0.5598 GB, free: 12.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005171/0.3564, allocations: 3.865 MB / 0.5636 GB, free: 9.141 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007463/0.3571, allocations: 0.4958 MB / 0.5641 GB, free: 8.625 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004057/0.3576, allocations: 242.6 kB / 0.5643 GB, free: 8.383 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.882e-05/0.3577, allocations: 89.09 kB / 0.5644 GB, free: 8.277 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003959/0.3581, allocations: 323.6 kB / 0.5647 GB, free: 7.934 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 1.563e-06/0.3581, allocations: 0 / 0.5647 GB, free: 7.934 MB / 378.7 MB Notification: Performance of matching and sorting (n=50): time 0.003428/0.3615, allocations: 0.8256 MB / 0.5655 GB, free: 7.094 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.249e-05/0.3616, allocations: 170.7 kB / 0.5657 GB, free: 6.891 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005169/0.3621, allocations: 457 kB / 0.5661 GB, free: 6.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.906e-05/0.3622, allocations: 29.7 kB / 0.5661 GB, free: 6.395 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002325/0.3624, allocations: 410.2 kB / 0.5665 GB, free: 5.984 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001232/0.3625, allocations: 161.7 kB / 0.5667 GB, free: 5.824 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.66e-05/0.3626, allocations: 4 kB / 0.5667 GB, free: 5.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.3627, allocations: 362.8 kB / 0.567 GB, free: 5.457 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003586/0.3631, allocations: 229.5 kB / 0.5673 GB, free: 5.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004548/0.3635, allocations: 414.7 kB / 0.5677 GB, free: 4.746 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005666/0.3641, allocations: 295 kB / 0.5679 GB, free: 4.457 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.3641, allocations: 4 kB / 0.5679 GB, free: 4.453 MB / 378.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001545/0.3657, allocations: 0.7848 MB / 0.5687 GB, free: 3.656 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.289e-05/0.3657, allocations: 8.719 kB / 0.5687 GB, free: 3.648 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.717e-06/0.3657, allocations: 4 kB / 0.5687 GB, free: 3.645 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004983/0.3662, allocations: 96.77 kB / 0.5688 GB, free: 3.547 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007705/0.367, allocations: 195.7 kB / 0.569 GB, free: 3.355 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001528/0.3685, allocations: 1.494 MB / 0.5705 GB, free: 1.746 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006417/0.3692, allocations: 83.3 kB / 0.5705 GB, free: 1.664 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.991e-05/0.3693, allocations: 43.91 kB / 0.5706 GB, free: 1.621 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,$PRE.mpTracker.vRef,mpTracker.vRef,converter.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (94): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 1 * 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.0001594/0.3694, allocations: 167.5 kB / 0.5707 GB, free: 1.445 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.643e-05/0.3695, allocations: 55.34 kB / 0.5708 GB, free: 1.391 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003468/0.373, allocations: 0.9068 MB / 0.5717 GB, free: 496 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.373, allocations: 11.91 kB / 0.5717 GB, free: 484 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.855e-06/0.373, allocations: 4 kB / 0.5717 GB, free: 480 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.373, allocations: 0 / 0.5717 GB, free: 480 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004459/0.3775, allocations: 1.801 MB / 0.5734 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.3775, allocations: 0 / 0.5734 GB, free: 14.61 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003507/0.3779, allocations: 79.89 kB / 0.5735 GB, free: 14.54 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002437/0.3803, allocations: 0.5488 MB / 0.5741 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.197e-05/0.3804, allocations: 11.97 kB / 0.5741 GB, free: 13.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000778/0.3812, allocations: 0.841 MB / 0.5749 GB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/0.3812, allocations: 0 / 0.5749 GB, free: 13.1 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003744/0.3849, allocations: 1.252 MB / 0.5761 GB, free: 11.81 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002527/0.3852, allocations: 204.1 kB / 0.5763 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001084/0.3853, allocations: 8 kB / 0.5763 GB, free: 11.58 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004747/0.3858, allocations: 36.03 kB / 0.5764 GB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.035e-05/0.3859, allocations: 27.91 kB / 0.5764 GB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-05/0.3859, allocations: 23.97 kB / 0.5764 GB, free: 11.5 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0003594/0.3863, allocations: 339 kB / 0.5767 GB, free: 11.17 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000632/0.3869, allocations: 254.9 kB / 0.577 GB, free: 10.92 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (converter.potentialSensor.pin_p.reference.gamma,converter.integrator.y) * Number of discrete variables: 6 ($whenCondition1,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef) * Number of discrete states: 7 (mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 41 * 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: 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.000255/0.3872, allocations: 191 kB / 0.5771 GB, free: 10.72 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001018/0.3882, allocations: 0.6985 MB / 0.5778 GB, free: 10 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.522e-06/0.3882, allocations: 1.625 kB / 0.5778 GB, free: 10 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004518/0.3887, allocations: 302 kB / 0.5781 GB, free: 9.699 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004176/0.3891, allocations: 76.77 kB / 0.5782 GB, free: 9.629 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001754/0.3909, allocations: 0.9606 MB / 0.5791 GB, free: 8.633 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000664/0.3915, allocations: 1.015 MB / 0.5801 GB, free: 7.59 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3915, allocations: 0 / 0.5801 GB, free: 7.59 MB / 394.7 MB Notification: Performance of Templates: time 0.0137/0.4052, allocations: 8.715 MB / 0.5886 GB, free: 14.93 MB / 410.7 MB make -j1 -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.makefile (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.sim & ./PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP -jacobian=coloredNumerical -nls=newton -s=dassl -lv=LOG_STATS -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe 2>&1)