Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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/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_TGM 2.0.0/package.mo", uses=false) Using package PhotoVoltaics_TGM with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 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) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Running command: translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.03061/0.03061, allocations: 5.395 MB / 20.9 MB, free: 1.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008176/0.008176, allocations: 91.78 kB / 22.88 MB, free: 0.7891 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.001168/0.001168, allocations: 194.6 kB / 24.99 MB, free: 272 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.32/1.32, allocations: 222.9 MB / 249.9 MB, free: 8.523 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009038/0.009038, allocations: 2.322 MB / 303.5 MB, free: 6.57 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 96.17 kB / 367.2 MB, free: 6.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2199/0.2218, allocations: 51.2 MB / 418.4 MB, free: 26.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704): time 0.006001/0.2279, allocations: 6.783 MB / 425.1 MB, free: 19.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004146/0.232, allocations: 3.127 MB / 428.3 MB, free: 16.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005702/0.2326, allocations: 19.94 kB / 428.3 MB, free: 16.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002082/0.2347, allocations: 1.1 MB / 429.4 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001471/0.2362, allocations: 0.839 MB / 430.2 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001306/0.2375, allocations: 0.5369 MB / 430.8 MB, free: 14 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008996/0.2384, allocations: 1.375 MB / 432.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001081/0.2395, allocations: 1.028 MB / 433.2 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004281/0.24, allocations: 0.5605 MB / 433.7 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005877/0.2406, allocations: 0.7121 MB / 434.4 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001487/0.2407, allocations: 140 kB / 434.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006103/0.2413, allocations: 439.7 kB / 435 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001499/0.2415, allocations: 291 kB / 435.3 MB, free: 9.441 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000377/0.2419, allocations: 0.6337 MB / 435.9 MB, free: 8.805 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001219/0.2431, allocations: 1.721 MB / 437.6 MB, free: 7.078 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2431, allocations: 0 / 437.6 MB, free: 7.078 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2431, allocations: 3.938 kB / 437.6 MB, free: 7.074 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.363e-05/0.2431, allocations: 0 / 437.6 MB, free: 7.074 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 270 * Number of variables: 270 Notification: Performance of Generate backend data structure: time 0.00348/0.2466, allocations: 1.77 MB / 439.4 MB, free: 5.234 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.213e-05/0.2467, allocations: 12.03 kB / 439.4 MB, free: 5.223 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001995/0.2487, allocations: 371.3 kB / 439.8 MB, free: 4.859 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001369/0.2501, allocations: 0.7561 MB / 440.5 MB, free: 4.059 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.889e-05/0.2501, allocations: 86 kB / 440.6 MB, free: 3.973 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001296/0.2503, allocations: 107.9 kB / 440.7 MB, free: 3.867 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001743/0.252, allocations: 1.176 MB / 441.9 MB, free: 2.633 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.71e-05/0.252, allocations: 8 kB / 441.9 MB, free: 2.625 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.722e-05/0.2522, allocations: 44 kB / 442 MB, free: 2.582 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/0.2522, allocations: 27.98 kB / 442 MB, free: 2.555 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001895/0.2541, allocations: 1.034 MB / 443 MB, free: 1.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00609/0.2602, allocations: 4.4 MB / 447.4 MB, free: 12.92 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003005/0.2632, allocations: 1.772 MB / 449.2 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000803/0.264, allocations: 366.4 kB / 449.5 MB, free: 10.58 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001788/0.2642, allocations: 174.8 kB / 449.7 MB, free: 10.37 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001059/0.2653, allocations: 0.5552 MB / 450.3 MB, free: 9.777 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 3.016e-06/0.2653, allocations: 0 / 450.3 MB, free: 9.777 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.006218/0.2715, allocations: 1.709 MB / 452 MB, free: 8.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000156/0.2717, allocations: 277.7 kB / 452.3 MB, free: 7.688 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008231/0.2725, allocations: 0.5536 MB / 452.8 MB, free: 7.125 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.54e-05/0.2726, allocations: 45.7 kB / 452.9 MB, free: 7.074 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003558/0.273, allocations: 486.7 kB / 453.3 MB, free: 6.59 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002094/0.2732, allocations: 256.4 kB / 453.6 MB, free: 6.336 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003261/0.2735, allocations: 210.7 kB / 453.8 MB, free: 6.121 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.2737, allocations: 386.8 kB / 454.2 MB, free: 5.734 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007467/0.2745, allocations: 326.4 kB / 454.5 MB, free: 5.418 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009988/0.2755, allocations: 0.5682 MB / 455.1 MB, free: 4.754 MB / 318.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.0178/0.2933, allocations: 3.634 MB / 458.7 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.074e-05/0.2933, allocations: 0 / 458.7 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002661/0.296, allocations: 1.213 MB / 459.9 MB, free: 15.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.943e-05/0.2961, allocations: 97.09 kB / 460 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.2961, allocations: 4 kB / 460 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004552/0.2966, allocations: 89.03 kB / 460.1 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/0.2977, allocations: 251.5 kB / 460.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001511/0.2992, allocations: 1.585 MB / 461.9 MB, free: 13.51 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009263/0.3001, allocations: 111 kB / 462 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.164e-05/0.3002, allocations: 64.02 kB / 462.1 MB, free: 13.34 MB / 334.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $PRE.irradiance.daysOfYear = PhotoVoltaics.Functions.dayOfTheYear(31, 12, irradiance.startYear). Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 27 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,irradiance.year,$PRE.irradiance.year,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,writeCSV.sampleTrigger,$whenCondition4,mpTracker.sampleTrigger,$whenCondition1,irradiance.localDays,irradiance.daysOfYear,$PRE.irradiance.daysOfYear,irradiance.dayOfYear,$PRE.irradiance.dayOfYear,irradiance.startDayOfYear,$PRE.irradiance.startDayOfYear,mpTracker.vRef,$PRE.mpTracker.vRef,$whenCondition3,$whenCondition2,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 3 * 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.0005315/0.3008, allocations: 365.2 kB / 462.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001529/0.3009, allocations: 79.06 kB / 462.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002613/0.3036, allocations: 1.261 MB / 463.8 MB, free: 11.58 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.3036, allocations: 8 kB / 463.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.3036, allocations: 7.922 kB / 463.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/0.3036, allocations: 7.922 kB / 463.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00645/0.3101, allocations: 2.547 MB / 466.4 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.543e-06/0.3101, allocations: 0 / 466.4 MB, free: 8.926 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006064/0.3107, allocations: 139.8 kB / 466.5 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008198/0.3115, allocations: 322.3 kB / 466.8 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.616e-05/0.3116, allocations: 35.97 kB / 466.8 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001347/0.313, allocations: 0.8818 MB / 467.7 MB, free: 7.516 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.313, allocations: 4.062 kB / 467.7 MB, free: 7.512 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005839/0.3188, allocations: 1.927 MB / 469.6 MB, free: 5.539 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004206/0.3193, allocations: 243.8 kB / 469.9 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001552/0.3194, allocations: 24 kB / 469.9 MB, free: 5.258 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006706/0.3201, allocations: 47.97 kB / 470 MB, free: 5.211 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/0.3203, allocations: 64.56 kB / 470 MB, free: 5.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.468e-05/0.3203, allocations: 32.03 kB / 470.1 MB, free: 5.117 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004793/0.3208, allocations: 398.8 kB / 470.4 MB, free: 4.727 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3208, allocations: 0 / 470.4 MB, free: 4.727 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001025/0.3219, allocations: 350.9 kB / 470.8 MB, free: 4.383 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (converter.integrator.y,integrator.y,voltageSource.pin_p.reference.gamma) * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,irradiance.startDayOfYear,irradiance.dayOfYear,irradiance.daysOfYear,irradiance.year,irradiance.localDays,writeCSV.sampleTrigger,writeCSV.firstTrigger) * Number of discrete states: 16 (irradiance.daysOfYear,irradiance.year,irradiance.startDayOfYear,$whenCondition3,irradiance.dayOfYear,$whenCondition2,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition4,writeCSV.sampleTrigger) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (80): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 2 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007004/0.3226, allocations: 374.6 kB / 471.2 MB, free: 4.082 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002702/0.3253, allocations: 1.192 MB / 472.3 MB, free: 2.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3253, allocations: 0 / 472.3 MB, free: 2.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001069/0.3264, allocations: 0.6597 MB / 473 MB, free: 2.141 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000858/0.3273, allocations: 144.3 kB / 473.1 MB, free: 2.004 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00331/0.3306, allocations: 1.79 MB / 474.9 MB, free: 188 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006016/0.3312, allocations: 1.014 MB / 475.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005683/0.3318, allocations: 130.4 kB / 476.1 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000234/0.332, allocations: 87.38 kB / 476.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.332, allocations: 0 / 476.2 MB, free: 14.92 MB / 350.1 MB Notification: Performance of Templates: time 0.02277/0.3548, allocations: 12.8 MB / 489 MB, free: 2.199 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160704.pipe 2>&1)