Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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_Trina_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02484/0.02484, allocations: 5.396 MB / 21.65 MB, free: 1.074 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.001003/0.001003, allocations: 110.2 kB / 23.65 MB, free: 0.7852 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.00116/0.00116, allocations: 203.1 kB / 25.78 MB, free: 4.527 MB / 19.63 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 222.9 MB / 250.6 MB, free: 8.453 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009602/0.009603, allocations: 2.318 MB / 304.3 MB, free: 6.492 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 91.86 kB / 368.6 MB, free: 6.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2251/0.2271, allocations: 51.23 MB / 419.8 MB, free: 26.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704): time 0.006034/0.2331, allocations: 6.761 MB / 426.6 MB, free: 19.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004229/0.2374, allocations: 3.131 MB / 429.7 MB, free: 16.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000582/0.238, allocations: 16 kB / 429.7 MB, free: 16.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001994/0.24, allocations: 1.111 MB / 430.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001432/0.2415, allocations: 0.8312 MB / 431.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00131/0.2428, allocations: 0.5433 MB / 432.2 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001064/0.2439, allocations: 1.383 MB / 433.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001146/0.245, allocations: 1.032 MB / 434.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004208/0.2454, allocations: 0.5566 MB / 435.2 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006132/0.2461, allocations: 0.716 MB / 435.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001319/0.2462, allocations: 140 kB / 436 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005807/0.2468, allocations: 435.7 kB / 436.5 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001473/0.247, allocations: 298.9 kB / 436.8 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003637/0.2473, allocations: 0.6337 MB / 437.4 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001123/0.2485, allocations: 1.741 MB / 439.1 MB, free: 6.875 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.2485, allocations: 0 / 439.1 MB, free: 6.875 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2485, allocations: 0 / 439.1 MB, free: 6.875 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.317e-05/0.2485, allocations: 4 kB / 439.1 MB, free: 6.871 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.003461/0.252, allocations: 1.767 MB / 440.9 MB, free: 5.031 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.252, allocations: 8.031 kB / 440.9 MB, free: 5.023 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001946/0.254, allocations: 371.2 kB / 441.3 MB, free: 4.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00138/0.2554, allocations: 0.7639 MB / 442 MB, free: 3.852 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.917e-05/0.2554, allocations: 82.06 kB / 442.1 MB, free: 3.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001348/0.2556, allocations: 111.9 kB / 442.2 MB, free: 3.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001665/0.2572, allocations: 1.176 MB / 443.4 MB, free: 2.426 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.775e-05/0.2573, allocations: 3.938 kB / 443.4 MB, free: 2.422 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.851e-05/0.2574, allocations: 48 kB / 443.5 MB, free: 2.375 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.678e-05/0.2574, allocations: 28 kB / 443.5 MB, free: 2.348 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001806/0.2592, allocations: 1.034 MB / 444.5 MB, free: 1.312 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005592/0.2648, allocations: 4.368 MB / 448.9 MB, free: 12.74 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002824/0.2676, allocations: 1.773 MB / 450.7 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007468/0.2684, allocations: 362 kB / 451 MB, free: 10.41 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001774/0.2686, allocations: 182.8 kB / 451.2 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009424/0.2695, allocations: 0.5474 MB / 451.7 MB, free: 9.605 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.024e-06/0.2696, allocations: 4 kB / 451.7 MB, free: 9.602 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.00592/0.2755, allocations: 1.709 MB / 453.4 MB, free: 7.844 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/0.2756, allocations: 277.7 kB / 453.7 MB, free: 7.512 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007037/0.2763, allocations: 0.5536 MB / 454.3 MB, free: 6.949 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.463e-05/0.2764, allocations: 41.7 kB / 454.3 MB, free: 6.902 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003453/0.2768, allocations: 490.7 kB / 454.8 MB, free: 6.414 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00024/0.277, allocations: 256.5 kB / 455 MB, free: 6.16 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003399/0.2774, allocations: 210.7 kB / 455.2 MB, free: 5.945 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.2775, allocations: 378.8 kB / 455.6 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007359/0.2783, allocations: 326.4 kB / 455.9 MB, free: 5.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008947/0.2792, allocations: 0.5721 MB / 456.5 MB, free: 4.582 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.01755/0.2968, allocations: 3.631 MB / 460.1 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.695e-06/0.2968, allocations: 3.938 kB / 460.1 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002591/0.2994, allocations: 1.209 MB / 461.4 MB, free: 15.54 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.884e-05/0.2995, allocations: 89.09 kB / 461.4 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/0.2995, allocations: 8.25 kB / 461.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004955/0.3, allocations: 88.78 kB / 461.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001095/0.3011, allocations: 259.5 kB / 461.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001522/0.3026, allocations: 1.578 MB / 463.4 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009165/0.3036, allocations: 111 kB / 463.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.295e-05/0.3037, allocations: 51.95 kB / 463.5 MB, free: 13.2 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.0005514/0.3042, allocations: 373.3 kB / 463.9 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001751/0.3044, allocations: 79.06 kB / 464 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002683/0.3071, allocations: 1.257 MB / 465.2 MB, free: 11.44 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.247e-06/0.3071, allocations: 12 kB / 465.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.3071, allocations: 0 / 465.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.347e-06/0.3072, allocations: 3.984 kB / 465.2 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006766/0.3139, allocations: 2.551 MB / 467.8 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.314, allocations: 4 kB / 467.8 MB, free: 8.781 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000639/0.3146, allocations: 131.8 kB / 467.9 MB, free: 8.652 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008077/0.3154, allocations: 330.3 kB / 468.2 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.661e-05/0.3155, allocations: 31.97 kB / 468.3 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001352/0.3169, allocations: 0.8974 MB / 469.2 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.3169, allocations: 4.062 kB / 469.2 MB, free: 7.355 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005799/0.3227, allocations: 1.916 MB / 471.1 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000464/0.3232, allocations: 239.8 kB / 471.3 MB, free: 5.141 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001432/0.3233, allocations: 28 kB / 471.4 MB, free: 5.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006461/0.324, allocations: 44.06 kB / 471.4 MB, free: 5.07 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001507/0.3242, allocations: 72.48 kB / 471.5 MB, free: 5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001455/0.3243, allocations: 39.95 kB / 471.5 MB, free: 4.961 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005113/0.3248, allocations: 394.8 kB / 471.9 MB, free: 4.574 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3248, allocations: 0 / 471.9 MB, free: 4.574 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00113/0.326, allocations: 347 kB / 472.2 MB, free: 4.234 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.000721/0.3267, allocations: 352.2 kB / 472.6 MB, free: 3.953 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002403/0.3291, allocations: 1.157 MB / 473.7 MB, free: 2.746 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.3291, allocations: 0 / 473.7 MB, free: 2.746 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001339/0.3305, allocations: 0.6558 MB / 474.4 MB, free: 2.051 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008937/0.3314, allocations: 152.5 kB / 474.5 MB, free: 1.906 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003372/0.3348, allocations: 1.771 MB / 476.3 MB, free: 104 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006317/0.3354, allocations: 1.022 MB / 477.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004879/0.3359, allocations: 122.4 kB / 477.5 MB, free: 14.92 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002334/0.3362, allocations: 91.25 kB / 477.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3362, allocations: 0 / 477.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of Templates: time 0.02228/0.3585, allocations: 12.76 MB / 490.3 MB, free: 2.16 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.pipe 2>&1)