Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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_Trina_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808") translateModel(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2880,variableFilter="",fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02385/0.02385, allocations: 5.4 MB / 21.66 MB, free: 1.203 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.001017/0.001017, allocations: 108.7 kB / 23.66 MB, free: 0.7656 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.001126/0.001126, allocations: 195.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.209/1.209, allocations: 222.9 MB / 250.7 MB, free: 8.477 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.008941/0.008941, allocations: 2.317 MB / 304.3 MB, free: 6.523 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001699/0.001699, allocations: 87.86 kB / 368.6 MB, free: 6.172 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1919/0.1936, allocations: 51.21 MB / 419.8 MB, free: 26.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808): time 0.005807/0.1994, allocations: 6.77 MB / 426.6 MB, free: 19.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004105/0.2036, allocations: 3.127 MB / 429.7 MB, free: 16.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006426/0.2042, allocations: 19.94 kB / 429.7 MB, free: 16.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002024/0.2063, allocations: 1.107 MB / 430.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001378/0.2076, allocations: 0.835 MB / 431.7 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001296/0.2089, allocations: 0.5397 MB / 432.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008695/0.2098, allocations: 1.39 MB / 433.6 MB, free: 12.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009745/0.2108, allocations: 1.021 MB / 434.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003854/0.2112, allocations: 0.5566 MB / 435.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005629/0.2118, allocations: 0.7121 MB / 435.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001208/0.2119, allocations: 144 kB / 436 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005694/0.2125, allocations: 435.7 kB / 436.5 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001546/0.2126, allocations: 295 kB / 436.8 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000358/0.213, allocations: 0.6337 MB / 437.4 MB, free: 8.809 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001132/0.2141, allocations: 1.744 MB / 439.1 MB, free: 7.059 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.2142, allocations: 0 / 439.1 MB, free: 7.059 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2142, allocations: 4 kB / 439.1 MB, free: 7.055 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.131e-05/0.2142, allocations: 0 / 439.1 MB, free: 7.055 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.003351/0.2175, allocations: 1.773 MB / 440.9 MB, free: 5.211 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.185e-05/0.2176, allocations: 8.031 kB / 440.9 MB, free: 5.203 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001872/0.2195, allocations: 367.3 kB / 441.3 MB, free: 4.844 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001358/0.2208, allocations: 0.7678 MB / 442 MB, free: 4.031 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.024e-05/0.2209, allocations: 82 kB / 442.1 MB, free: 3.949 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000128/0.221, allocations: 111.9 kB / 442.2 MB, free: 3.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001607/0.2226, allocations: 1.176 MB / 443.4 MB, free: 2.605 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.835e-05/0.2227, allocations: 0 / 443.4 MB, free: 2.605 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.41e-05/0.2228, allocations: 51.94 kB / 443.5 MB, free: 2.555 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.438e-05/0.2228, allocations: 24 kB / 443.5 MB, free: 2.531 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001782/0.2246, allocations: 1.042 MB / 444.5 MB, free: 1.488 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005444/0.23, allocations: 4.361 MB / 448.9 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002737/0.2328, allocations: 1.773 MB / 450.7 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007263/0.2335, allocations: 374 kB / 451 MB, free: 10.58 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001586/0.2337, allocations: 170.8 kB / 451.2 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009461/0.2347, allocations: 0.5514 MB / 451.7 MB, free: 9.785 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 3.156e-06/0.2347, allocations: 0 / 451.7 MB, free: 9.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.005911/0.2406, allocations: 1.709 MB / 453.5 MB, free: 8.027 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001322/0.2407, allocations: 277.7 kB / 453.7 MB, free: 7.695 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006619/0.2414, allocations: 0.5575 MB / 454.3 MB, free: 7.129 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.353e-05/0.2415, allocations: 41.7 kB / 454.3 MB, free: 7.082 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003437/0.2418, allocations: 486.7 kB / 454.8 MB, free: 6.598 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001997/0.242, allocations: 264.4 kB / 455.1 MB, free: 6.336 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003038/0.2423, allocations: 206.7 kB / 455.3 MB, free: 6.125 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.2425, allocations: 386.8 kB / 455.6 MB, free: 5.738 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000707/0.2432, allocations: 326.4 kB / 456 MB, free: 5.422 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008696/0.2441, allocations: 0.5643 MB / 456.5 MB, free: 4.762 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.01712/0.2612, allocations: 3.631 MB / 460.2 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.151e-05/0.2613, allocations: 4 kB / 460.2 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002581/0.2638, allocations: 1.209 MB / 461.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.059e-05/0.2639, allocations: 91.77 kB / 461.5 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.567e-05/0.264, allocations: 11.98 kB / 461.5 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004616/0.2644, allocations: 84.98 kB / 461.5 MB, free: 15.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/0.2655, allocations: 259.6 kB / 461.8 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001512/0.267, allocations: 1.574 MB / 463.4 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009099/0.268, allocations: 115 kB / 463.5 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.496e-05/0.2681, allocations: 51.95 kB / 463.5 MB, free: 13.38 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.000564/0.2686, allocations: 369.3 kB / 463.9 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001879/0.2688, allocations: 83.12 kB / 464 MB, free: 12.91 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002523/0.2714, allocations: 1.257 MB / 465.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.146e-06/0.2714, allocations: 8 kB / 465.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.2714, allocations: 4 kB / 465.2 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.557e-06/0.2714, allocations: 3.984 kB / 465.3 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006452/0.2779, allocations: 2.547 MB / 467.8 MB, free: 8.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.2779, allocations: 3.938 kB / 467.8 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005784/0.2785, allocations: 135.9 kB / 467.9 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000798/0.2793, allocations: 334.1 kB / 468.3 MB, free: 8.496 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.927e-05/0.2794, allocations: 31.97 kB / 468.3 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001353/0.2807, allocations: 0.8857 MB / 469.2 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.2808, allocations: 4.031 kB / 469.2 MB, free: 7.543 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005795/0.2866, allocations: 1.928 MB / 471.1 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004171/0.287, allocations: 239.8 kB / 471.3 MB, free: 5.316 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001669/0.2872, allocations: 24 kB / 471.4 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006837/0.2878, allocations: 51.97 kB / 471.4 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001343/0.288, allocations: 60.58 kB / 471.5 MB, free: 5.184 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.28e-05/0.2881, allocations: 35.97 kB / 471.5 MB, free: 5.148 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005947/0.2887, allocations: 390.8 kB / 471.9 MB, free: 4.766 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.61e-07/0.2887, allocations: 0 / 471.9 MB, free: 4.766 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001163/0.2899, allocations: 347 kB / 472.2 MB, free: 4.426 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.0008439/0.2907, allocations: 362.8 kB / 472.6 MB, free: 4.133 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00245/0.2932, allocations: 1.162 MB / 473.8 MB, free: 2.922 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.2932, allocations: 0 / 473.8 MB, free: 2.922 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001131/0.2943, allocations: 0.6543 MB / 474.4 MB, free: 2.227 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008121/0.2952, allocations: 154.3 kB / 474.6 MB, free: 2.078 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003539/0.2987, allocations: 1.767 MB / 476.3 MB, free: 284 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007325/0.2995, allocations: 1.011 MB / 477.3 MB, free: 15.24 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004728/0.2999, allocations: 130.4 kB / 477.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002607/0.3002, allocations: 87.38 kB / 477.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3002, allocations: 0 / 477.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of Templates: time 0.02459/0.3248, allocations: 12.75 MB / 490.3 MB, free: 2.344 MB / 350.1 MB make -j1 -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.makefile (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.sim & ./PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808 -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160808.pipe 2>&1)