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.02902/0.02902, allocations: 5.403 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.00102/0.00102, allocations: 104.3 kB / 23.65 MB, free: 0.7969 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.001118/0.001118, allocations: 194.5 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.232/1.232, allocations: 222.9 MB / 250.7 MB, free: 8.457 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009089/0.009089, allocations: 2.318 MB / 304.3 MB, free: 6.492 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001728/0.001728, allocations: 95.84 kB / 368.6 MB, free: 6.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1814/0.1831, allocations: 51.22 MB / 419.8 MB, free: 26.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704): time 0.005669/0.1888, allocations: 6.763 MB / 426.6 MB, free: 19.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004119/0.193, allocations: 3.131 MB / 429.7 MB, free: 16.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007618/0.1938, allocations: 23.94 kB / 429.7 MB, free: 16.31 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002118/0.1959, allocations: 1.096 MB / 430.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001638/0.1975, allocations: 0.8457 MB / 431.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001334/0.1989, allocations: 0.5405 MB / 432.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001019/0.1999, allocations: 1.383 MB / 433.6 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001055/0.201, allocations: 1.028 MB / 434.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004794/0.2015, allocations: 0.5605 MB / 435.2 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005798/0.2021, allocations: 0.7082 MB / 435.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001294/0.2022, allocations: 144 kB / 436 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006484/0.2029, allocations: 439.7 kB / 436.5 MB, free: 9.543 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001437/0.203, allocations: 291 kB / 436.8 MB, free: 9.258 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003675/0.2034, allocations: 0.6337 MB / 437.4 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001281/0.2047, allocations: 1.745 MB / 439.1 MB, free: 6.871 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.2047, allocations: 0 / 439.1 MB, free: 6.871 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2047, allocations: 0 / 439.1 MB, free: 6.871 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.196e-05/0.2047, allocations: 0 / 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.003486/0.2082, allocations: 1.775 MB / 440.9 MB, free: 5.023 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.263e-05/0.2082, allocations: 8.031 kB / 440.9 MB, free: 5.016 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00187/0.2101, allocations: 371.3 kB / 441.3 MB, free: 4.652 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001371/0.2115, allocations: 0.7639 MB / 442.1 MB, free: 3.844 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.655e-05/0.2116, allocations: 82.06 kB / 442.1 MB, free: 3.762 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001279/0.2117, allocations: 111.9 kB / 442.2 MB, free: 3.652 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001631/0.2133, allocations: 1.175 MB / 443.4 MB, free: 2.418 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.924e-05/0.2134, allocations: 7.984 kB / 443.4 MB, free: 2.41 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.384e-05/0.2135, allocations: 48 kB / 443.5 MB, free: 2.363 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.357e-05/0.2135, allocations: 24 kB / 443.5 MB, free: 2.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001743/0.2152, allocations: 1.034 MB / 444.5 MB, free: 1.305 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00562/0.2209, allocations: 4.368 MB / 448.9 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002729/0.2236, allocations: 1.769 MB / 450.7 MB, free: 10.76 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007452/0.2244, allocations: 362.1 kB / 451 MB, free: 10.4 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001764/0.2246, allocations: 182.7 kB / 451.2 MB, free: 10.19 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009508/0.2255, allocations: 0.5475 MB / 451.7 MB, free: 9.602 MB / 318.1 MB Notification: Performance of pre-optimization done (n=79): time 2.455e-06/0.2255, allocations: 0 / 451.7 MB, free: 9.602 MB / 318.1 MB Notification: Performance of matching and sorting (n=79): time 0.005968/0.2315, allocations: 1.709 MB / 453.5 MB, free: 7.844 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001261/0.2317, allocations: 281.7 kB / 453.7 MB, free: 7.508 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000691/0.2324, allocations: 0.5497 MB / 454.3 MB, free: 6.949 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.885e-05/0.2324, allocations: 49.69 kB / 454.3 MB, free: 6.895 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000333/0.2328, allocations: 486.7 kB / 454.8 MB, free: 6.41 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002001/0.233, allocations: 260.4 kB / 455.1 MB, free: 6.152 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003205/0.2333, allocations: 210.7 kB / 455.3 MB, free: 5.938 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.2335, allocations: 382.8 kB / 455.6 MB, free: 5.555 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006968/0.2342, allocations: 326.4 kB / 456 MB, free: 5.238 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008757/0.2351, allocations: 0.5682 MB / 456.5 MB, free: 4.574 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.01741/0.2525, allocations: 3.627 MB / 460.1 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.598e-06/0.2525, allocations: 0 / 460.1 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002504/0.255, allocations: 1.213 MB / 461.4 MB, free: 15.54 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.676e-05/0.2551, allocations: 89.11 kB / 461.4 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.2551, allocations: 4 kB / 461.5 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000441/0.2556, allocations: 85.03 kB / 461.5 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/0.2567, allocations: 259.5 kB / 461.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001478/0.2582, allocations: 1.585 MB / 463.4 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009252/0.2591, allocations: 115.2 kB / 463.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.445e-05/0.2592, allocations: 51.97 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.000528/0.2597, allocations: 365.2 kB / 463.9 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001365/0.2599, allocations: 79.06 kB / 464 MB, free: 12.73 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002452/0.2623, allocations: 1.265 MB / 465.2 MB, free: 11.43 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.2624, allocations: 8 kB / 465.2 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.2624, allocations: 4 kB / 465.2 MB, free: 11.42 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.21e-05/0.2624, allocations: 3.984 kB / 465.3 MB, free: 11.41 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006181/0.2686, allocations: 2.551 MB / 467.8 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.2686, allocations: 0 / 467.8 MB, free: 8.777 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005775/0.2692, allocations: 139.7 kB / 467.9 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000745/0.2699, allocations: 330.2 kB / 468.3 MB, free: 8.309 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.667e-05/0.27, allocations: 31.97 kB / 468.3 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001224/0.2713, allocations: 0.8819 MB / 469.2 MB, free: 7.363 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.2713, allocations: 3.938 kB / 469.2 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005462/0.2767, allocations: 1.932 MB / 471.1 MB, free: 5.383 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003821/0.2771, allocations: 235.8 kB / 471.3 MB, free: 5.133 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001336/0.2773, allocations: 27.98 kB / 471.4 MB, free: 5.105 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006389/0.2779, allocations: 55.97 kB / 471.4 MB, free: 5.051 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/0.2781, allocations: 56.58 kB / 471.5 MB, free: 4.996 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.638e-05/0.2781, allocations: 39.97 kB / 471.5 MB, free: 4.957 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005159/0.2787, allocations: 390.8 kB / 471.9 MB, free: 4.574 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2787, allocations: 0 / 471.9 MB, free: 4.574 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009666/0.2796, 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.0006702/0.2803, allocations: 363.3 kB / 472.6 MB, free: 3.945 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002136/0.2825, allocations: 1.154 MB / 473.7 MB, free: 2.742 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.2825, allocations: 448 / 473.7 MB, free: 2.742 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001012/0.2835, allocations: 0.6621 MB / 474.4 MB, free: 2.039 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007136/0.2842, allocations: 146.2 kB / 474.6 MB, free: 1.898 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003151/0.2874, allocations: 1.778 MB / 476.3 MB, free: 88 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006287/0.288, allocations: 1.011 MB / 477.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004358/0.2885, allocations: 126.4 kB / 477.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002519/0.2887, allocations: 91.31 kB / 477.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2887, allocations: 0 / 477.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of Templates: time 0.02229/0.311, allocations: 12.75 MB / 490.3 MB, free: 2.156 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 gbode -lv LOG_STATS > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Analytical_20160704.pipe 2>&1)