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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00781/0.00781, allocations: 95.61 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001616/0.001616, allocations: 197.8 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1534/0.1534, allocations: 5.381 MB / 295.9 MB, free: 2.848 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001547, allocations: 63.89 kB / 412.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2962/0.2978, allocations: 50.62 MB / 463.4 MB, free: 21.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.007245/0.3051, allocations: 6.335 MB / 469.7 MB, free: 17.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003998/0.3091, allocations: 2.56 MB / 472.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005015/0.3096, allocations: 16.5 kB / 472.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002553/0.3122, allocations: 1.119 MB / 473.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001805/0.314, allocations: 0.7666 MB / 474.2 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006932/0.3147, allocations: 357.5 kB / 474.6 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001049/0.3158, allocations: 1.159 MB / 475.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001163/0.317, allocations: 0.9876 MB / 476.7 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004613/0.3174, allocations: 474.7 kB / 477.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006038/0.3181, allocations: 0.5782 MB / 477.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001529/0.3182, allocations: 126.4 kB / 477.9 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005645/0.3188, allocations: 288.1 kB / 478.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001691/0.319, allocations: 254.1 kB / 478.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004091/0.3194, allocations: 0.5412 MB / 478.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001704/0.3211, allocations: 1.492 MB / 480.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.3211, allocations: 0 / 480.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.3211, allocations: 0 / 480.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.867e-05/0.3211, allocations: 0.9062 kB / 480.4 MB, free: 10.84 MB / 350.1 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.00361/0.3248, allocations: 1.568 MB / 482 MB, free: 9.676 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.3248, allocations: 9.344 kB / 482 MB, free: 9.676 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002051/0.3269, allocations: 358.8 kB / 482.4 MB, free: 9.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001422/0.3283, allocations: 0.6914 MB / 483.1 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.852e-05/0.3284, allocations: 75.5 kB / 483.1 MB, free: 8.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001291/0.3285, allocations: 97.7 kB / 483.2 MB, free: 8.875 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001711/0.3302, allocations: 0.9953 MB / 484.2 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.094e-05/0.3303, allocations: 0.9688 kB / 484.2 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.348e-05/0.3304, allocations: 37.31 kB / 484.3 MB, free: 8.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.77e-05/0.3304, allocations: 26.56 kB / 484.3 MB, free: 8.227 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001641/0.332, allocations: 0.8405 MB / 485.1 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004954/0.337, allocations: 3.854 MB / 489 MB, free: 4.598 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001756/0.3388, allocations: 1.48 MB / 490.5 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004683/0.3393, allocations: 254.1 kB / 490.7 MB, free: 3.074 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.576e-05/0.3393, allocations: 92.86 kB / 490.8 MB, free: 2.973 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005392/0.3399, allocations: 320.8 kB / 491.1 MB, free: 2.738 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 1.924e-06/0.3399, allocations: 0 / 491.1 MB, free: 2.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.002536/0.3424, allocations: 0.9536 MB / 492.1 MB, free: 2.207 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.767e-05/0.3425, allocations: 148.8 kB / 492.2 MB, free: 2.039 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005539/0.3431, allocations: 0.4967 MB / 492.7 MB, free: 1.723 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3e-05/0.3431, allocations: 33.48 kB / 492.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002218/0.3433, allocations: 472.8 kB / 493.2 MB, free: 1.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000106/0.3434, allocations: 171.1 kB / 493.4 MB, free: 1.121 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002165/0.3437, allocations: 155 kB / 493.5 MB, free: 1.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.613e-05/0.3438, allocations: 362.2 kB / 493.9 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005017/0.3443, allocations: 237.4 kB / 494.1 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006758/0.3449, allocations: 430.5 kB / 494.5 MB, free: 200 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001746/0.3467, allocations: 0.7032 MB / 495.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.3467, allocations: 2.125 kB / 495.2 MB, free: 15.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002822/0.3496, allocations: 0.8525 MB / 496.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.49e-05/0.3496, allocations: 37.95 kB / 496.1 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.747e-05/0.3497, allocations: 5.719 kB / 496.1 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006821/0.3504, allocations: 85.06 kB / 496.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001157/0.3515, allocations: 170.2 kB / 496.4 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002289/0.3538, allocations: 1.576 MB / 497.9 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001062/0.3549, allocations: 99.27 kB / 498 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.116e-05/0.355, allocations: 37.23 kB / 498.1 MB, free: 13.44 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 11 (mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,mpTracker.sampleTrigger,$whenCondition1,mpTracker.vRef,$PRE.mpTracker.vRef,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006179/0.3557, allocations: 270.7 kB / 498.3 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001737/0.3558, allocations: 64.28 kB / 498.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002194/0.358, allocations: 0.688 MB / 499.1 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/0.3581, allocations: 8 kB / 499.1 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.3581, allocations: 3.938 kB / 499.1 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/0.3581, allocations: 3.984 kB / 499.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005791/0.3639, allocations: 1.724 MB / 0.4891 GB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.3639, allocations: 0 / 0.4891 GB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004734/0.3644, allocations: 75.89 kB / 0.4892 GB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008609/0.3653, allocations: 258.3 kB / 0.4894 GB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-05/0.3654, allocations: 16 kB / 0.4894 GB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001501/0.3669, allocations: 0.8233 MB / 0.4902 GB, free: 9.457 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.3669, allocations: 8.094 kB / 0.4902 GB, free: 9.449 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004533/0.3715, allocations: 1.17 MB / 0.4914 GB, free: 8.246 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000378/0.3719, allocations: 176.6 kB / 0.4916 GB, free: 8.055 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001404/0.372, allocations: 16 kB / 0.4916 GB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006713/0.3727, allocations: 44.02 kB / 0.4916 GB, free: 7.996 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.673e-05/0.3728, allocations: 27.91 kB / 0.4916 GB, free: 7.969 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.523e-05/0.3729, allocations: 19.94 kB / 0.4917 GB, free: 7.949 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006462/0.3735, allocations: 346.9 kB / 0.492 GB, free: 7.613 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3735, allocations: 0 / 0.492 GB, free: 7.613 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001357/0.3749, allocations: 239.3 kB / 0.4922 GB, free: 7.379 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (converter.integrator.y,voltageSource.pin_p.reference.gamma) * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003453/0.3753, allocations: 146.3 kB / 0.4924 GB, free: 7.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00219/0.3775, allocations: 0.7586 MB / 0.4931 GB, free: 6.445 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3775, allocations: 1.188 kB / 0.4931 GB, free: 6.445 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008836/0.3784, allocations: 331.7 kB / 0.4934 GB, free: 6.109 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009889/0.3794, allocations: 109.8 kB / 0.4935 GB, free: 6.008 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003433/0.3828, allocations: 1.363 MB / 0.4949 GB, free: 4.609 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006846/0.3835, allocations: 0.933 MB / 0.4958 GB, free: 3.648 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005282/0.3841, allocations: 88.95 kB / 0.4958 GB, free: 3.562 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002068/0.3843, allocations: 51.42 kB / 0.4959 GB, free: 3.512 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.3843, allocations: 0 / 0.4959 GB, free: 3.512 MB / 366.1 MB Notification: Performance of Templates: time 0.02123/0.4055, allocations: 8.087 MB / 0.5038 GB, free: 11.48 MB / 382.1 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)