Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.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_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808") translateModel(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.03118/0.03118, allocations: 5.39 MB / 20.89 MB, free: 1.363 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.008942/0.008942, allocations: 98.97 kB / 22.88 MB, free: 0.7617 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.001104/0.001104, allocations: 185.4 kB / 24.99 MB, free: 144 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.322/1.322, allocations: 222.9 MB / 249.9 MB, free: 8.504 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009462/0.009462, allocations: 2.322 MB / 303.5 MB, free: 6.531 MB / 238.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.001703/0.001703, allocations: 103.8 kB / 367.2 MB, free: 6.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2129/0.2146, allocations: 51.21 MB / 418.4 MB, free: 26.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808): time 0.005834/0.2205, allocations: 6.767 MB / 425.1 MB, free: 19.62 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004126/0.2246, allocations: 3.135 MB / 428.3 MB, free: 16.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004397/0.2251, allocations: 23.94 kB / 428.3 MB, free: 16.46 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001902/0.227, allocations: 1.099 MB / 429.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001335/0.2284, allocations: 0.8312 MB / 430.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00125/0.2296, allocations: 0.5434 MB / 430.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008827/0.2305, allocations: 1.363 MB / 432.1 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001032/0.2316, allocations: 1.044 MB / 433.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004438/0.232, allocations: 0.5605 MB / 433.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006593/0.2327, allocations: 0.7121 MB / 434.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001661/0.2329, allocations: 144 kB / 434.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006859/0.2335, allocations: 435.7 kB / 435 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000153/0.2337, allocations: 291 kB / 435.3 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004011/0.2341, allocations: 0.6337 MB / 435.9 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001377/0.2355, allocations: 1.721 MB / 437.6 MB, free: 7.051 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2355, allocations: 0 / 437.6 MB, free: 7.051 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2355, allocations: 0 / 437.6 MB, free: 7.051 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.339e-05/0.2355, allocations: 0 / 437.6 MB, free: 7.051 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.003514/0.2391, allocations: 1.775 MB / 439.4 MB, free: 5.203 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.2391, allocations: 12.03 kB / 439.4 MB, free: 5.191 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001937/0.241, allocations: 371.2 kB / 439.8 MB, free: 4.828 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001374/0.2424, allocations: 0.7561 MB / 440.6 MB, free: 4.027 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.016e-05/0.2425, allocations: 82.06 kB / 440.6 MB, free: 3.945 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001432/0.2426, allocations: 111.9 kB / 440.7 MB, free: 3.836 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001713/0.2444, allocations: 1.176 MB / 441.9 MB, free: 2.602 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.754e-05/0.2444, allocations: 0 / 441.9 MB, free: 2.602 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.281e-05/0.2445, allocations: 47.94 kB / 442 MB, free: 2.555 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.544e-05/0.2445, allocations: 24 kB / 442 MB, free: 2.531 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001789/0.2463, allocations: 1.034 MB / 443 MB, free: 1.496 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005376/0.2517, allocations: 4.4 MB / 447.4 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002839/0.2546, allocations: 1.776 MB / 449.2 MB, free: 10.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007433/0.2553, allocations: 362 kB / 449.6 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001591/0.2555, allocations: 178.8 kB / 449.7 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009291/0.2564, allocations: 0.5552 MB / 450.3 MB, free: 9.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.475e-06/0.2565, allocations: 0 / 450.3 MB, free: 9.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.005943/0.2624, allocations: 1.705 MB / 452 MB, free: 7.996 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001447/0.2626, allocations: 277.7 kB / 452.3 MB, free: 7.664 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006783/0.2632, allocations: 0.5575 MB / 452.8 MB, free: 7.098 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.376e-05/0.2633, allocations: 41.7 kB / 452.9 MB, free: 7.051 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000378/0.2637, allocations: 494.6 kB / 453.3 MB, free: 6.559 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002301/0.2639, allocations: 252.4 kB / 453.6 MB, free: 6.309 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003593/0.2643, allocations: 210.7 kB / 453.8 MB, free: 6.094 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.2645, allocations: 378.8 kB / 454.2 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007429/0.2653, allocations: 334.4 kB / 454.5 MB, free: 5.391 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009872/0.2663, allocations: 0.5604 MB / 455.1 MB, free: 4.734 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.0174/0.2837, allocations: 3.642 MB / 458.7 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.037e-06/0.2837, allocations: 0 / 458.7 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002581/0.2863, allocations: 1.205 MB / 459.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.729e-05/0.2864, allocations: 89.09 kB / 460 MB, free: 15.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.2864, allocations: 16.25 kB / 460 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004477/0.2868, allocations: 88.78 kB / 460.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/0.2879, allocations: 255.5 kB / 460.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001536/0.2895, allocations: 1.582 MB / 461.9 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009127/0.2904, allocations: 115 kB / 462 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.851e-05/0.2905, allocations: 51.97 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.0005176/0.291, allocations: 369.1 kB / 462.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/0.2912, allocations: 87.06 kB / 462.5 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002514/0.2937, allocations: 1.261 MB / 463.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.2937, allocations: 8 kB / 463.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.2937, allocations: 3.938 kB / 463.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.049e-05/0.2937, allocations: 3.984 kB / 463.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006297/0.3, allocations: 2.551 MB / 466.4 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.3001, allocations: 0 / 466.4 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005733/0.3007, allocations: 135.8 kB / 466.5 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007653/0.3014, allocations: 334.3 kB / 466.8 MB, free: 8.445 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.927e-05/0.3015, allocations: 31.97 kB / 466.8 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001263/0.3028, allocations: 0.8936 MB / 467.7 MB, free: 7.488 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3028, allocations: 0 / 467.7 MB, free: 7.488 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005578/0.3084, allocations: 1.923 MB / 469.7 MB, free: 5.52 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003816/0.3088, allocations: 235.8 kB / 469.9 MB, free: 5.27 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001384/0.3089, allocations: 24 kB / 469.9 MB, free: 5.246 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006408/0.3096, allocations: 59.95 kB / 470 MB, free: 5.188 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.3097, allocations: 56.56 kB / 470 MB, free: 5.133 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.396e-05/0.3098, allocations: 43.91 kB / 470.1 MB, free: 5.09 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000474/0.3103, allocations: 394.8 kB / 470.5 MB, free: 4.703 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3103, allocations: 0 / 470.5 MB, free: 4.703 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009514/0.3112, allocations: 347 kB / 470.8 MB, free: 4.363 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.0006498/0.3119, allocations: 354.7 kB / 471.1 MB, free: 4.078 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002526/0.3144, allocations: 1.193 MB / 472.3 MB, free: 2.836 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.3144, allocations: 4.438 kB / 472.3 MB, free: 2.832 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001038/0.3155, allocations: 0.6582 MB / 473 MB, free: 2.133 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000797/0.3163, allocations: 144.3 kB / 473.1 MB, free: 1.996 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002975/0.3193, allocations: 1.8 MB / 474.9 MB, free: 172 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005099/0.3198, allocations: 1.011 MB / 476 MB, free: 15.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005445/0.3204, allocations: 126.4 kB / 476.1 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002222/0.3206, allocations: 87.38 kB / 476.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3206, allocations: 3.938 kB / 476.2 MB, free: 14.91 MB / 350.1 MB Notification: Performance of Templates: time 0.02129/0.3419, allocations: 12.8 MB / 489 MB, free: 2.18 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808 -abortSlowSimulation -alarm=480 -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Analytical_20160808.pipe 2>&1)